diff --git a/dist/index.html.gz b/dist/index.html.gz index 05bc1138..58d0fd3f 100644 Binary files a/dist/index.html.gz and b/dist/index.html.gz differ diff --git a/dist/rapidoc-min.js b/dist/rapidoc-min.js index 7844093c..dde80993 100644 --- a/dist/rapidoc-min.js +++ b/dist/rapidoc-min.js @@ -1,5 +1,5 @@ /*! RapiDoc 9.3.5-beta | Author - Mrinmoy Majumdar | License information can be found in rapidoc-min.js.LICENSE.txt */ -(()=>{var e,t,r={6043:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(9185);function i(e,t,r,o,l,c,p,d){let u=null===t?e:e[t];if(u&&"object"==typeof u&&!ArrayBuffer.isView(u))if(n.isAllowed$Ref(u))s(e,t,r,o,l,c,p,d);else{let e=Object.keys(u).sort(((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length));for(let t of e){let e=a.join(r,t),h=a.join(o,t),f=u[t];n.isAllowed$Ref(f)?s(u,t,r,h,l,c,p,d):i(u,t,e,h,l,c,p,d)}}}function s(e,t,r,s,l,c,p,d){let u=null===t?e:e[t],h=o.resolve(r,u.$ref),f=p._resolve(h,s,d);if(null===f)return;let m=a.parse(s).length,g=o.stripHash(f.path),y=o.getHash(f.path),v=g!==p._root$Ref.path,b=n.isExtended$Ref(u);l+=f.indirections;let x=function(e,t,r){for(let n=0;n{if(e.file!==t.file)return e.file{"use strict";const n=r(1969),a=r(9566),{ono:o}=r(8862),i=r(9185);function s(e,t,r,o,i,p,d,u){let h,f={value:e,circular:!1},m=u.dereference.excludedPathMatcher;if(("ignore"===u.dereference.circular||!i.has(e))&&e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!m(r)){if(o.add(e),i.add(e),n.isAllowed$Ref(e,u))h=l(e,t,r,o,i,p,d,u),f.circular=h.circular,f.value=h.value;else for(const g of Object.keys(e)){let y=a.join(t,g),v=a.join(r,g);if(m(v))continue;let b=e[g],x=!1;n.isAllowed$Ref(b,u)?(h=l(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)):o.has(b)?x=c(y,d,u):(h=s(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)),f.circular=f.circular||x}o.delete(e)}return f}function l(e,t,r,a,o,l,p,d){let u=i.resolve(t,e.$ref);const h=l.get(u);if(h){const t=Object.keys(e);if(t.length>1){const r={};for(let n of t)"$ref"===n||n in h.value||(r[n]=e[n]);return{circular:h.circular,value:Object.assign({},h.value,r)}}return h}let f=p._resolve(u,t,d);if(null===f)return{circular:!1,value:null};let m=f.circular,g=m||a.has(f.value);g&&c(t,p,d);let y=n.dereference(e,f.value);if(!g){let e=s(y,f.path,r,a,o,l,p,d);g=e.circular,y=e.value}g&&!m&&"ignore"===d.dereference.circular&&(y=e),m&&(y.$ref=r);const v={circular:g,value:y};return 1===Object.keys(e).length&&l.set(u,v),v}function c(e,t,r){if(t.circular=!0,!r.dereference.circular)throw o.reference(`Circular $ref pointer found at ${e}`);return!0}e.exports=function(e,t){let r=s(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}},321:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(1922),o=r(4185),i=r(5410),s=r(6885),l=r(6043),c=r(3416),p=r(9185),{JSONParserError:d,InvalidPointerError:u,MissingPointerError:h,ResolverError:f,ParserError:m,UnmatchedParserError:g,UnmatchedResolverError:y,isHandledError:v,JSONParserErrorGroup:b}=r(4002),x=r(472),{ono:w}=r(8862);function $(){this.schema=null,this.$refs=new a}function S(e){if(b.getParserErrors(e).length>0)throw new b(e)}e.exports=$,e.exports.default=$,e.exports.JSONParserError=d,e.exports.InvalidPointerError=u,e.exports.MissingPointerError=h,e.exports.ResolverError=f,e.exports.ParserError=m,e.exports.UnmatchedParserError=g,e.exports.UnmatchedResolverError=y,$.parse=function(e,t,r,n){let a=new this;return a.parse.apply(a,arguments)},$.prototype.parse=async function(e,t,r,s){let l,c=i(arguments);if(!c.path&&!c.schema){let e=w(`Expected a file path, URL, or object. Got ${c.path||c.schema}`);return x(c.callback,Promise.reject(e))}this.schema=null,this.$refs=new a;let d="http";if(p.isFileSystemPath(c.path)&&(c.path=p.fromFileSystemPath(c.path),d="file"),c.path=p.resolve(p.cwd(),c.path),c.schema&&"object"==typeof c.schema){let e=this.$refs._add(c.path);e.value=c.schema,e.pathType=d,l=Promise.resolve(c.schema)}else l=o(c.path,this.$refs,c.options);let u=this;try{let e=await l;if(null===e||"object"!=typeof e||n.isBuffer(e)){if(c.options.continueOnError)return u.schema=null,x(c.callback,Promise.resolve(u.schema));throw w.syntax(`"${u.$refs._root$Ref.path||e}" is not a valid JSON Schema`)}return u.schema=e,x(c.callback,Promise.resolve(u.schema))}catch(e){return c.options.continueOnError&&v(e)?(this.$refs._$refs[p.stripHash(c.path)]&&this.$refs._$refs[p.stripHash(c.path)].addError(e),x(c.callback,Promise.resolve(null))):x(c.callback,Promise.reject(e))}},$.resolve=function(e,t,r,n){let a=new this;return a.resolve.apply(a,arguments)},$.prototype.resolve=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.parse(o.path,o.schema,o.options),await s(a,o.options),S(a),x(o.callback,Promise.resolve(a.$refs))}catch(e){return x(o.callback,Promise.reject(e))}},$.bundle=function(e,t,r,n){let a=new this;return a.bundle.apply(a,arguments)},$.prototype.bundle=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),l(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}},$.dereference=function(e,t,r,n){let a=new this;return a.dereference.apply(a,arguments)},$.prototype.dereference=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),c(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}}},5410:(e,t,r)=>{"use strict";const n=r(9021);e.exports=function(e){let t,r,a,o;"function"==typeof(e=Array.prototype.slice.call(e))[e.length-1]&&(o=e.pop());"string"==typeof e[0]?(t=e[0],"object"==typeof e[2]?(r=e[1],a=e[2]):(r=void 0,a=e[1])):(t="",r=e[0],a=e[1]);a instanceof n||(a=new n(a));return{path:t,schema:r,options:a,callback:o}}},9021:(e,t,r)=>{"use strict";const n=r(386),a=r(8391),o=r(4843),i=r(9660),s=r(7743),l=r(5642);function c(e){p(this,c.defaults),p(this,e)}function p(e,t){if(d(t)){let r=Object.keys(t);for(let n=0;n!1}}},4185:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ono:a}=r(8862),o=r(9185),i=r(9961),{ResolverError:s,ParserError:l,UnmatchedParserError:c,UnmatchedResolverError:p,isHandledError:d}=r(4002);e.exports=async function(e,t,r){e=o.stripHash(e);let u=t._add(e),h={url:e,extension:o.getExtension(e)};try{const e=await function(e,t,r){return new Promise(((n,o)=>{let l=i.all(t.resolve);function c(r){!r&&t.continueOnError?o(new p(e.url)):r&&"error"in r?r.error instanceof s?o(r.error):o(new s(r,e.url)):o(a.syntax(`Unable to resolve $ref pointer "${e.url}"`))}l=i.filter(l,"canRead",e),i.sort(l),i.run(l,"read",e,r).then(n,c)}))}(h,r,t);u.pathType=e.plugin.name,h.data=e.result;const o=await function(e,t,r){return new Promise(((o,s)=>{let p=i.all(t.parse),d=i.filter(p,"canParse",e),u=d.length>0?d:p;function h(t){var r;!t.plugin.allowEmpty&&(void 0===(r=t.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||n.isBuffer(r)&&0===r.length)?s(a.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`)):o(t)}function f(r){!r&&t.continueOnError?s(new c(e.url)):r&&"error"in r?r.error instanceof l?s(r.error):s(new l(r.error.message,e.url)):s(a.syntax(`Unable to parse ${e.url}`))}i.sort(u),i.run(u,"parse",e,r).then(h,f)}))}(h,r,t);return u.value=o.result,o.result}catch(e){throw d(e)&&(u.value=e),e}}},9660:(e,t,r)=>{"use strict";var n=r(8764).Buffer;let a=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;e.exports={order:400,allowEmpty:!0,canParse:e=>n.isBuffer(e.data)&&a.test(e.url),parse:e=>n.isBuffer(e.data)?e.data:n.from(e.data)}},386:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);e.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;if(0!==t.trim().length)try{return JSON.parse(t)}catch(t){throw new a(t.message,e.url)}}}},4843:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);let o=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;e.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||n.isBuffer(e.data))&&o.test(e.url),parse(e){if("string"==typeof e.data)return e.data;if(n.isBuffer(e.data))return e.data.toString(this.encoding);throw new a("data is not text",e.url)}}},8391:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002),o=r(3320),{JSON_SCHEMA:i}=r(3320);e.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;try{return o.load(t,{schema:i})}catch(t){throw new a(t.message,e.url)}}}},9566:(e,t,r)=>{"use strict";e.exports=h;const n=r(1969),a=r(9185),{JSONParserError:o,InvalidPointerError:i,MissingPointerError:s,isHandledError:l}=r(4002),c=/\//g,p=/~/g,d=/~1/g,u=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function f(e,t){if(n.isAllowed$Ref(e.value,t)){let r=a.resolve(e.path,e.value.$ref);if(r!==e.path){let a=e.$ref.$refs._resolve(r,e.path,t);return null!==a&&(e.indirections+=a.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,a.value),!1):(e.$ref=a.$ref,e.path=a.path,e.value=a.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new o(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function g(e){if(l(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=g(e);for(let e=0;e{"use strict";e.exports=p;const n=r(9566),{InvalidPointerError:a,isHandledError:o,normalizeError:i}=r(4002),{safePointerToPath:s,stripHash:l,getHash:c}=r(9185);function p(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}p.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map((({footprint:e})=>e));Array.isArray(e.errors)?this.errors.push(...e.errors.map(i).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(i(e))},p.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},p.prototype.get=function(e,t){return this.resolve(e,t).value},p.prototype.resolve=function(e,t,r,i){let p=new n(this,e,r);try{return p.resolve(this.value,t,i)}catch(e){if(!t||!t.continueOnError||!o(e))throw e;return null===e.path&&(e.path=s(c(i))),e instanceof a&&(e.source=decodeURI(l(i))),this.addError(e),null}},p.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},p.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},p.isExternal$Ref=function(e){return p.is$Ref(e)&&"#"!==e.$ref[0]},p.isAllowed$Ref=function(e,t){if(p.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},p.isExtended$Ref=function(e){return p.is$Ref(e)&&Object.keys(e).length>1},p.dereference=function(e,t){if(t&&"object"==typeof t&&p.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},1922:(e,t,r)=>{"use strict";const{ono:n}=r(8862),a=r(1969),o=r(9185);function i(){this.circular=!1,this._$refs={},this._root$Ref=null}function s(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((r=>-1!==t.indexOf(e[r].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?o.toFileSystemPath(t,!0):t})))}e.exports=i,i.prototype.paths=function(e){return s(this._$refs,arguments).map((e=>e.decoded))},i.prototype.values=function(e){let t=this._$refs;return s(t,arguments).reduce(((e,r)=>(e[r.decoded]=t[r.encoded].value,e)),{})},i.prototype.toJSON=i.prototype.values,i.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},i.prototype.get=function(e,t){return this._resolve(e,"",t).value},i.prototype.set=function(e,t){let r=o.resolve(this._root$Ref.path,e),a=o.stripHash(r),i=this._$refs[a];if(!i)throw n(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);i.set(r,t)},i.prototype._add=function(e){let t=o.stripHash(e),r=new a;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r},i.prototype._resolve=function(e,t,r){let a=o.resolve(this._root$Ref.path,e),i=o.stripHash(a),s=this._$refs[i];if(!s)throw n(`Error resolving $ref pointer "${e}". \n"${i}" not found.`);return s.resolve(a,r,e,t)},i.prototype._get$Ref=function(e){e=o.resolve(this._root$Ref.path,e);let t=o.stripHash(e);return this._$refs[t]}},6885:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(4185),i=r(9185),{isHandledError:s}=r(4002);function l(e,t,r,o,i){i=i||new Set;let s=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!i.has(e))if(i.add(e),n.isExternal$Ref(e))s.push(c(e,t,r,o));else for(let p of Object.keys(e)){let d=a.join(t,p),u=e[p];n.isExternal$Ref(u)?s.push(c(u,d,r,o)):s=s.concat(l(u,d,r,o,i))}return s}async function c(e,t,r,n){let a=i.resolve(t,e.$ref),c=i.stripHash(a);if(e=r._$refs[c])return Promise.resolve(e.value);try{let e=l(await o(a,r,n),c+"#",r,n);return Promise.all(e)}catch(e){if(!n.continueOnError||!s(e))throw e;return r._$refs[c]&&(e.source=decodeURI(i.stripHash(t)),e.path=i.safePointerToPath(i.getHash(t))),[]}}e.exports=function(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=l(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(e){return Promise.reject(e)}}},7743:(e,t,r)=>{"use strict";const n=r(3471),{ono:a}=r(8862),o=r(9185),{ResolverError:i}=r(4002);e.exports={order:100,canRead:e=>o.isFileSystemPath(e.url),read:e=>new Promise(((t,r)=>{let s;try{s=o.toFileSystemPath(e.url)}catch(t){r(new i(a.uri(t,`Malformed URI: ${e.url}`),e.url))}try{n.readFile(s,((e,n)=>{e?r(new i(a(e,`Error opening file "${s}"`),s)):t(n)}))}catch(e){r(new i(a(e,`Error opening file "${s}"`),s))}}))}},5642:(e,t,r)=>{"use strict";var n=r(4155),a=r(8764).Buffer;const o=r(8501),i=r(9267),{ono:s}=r(8862),l=r(9185),{ResolverError:c}=r(4002);function p(e,t,r){return new Promise(((n,d)=>{e=l.parse(e),(r=r||[]).push(e.href),function(e,t){return new Promise(((r,n)=>{let s=("https:"===e.protocol?i:o).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",n),s.once("response",(e=>{e.body=a.alloc(0),e.on("data",(t=>{e.body=a.concat([e.body,a.from(t)])})),e.on("error",n),e.on("end",(()=>{r(e)}))}))}))}(e,t).then((o=>{if(o.statusCode>=400)throw s({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)d(new c(s({status:o.statusCode},`Error downloading ${r[0]}. \nToo many redirects: \n ${r.join(" \n ")}`)));else{if(!o.headers.location)throw s({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);p(l.resolve(e,o.headers.location),t,r).then(n,d)}else n(o.body||a.alloc(0))})).catch((t=>{d(new c(s(t,`Error downloading ${e.href}`),e.href))}))}))}e.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>l.isHttp(e.url),read(e){let t=l.parse(e.url);return n.browser&&!t.protocol&&(t.protocol=l.parse(location.href).protocol),p(t,this)}}},4002:(e,t,r)=>{"use strict";const{Ono:n}=r(8862),{stripHash:a,toFileSystemPath:o}=r(9185),i=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};l(i);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${o(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};l(s);l(t.ParserError=class extends i{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});l(t.UnmatchedParserError=class extends i{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});l(t.ResolverError=class extends i{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});l(t.UnmatchedResolverError=class extends i{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});l(t.MissingPointerError=class extends i{constructor(e,t){super(`Token "${e}" does not exist.`,a(t)),this.code="EMISSINGPOINTER"}});function l(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}l(t.InvalidPointerError=class extends i{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,a(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof i||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},9961:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if("function"==typeof o)return o.apply(e,[r,n,a]);if(!n){if(o instanceof RegExp)return o.test(r.url);if("string"==typeof o)return o===r.extension;if(Array.isArray(o))return-1!==o.indexOf(r.extension)}return o}t.all=function(e){return Object.keys(e).filter((t=>"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},t.filter=function(e,t,n){return e.filter((e=>!!r(e,t,n)))},t.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},t.run=function(e,t,n,a){let o,i,s=0;return new Promise(((l,c)=>{function p(){if(o=e[s++],!o)return c(i);try{let i=r(o,t,n,d,a);if(i&&"function"==typeof i.then)i.then(u,h);else if(void 0!==i)u(i);else if(s===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){h(e)}}function d(e,t){e?h(e):u(t)}function u(e){l({plugin:o,result:e})}function h(e){i={plugin:o,error:e},p()}p()}))}},9185:(e,t,r)=>{"use strict";var n=r(4155);let a=/^win/.test(n.platform),o=/\//g,i=/^(\w{2,}):\/\//i,s=e.exports,l=/~1/g,c=/~0/g,p=[/\?/g,"%3F",/\#/g,"%23"],d=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(8575).parse,t.resolve=r(8575).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){a&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(l,"/").replace(c,"~")))}},7929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openapi=t.openapiV31=t.openapiV3=t.openapiV2=t.openapiV1=void 0,t.openapiV1=r(8479),t.openapiV2=r(499),t.openapiV3=r(3659),t.openapiV31=r(1201),t.openapi={v1:t.openapiV1,v2:t.openapiV2,v3:t.openapiV3,v31:t.openapiV31},t.default=t.openapi,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},9181:e=>{"use strict";e.exports=["get","put","post","delete","options","head","patch"]},7325:(e,t,r)=>{"use strict";const n=r(4162),a=r(2103),o=r(5410),i=r(7323),s=r(7757),l=r(472),{ono:c}=r(8862),p=r(321),d=r(3416);function u(){p.apply(this,arguments)}e.exports=u,i.inherits(u,p),u.parse=p.parse,u.resolve=p.resolve,u.bundle=p.bundle,u.dereference=p.dereference,Object.defineProperty(u.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}}),u.prototype.parse=async function(e,t,r,n){let a=o(arguments);a.options=new s(a.options);try{let e=await p.prototype.parse.call(this,a.path,a.schema,a.options);if(e.swagger){if(void 0===e.swagger||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Swagger API definition`);if("number"==typeof e.swagger)throw c.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if("2.0"!==e.swagger)throw c.syntax(`Unrecognized Swagger version: ${e.swagger}. Expected 2.0`)}else{let t=["3.0.0","3.0.1","3.0.2","3.0.3"];if(void 0===e.openapi||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Openapi API definition`);if("number"==typeof e.openapi)throw c.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===t.indexOf(e.openapi))throw c.syntax(`Unsupported OpenAPI version: ${e.openapi}. Swagger Parser only supports versions ${t.join(", ")}`)}return l(a.callback,Promise.resolve(e))}catch(e){return l(a.callback,Promise.reject(e))}},u.validate=function(e,t,r,n){let a=new this;return a.validate.apply(a,arguments)},u.prototype.validate=async function(e,t,r,i){let p=this,u=o(arguments);u.options=new s(u.options);let h=u.options.dereference.circular;u.options.validate.schema&&(u.options.dereference.circular="ignore");try{if(await this.dereference(u.path,u.schema,u.options),u.options.dereference.circular=h,u.options.validate.schema&&(n(p.api),p.$refs.circular))if(!0===h)d(p,u.options);else if(!1===h)throw c.reference("The API contains circular references");return u.options.validate.spec&&a(p.api),l(u.callback,Promise.resolve(p.schema))}catch(e){return l(u.callback,Promise.reject(e))}}},7757:(e,t,r)=>{"use strict";const n=r(9021),a=r(4162),o=r(2103),i=r(9539);function s(e){n.call(this,s.defaults),n.apply(this,arguments)}e.exports=s,s.defaults={validate:{schema:a,spec:o}},i.inherits(s,n)},7323:(e,t,r)=>{"use strict";const n=r(9539);t.format=n.format,t.inherits=n.inherits,t.swaggerParamRegExp=/\{([^/}]+)}/g},4162:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(5077),{openapi:i}=r(7929);e.exports=function(e){let t=e.swagger?i.v2:i.v3;if(!s.validate(e,t)){let e=s.getLastError(),t="Swagger schema validation failed. \n"+l(e.details);throw a.syntax(e,{details:e.details},t)}};let s=(delete i.v2.id,delete i.v3.id,o.registerFormat("uri-reference",(e=>e.trim().length>0)),new o({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0}));function l(e,t){t=t||" ";let r="";for(let a of e)r+=n.format(`${t}${a.message} at #/${a.path.join("/")}\n`),a.inner&&(r+=l(a.inner,t+" "));return r}},2103:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(9181),i=["array","boolean","integer","number","string"],s=["array","boolean","integer","number","string","object","null",void 0];function l(e,t,r,n){for(let i of o){let o=t[i],s=r+"/"+i;if(o){let i=o.operationId;if(i){if(-1!==n.indexOf(i))throw a.syntax(`Validation failed. Duplicate operation id '${i}'`);n.push(i)}c(e,t,r,o,s);let l=Object.keys(o.responses||{});for(let e of l){d(e,o.responses[e]||{},s+"/responses/"+e)}}}}function c(e,t,r,o,l){let c=t.parameters||[],d=o.parameters||[];try{p(c)}catch(e){throw a.syntax(e,`Validation failed. ${r} has duplicate parameters`)}try{p(d)}catch(e){throw a.syntax(e,`Validation failed. ${l} has duplicate parameters`)}let f=c.reduce(((e,t)=>(e.some((e=>e.in===t.in&&e.name===t.name))||e.push(t),e)),d.slice());!function(e,t){let r=e.filter((e=>"body"===e.in)),n=e.filter((e=>"formData"===e.in));if(r.length>1)throw a.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw a.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}(f,l),function(e,t,r){let o=t.match(n.swaggerParamRegExp)||[];for(let e=0;e"path"===e.in));for(let t of e){if(!0!==t.required)throw a.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${t.name}" parameter at ${r}`);let e=o.indexOf("{"+t.name+"}");if(-1===e)throw a.syntax(`Validation failed. ${r} has a path parameter named "${t.name}", but there is no corresponding {${t.name}} in the path string`);o.splice(e,1)}if(o.length>0)throw a.syntax(`Validation failed. ${r} is missing path parameter(s) for ${o}`)}(f,r,l),function(e,t,r,n){for(let o of e){let e,l,c=n+"/parameters/"+o.name;switch(o.in){case"body":e=o.schema,l=s;break;case"formData":e=o,l=i.concat("file");break;default:e=o,l=i}if(u(e,c,l),h(e,c),"file"===e.type){let e=/multipart\/(.*\+)?form-data/,o=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some((t=>e.test(t)||o.test(t))))throw a.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}(f,e,o,l)}function p(e){for(let t=0;t599))throw a.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let e of n){u(t.headers[e],r+"/headers/"+e,i)}if(t.schema){let e=s.concat("file");if(-1===e.indexOf(t.schema.type))throw a.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);u(t.schema,r+"/schema",e)}}function u(e,t,r){if(-1===r.indexOf(e.type))throw a.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if("array"===e.type&&!e.items)throw a.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}function h(e,t){if(e.required&&Array.isArray(e.required)){let r={};!function e(t,r){if(t.properties)for(let e in t.properties)t.properties.hasOwnProperty(e)&&(r[e]=t.properties[e]);if(t.allOf)for(let n of t.allOf)e(n,r)}(e,r);for(let n of e.required)if(!r[n])throw a.syntax(`Validation failed. Property '${n}' listed as required but does not exist in '${t}'`)}}e.exports=function(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let n of t){let t=e.paths[n],a="/paths"+n;t&&0===n.indexOf("/")&&l(e,t,a,r)}let n=Object.keys(e.definitions||{});for(let t of n){h(e.definitions[t],"/definitions/"+t)}}},8862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>y,default:()=>$,ono:()=>b});const n=!1,a=!1,o=/\r?\n/,i=/\bono[ @]/;function s(e,t){let r=c(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function l(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>s({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>c(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function c(e){if(e){let t,r=e.split(o);for(let e=0;e0)return r.join("\n")}return e}const p=["function","symbol","undefined"],d=["constructor","prototype","__proto__"],u=Object.getPrototypeOf({});function h(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],a=typeof n;p.includes(a)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==u;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(d))n.delete(e);return n}const m=["name","message","stack"];function g(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=s(e,t)):l(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,m),n=e,a=t;for(let e of r)if(void 0===n[e])try{n[e]=a[e]}catch(e){}}(n,t),n.toJSON=h,a&&a(n),r&&"object"==typeof r&&Object.assign(n,r),n}const y=v;function v(e,t){function r(...r){let{originalError:n,props:a,message:o}=function(e,t){let r,n,a,o="";return"string"==typeof e[0]?a=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],a=e.slice(1)):(r=e[0],n=e[1],a=e.slice(2)),a.length>0&&(o=t.format?t.format.apply(void 0,a):a.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?" \n":"")+r.message),{originalError:r,props:n,message:o}}(r,t);return g(new e(o),n,a)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?n:"function"==typeof e.format&&e.format}}(t),r[Symbol.species]=e,r}v.toJSON=function(e){return h.call(e)},v.extend=function(e,t,r){return r||t instanceof Error?g(e,t,r):t?g(e,void 0,t):g(e)};const b=w;w.error=new y(Error),w.eval=new y(EvalError),w.range=new y(RangeError),w.reference=new y(ReferenceError),w.syntax=new y(SyntaxError),w.type=new y(TypeError),w.uri=new y(URIError);const x=w;function w(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(x))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return w.error.apply(void 0,e)}r(9539);e=r.hmd(e);const $=b;"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},5096:(e,t,r)=>{"use strict";var n=r(5108),a=r(7153),o=r(3610),i=r(7531),s=r(4022),l=r(5035),c=r(1516),p=r(7753),d=r(3978),u=r(2889);e.exports=v,v.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var a=r(t);!0!==r.$async&&(this.errors=r.errors);return a},v.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},v.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var a=0;a{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},2931:(e,t,r)=>{"use strict";var n=r(7802).MissingRef;e.exports=function e(t,r,a){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(a=r,r=void 0);var i=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||l(e)}));a&&i.then((function(e){a(null,e)}),a);return i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function l(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=o._loadingSchemas[n];a||(a=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(i,i);return a.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function i(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},7802:(e,t,r)=>{"use strict";var n=r(3610);function a(e,t,r){this.message=r||a.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(a)},a.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},1516:(e,t,r)=>{"use strict";var n=r(2889),a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,u=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(a);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(i);if(!r)return!1;var n=r[1],a=r[2],o=r[3],s=r[5];return(n<=23&&a<=59&&o<=59||23==n&&59==a&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var v=/t|\s/i;var b=/\/|:/;var x=/[^\\]\\Z/;function w(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7153:(e,t,r)=>{"use strict";var n=r(3610),a=r(2889),o=r(7802),i=r(5035),s=r(9508),l=a.ucs2length,c=r(4063),p=o.Validation;function d(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function u(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n{"use strict";var n=r(540),a=r(4063),o=r(2889),i=r(4022),s=r(9461);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof i)return f(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var a,o,s,p=c.call(this,t,r);return p&&(a=p.schema,t=p.root,s=p.baseId),a instanceof i?o=a.validate||e.call(this,a.schema,t,void 0,s):void 0!==a&&(o=f(a,this._opts.inlineRefs)?a:e.call(this,a,t,void 0,s)),o}function c(e,t){var r=n.parse(t),a=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var s=x(a),l=this._refs[s];if("string"==typeof l)return p.call(this,e,l,r);if(l instanceof i)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof i))return;if(l.validate||this._compile(l),s==x(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=y(this._getId(e.schema))}return u.call(this,r,o,e.schema,e)}function p(e,t,r){var n=c.call(this,e,t);if(n){var a=n.schema,o=n.baseId;e=n.root;var i=this._getId(a);return i&&(o=w(o,i)),u.call(this,r,o,a,e)}}e.exports=l,l.normalizeId=x,l.fullPath=y,l.url=w,l.ids=function(e){var t=x(this._getId(e)),r={"":t},i={"":y(t,!1)},l={},c=this;return s(e,{allKeys:!0},(function(e,t,s,p,d,u,h){if(""!==t){var f=c._getId(e),m=r[p],g=i[p]+"/"+d;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof f){f=m=x(m?n.resolve(m,f):f);var y=c._refs[f];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!a(e,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=x(g))if("#"==f[0]){if(l[f]&&!a(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=g}r[t]=m,i[t]=g}})),l},l.inlineRef=f,l.schema=c;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function u(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),i=1;i{"use strict";var n=r(6674),a=r(2889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=a(t),e.types=a(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var a;if("object"==typeof r){var o=Object.keys(r)[0];a=r[o],r=o,a.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:a}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=a(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},4022:(e,t,r)=>{"use strict";var n=r(2889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,a=0;a=55296&&t<=56319&&a{"use strict";function n(e,t,r,n){var a=n?" !== ":" === ",o=n?" || ":" && ",i=n?"!":"",s=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+o+"typeof "+t+a+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+o+s+"("+t+" % 1)"+o+t+a+t+(r?o+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(r?o+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var a="",i=o(e);for(var s in i.array&&i.object&&(a=i.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)a+=(a?" && ":"")+n(s,t,r,!0);return a},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!a)return o}for(var s=o,c=a.split("/"),p=0;p{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8210:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[f],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!u&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(f+" must be number or boolean");if(g){var x=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,$="exclType"+o,S="exclIsNumber"+o,E="' + "+(_="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+x+"; ",a+=" var "+w+"; var "+$+" = typeof "+(x="schemaExcl"+o)+"; if ("+$+" != 'boolean' && "+$+" != 'undefined' && "+$+" != 'number') { ";var k;b=f;(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var A=a;a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+$+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+y+"= "+n+") ? "+d+" "+v+"= "+x+" : "+d+" "+v+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+d+" "+v+"= "+n+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=f,c=e.errSchemaPath+"/"+f,n=x,u=g)}else{E=y;if((S="number"==typeof m)&&u){var _="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+d+" "+v+"= "+m+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { "}else{S&&void 0===s?(w=!0,b=f,c=e.errSchemaPath+"/"+f,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=f,c=e.errSchemaPath+"/"+f,v+="="):(w=!1,E+="="));_="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+" "+v+" "+n+" || "+d+" !== "+d+") { "}}b=b||t,(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+E+" ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";A=a;return a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { "),a}},3038:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},425:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?a+=" "+d+".length ":a+=" ucs2length("+d+") ",a+=" "+h+" "+n+") { ";var f=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var g=a;return a=m.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8204:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},2988:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var p="valid"+l.level,d=l.baseId,u=!0,h=a;if(h)for(var f,m=-1,g=h.length-1;m0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(u=!1,l.schema=f,l.schemaPath=o+"["+m+"]",l.errSchemaPath=i+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=d,s&&(n+=" if ("+p+") { ",c+="}"));return s&&(n+=u?" if (true) { ":" "+c.slice(0,-1)+" "),n}},9996:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+u+" = errors; var "+d+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=i;if(b)for(var x,w=-1,$=b.length-1;w<$;)x=b[w+=1],h.schema=x,h.schemaPath=s+"["+w+"]",h.errSchemaPath=l+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+d+" = "+d+" || "+m+"; if (!"+d+") { ",f+="}";e.compositeRule=h.compositeRule=v,n+=" "+f+" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},7812:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(a));return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},5306:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),u||(n+=" var schema"+a+" = validate.schema"+s+";"),n+="var "+d+" = equal("+p+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m="i"+a,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+u+" = errors;var "+d+";",b){var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+f+" = false; for (var "+m+" = 0; "+m+" < "+p+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=p+"["+m+"]";h.dataPathArr[g]=m;var $=e.validate(h);h.baseId=v,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,w)+" ":n+=" var "+y+" = "+w+"; "+$+" ",n+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=x,n+=" if (!"+f+") {"}else n+=" if ("+p+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},4165:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,u="data"+(s||""),h="valid"+i,f="errs__"+i,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+i+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",a="schema"+i):a=l;var g,y,v,b,x,w=this,$="definition"+i,S=w.definition,E="";if(m&&S.$data){x="keywordValidate"+i;var k=S.validateSchema;o+=" var "+$+" = RULES.custom['"+t+"'].definition; var "+x+" = "+$+".validate;"}else{if(!(b=e.useCustomRule(w,l,e.schema,e)))return;a="validate.schema"+c,x=b.code,g=S.compile,y=S.inline,v=S.macro}var A=x+".errors",_="i"+i,O="ruleErr"+i,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=A+" = null;"),o+="var "+f+" = errors;var "+h+";",m&&S.$data&&(E+="}",o+=" if ("+a+" === undefined) { "+h+" = true; } else { ",k&&(E+="}",o+=" "+h+" = "+$+".validateSchema("+a+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var T=e.util.copy(e);E="";T.level++;var j="valid"+T.level;T.schema=b.validate,T.schemaPath="";var R=e.compositeRule;e.compositeRule=T.compositeRule=!0;var C=e.validate(T).replace(/validate\.schema/g,x);e.compositeRule=T.compositeRule=R,o+=" "+C}else{(L=L||[]).push(o),o="",o+=" "+x+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+u+" ":o+=" , "+a+" , "+u+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",M=o+=" , "+I+" , "+D+" , rootData ) ";o=L.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=M+"; "):o+=P?" var "+(A="customErrors"+i)+" = null; try { "+h+" = await "+M+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+h+" = "+M+"; "}if(S.modifying&&(o+=" if ("+I+") "+u+" = "+I+"["+D+"];"),o+=""+E,S.valid)d&&(o+=" if (true) { ");else{var L;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+j:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(L=L||[]).push(o),o="",(L=L||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var N=o;o=L.pop(),!e.compositeRule&&d?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=L.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+_+"="+f+"; "+_+"{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m={},g={},y=e.opts.ownProperties;for(w in i)if("__proto__"!=w){var v=i[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+d+" = errors;";var x=e.errorPath;for(var w in n+="var missing"+a+";",g)if((b=g[w]).length){if(n+=" if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var $=b;if($)for(var S=-1,E=$.length-1;S0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+f+" = true; if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",u.schema=v,u.schemaPath=s+e.util.getProperty(w),u.errSchemaPath=l+"/"+e.util.escapeFragment(w),n+=" "+e.validate(u)+" ",u.baseId=D,n+=" } ",c&&(n+=" if ("+f+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},1740:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="i"+a,f="schema"+a;u||(n+=" var "+f+" = validate.schema"+s+";"),n+="var "+d+";",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=d+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+p+", "+f+"["+h+"])) { "+d+" = true; break; }",u&&(n+=" } "),n+=" if (!"+d+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9014:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var d,u=e.opts.$data&&i&&i.$data;u?(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",d="schema"+a):d=i;var h=e.opts.unknownFormats,f=Array.isArray(h);if(u){n+=" var "+(m="format"+a)+" = formats["+d+"]; var "+(g="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+a)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+a+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",u&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+d+" && !"+m+" ",f&&(n+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+a+" ? await "+m+"("+p+") : "+m+"("+p+")) ":n+=" "+m+"("+p+") ",n+=" : "+m+".test("+p+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(f&&h.indexOf(i)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+p+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+p+") ":" "+b+".test("+p+") ",n+=") { "}}var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=u?""+d:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=u?"' + "+d+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=u?"validate.schema"+s:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var w=n;return n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},7231:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var x;h.createErrors=!1,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+u+" = errors; var "+d+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'then'; ":x="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+f+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'else'; ":x="'else'",n+=" } "),n+=" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+x+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},6674:(e,t,r)=>{"use strict";e.exports={$ref:r(2392),allOf:r(2988),anyOf:r(9996),$comment:r(7812),const:r(5306),contains:r(2840),dependencies:r(6659),enum:r(1740),format:r(9014),if:r(7231),items:r(7482),maximum:r(8210),minimum:r(8210),maxItems:r(3038),minItems:r(3038),maxLength:r(425),minLength:r(425),maxProperties:r(8204),minProperties:r(8204),multipleOf:r(3673),not:r(8528),oneOf:r(9709),pattern:r(9614),properties:r(1175),propertyNames:r(8441),required:r(1287),uniqueItems:r(3603),validate:r(9508)}},7482:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g="i"+a,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+u+" = errors;var "+d+";",Array.isArray(i)){var x=e.schema.additionalItems;if(!1===x){n+=" "+d+" = "+p+".length <= "+i.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+d+") { ";var $=$||[];$.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=$.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=w,c&&(f+="}",n+=" else { ")}var E=i;if(E)for(var k,A=-1,_=E.length-1;A<_;)if(k=E[A+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";h.schema=k,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,h.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),h.dataPathArr[y]=A;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",f+="}")}if("object"==typeof x&&(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))){h.schema=x,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+p+".length > "+i.length+") { for (var "+g+" = "+i.length+"; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+f+" if ("+u+" == errors) {"),n}},3673:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="var division"+o+";if (",u&&(a+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),a+=" (division"+o+" = "+d+" / "+n+", ",e.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",u&&(a+=" ) "),a+=" ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8528:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l,n+=" var "+d+" = errors; ";var f,m=e.compositeRule;e.compositeRule=u.compositeRule=!0,u.createErrors=!1,u.opts.allErrors&&(f=u.opts.allErrors,u.opts.allErrors=!1),n+=" "+e.validate(u)+" ",u.createErrors=!0,f&&(u.opts.allErrors=f),e.compositeRule=u.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},9709:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+a,v="passingSchemas"+a;n+="var "+u+" = errors , "+y+" = false , "+d+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=i;if(x)for(var w,$=-1,S=x.length-1;$0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+$+"]",h.errSchemaPath=l+"/"+$,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",$&&(n+=" if ("+m+" && "+y+") { "+d+" = false; "+v+" = ["+v+", "+$+"]; } else { ",f+="}"),n+=" if ("+m+") { "+d+" = "+y+" = true; "+v+" = "+$+"; }";return e.compositeRule=h.compositeRule=b,n+=f+"if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9614:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),a+=" !"+(u?"(new RegExp("+n+"))":e.usePattern(s))+".test("+d+") ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",a+=u?""+n:""+e.util.toQuotedString(s),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=u?"' + "+n+" + '":""+e.util.escapeQuotes(s),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+e.util.toQuotedString(s),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},1175:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m="key"+a,g="idx"+a,y=u.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+a,x=Object.keys(i||{}).filter(C),w=e.schema.patternProperties||{},$=Object.keys(w).filter(C),S=e.schema.additionalProperties,E=x.length||$.length,k=!1===S,A="object"==typeof S&&Object.keys(S).length,_=e.opts.removeAdditional,O=k||A||_,P=e.opts.ownProperties,T=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=x;if(I)for(var D=-1,M=I.length-1;D0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var Q=e.util.getProperty(K),ee=(W=p+Q,Z&&void 0!==X.default);u.schema=X,u.schemaPath=s+Q,u.errSchemaPath=l+"/"+e.util.escapeFragment(K),u.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),u.dataPathArr[y]=e.util.toQuotedString(K);V=e.validate(u);if(u.baseId=T,e.util.varOccurences(V,v)<2){V=e.util.varReplace(V,v,W);var te=W}else{te=v;n+=" var "+v+" = "+W+"; "}if(ee)n+=" "+V+" ";else{if(R&&R[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+f+" = false; ";U=e.errorPath,B=l;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,K,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";H=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=B,e.errorPath=U,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+f+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+V+" } "}}c&&(n+=" if ("+f+") { ",h+="}")}}if($.length){var ae=$;if(ae)for(var oe,ie=-1,se=ae.length-1;ie0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){u.schema=X,u.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),u.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+p+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",u.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);W=p+"["+m+"]";u.dataPathArr[y]=m;V=e.validate(u);u.baseId=T,e.util.varOccurences(V,v)<2?n+=" "+e.util.varReplace(V,v,W)+" ":n+=" var "+v+" = "+W+"; "+V+" ",c&&(n+=" if (!"+f+") break; "),n+=" } ",c&&(n+=" else "+f+" = true; "),n+=" } ",c&&(n+=" if ("+f+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},8441:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(n+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l;var f="key"+a,m="idx"+a,g="i"+a,y="' + "+f+" + '",v="data"+(u.dataLevel=e.dataLevel+1),b="dataProperties"+a,x=e.opts.ownProperties,w=e.baseId;x&&(n+=" var "+b+" = undefined; "),n+=x?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+f+" = "+b+"["+m+"]; ":" for (var "+f+" in "+p+") { ",n+=" var startErrs"+a+" = errors; ";var $=f,S=e.compositeRule;e.compositeRule=u.compositeRule=!0;var E=e.validate(u);u.baseId=w,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,$)+" ":n+=" var "+v+" = "+$+"; "+E+" ",e.compositeRule=u.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(s||""),u="valid"+i;if("#"==l||"#/"==l)e.isRoot?(n=e.async,a="validate"):(n=!0===e.root.schema.$async,a="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(f),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,f);e.logger.warn(f),p&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",p&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,a=h.code}if(a){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+a+".call(this, ":o+=" "+a+"( ",o+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");p&&(o+=" var "+u+"; "),o+=" try { await "+b+"; ",p&&(o+=" "+u+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(o+=" "+u+" = false; "),o+=" } ",p&&(o+=" if ("+u+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",p&&(o+=" else { ")}return o}},1287:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!u)if(i.length0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=g)}}else f=i;if(u||f.length){var x=e.errorPath,w=u||f.length>=e.opts.loopRequired,$=e.opts.ownProperties;if(c)if(n+=" var missing"+a+"; ",w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),n+=" var "+d+" = true; ",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { "+d+" = "+p+"["+h+"["+A+"]] !== undefined ",$&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+="; if (!"+d+") break; } ",u&&(n+=" } "),n+=" if (!"+d+") { ",(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=f;if(k)for(var A=-1,_=k.length-1;A<_;){j=k[A+=1],A&&(n+=" || "),n+=" ( ( "+(D=p+(I=e.util.getProperty(j)))+" === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:I)+") ) "}n+=") { ";var O;S="' + "+(P="missing"+a)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,P,!0):x+" + "+P),(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),u&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { if ("+p+"["+h+"["+A+"]] === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",u&&(n+=" } ")}else{var T=f;if(T)for(var j,R=-1,C=T.length-1;R{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(a+=" var "+u+"; if ("+n+" === false || "+n+" === undefined) "+u+" = true; else if (typeof "+n+" != 'boolean') "+u+" = false; else { "),a+=" var i = "+d+".length , "+u+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,m=Array.isArray(f);if(!f||"object"==f||"array"==f||m&&(f.indexOf("object")>=0||f.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+u+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(m?"s":"");a+=" if ("+e.util[g](f,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+u+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",h&&(a+=" } "),a+=" if (!"+u+") { ";var y=y||[];y.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var v=a;a=y.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { ")}else p&&(a+=" if (true) { ");return a}},9508:e=>{"use strict";e.exports=function(e,t,r){var n="",a=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",a&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,p=e.dataLevel,d=e.schema[t],u=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(p||""),g="valid"+c;if(!1===e.schema){e.isTop?f=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=a?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,p=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((p=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,f=!e.opts.allErrors;var x="",w="",$=e.schema.type,S=Array.isArray($);if($&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==$.indexOf("null")&&($=$.concat("null")):"null"!=$&&($=[$,"null"],S=!0)),S&&1==$.length&&($=$[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),$){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,$);var k=e.RULES.types[$];if(E||S||!0===k||k&&!J(k)){u=e.schemaPath+".type",h=e.errSchemaPath+"/type",u=e.schemaPath+".type",h=e.errSchemaPath+"/type";var A=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[A]($,m,e.opts.strictNumbers,!0)+") { ",E){var _="dataType"+c,O="coerced"+c;n+=" var "+_+" = typeof "+m+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+_+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+_+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+O+" = "+m+"; } "),n+=" if ("+O+" !== undefined) ; ";var P=E;if(P)for(var T,j=-1,R=P.length-1;j{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,a=r(4165),o=r(1128);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var i=0;i{"use strict";var n=r(4155),a=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,s,l=r(2136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,p=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,f=r(5961),m=r(9539).inspect,g=r(9539).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:r(8091).assign,x=Object.is?Object.is:r(609);new Map;function w(){var e=r(9158);i=e.isDeepEqual,s=e.isDeepStrictEqual}var $=!1,S=e.exports=_,E={};function k(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,r,n){if(!r){var a=!1;if(0===t)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=a,o}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a{"use strict";var n=r(4155);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;re.length)&&(r=e.length),e.substring(r-t.length,r)===t}var g="",y="",v="",b="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function $(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,r){var a="",o="",i=0,s="",l=!1,c=$(e),p=c.split("\n"),d=$(t).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===p.length&&1===d.length&&p[0]!==d[0]){var w=p[0].length+d[0].length;if(w<=10){if(!("object"===u(e)&&null!==e||"object"===u(t)&&null!==t||0===e&&0===t))return"".concat(x[r],"\n\n")+"".concat(p[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r){if(w<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;p[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var S=p[p.length-1],E=d[d.length-1];S===E&&(h++<2?s="\n ".concat(S).concat(s):a=S,p.pop(),d.pop(),0!==p.length&&0!==d.length);)S=p[p.length-1],E=d[d.length-1];var k=Math.max(p.length,d.length);if(0===k){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var _=0,O=x[r]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),P=" ".concat(g,"...").concat(b," Lines skipped");for(h=0;h1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(d[h-2]),_++),o+="\n ".concat(d[h-1]),_++),i=h,a+="\n".concat(v,"-").concat(b," ").concat(d[h]),_++;else if(d.length1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(p[h]),_++;else{var j=d[h],R=p[h],C=R!==j&&(!m(R,",")||R.slice(0,-1)!==j);C&&m(j,",")&&j.slice(0,-1)===R&&(C=!1,R+=","),C?(T>1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(R),a+="\n".concat(v,"-").concat(b," ").concat(j),_+=2):(o+=a,a="",1!==T&&0!==h||(o+="\n ".concat(R),_++))}if(_>20&&h30)for(E[26]="".concat(g,"...").concat(b);E.length>27;)E.pop();r=1===E.length?i(this,d(t).call(this,"".concat(m," ").concat(E[0]))):i(this,d(t).call(this,"".concat(m,"\n\n").concat(E.join("\n"),"\n")))}else{var k=$(c),A="",_=x[o];"notDeepEqual"===o||"notEqual"===o?(k="".concat(x[o],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(A="".concat($(p)),k.length>512&&(k="".concat(k.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?k="".concat(_,"\n\n").concat(k,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),r=i(this,d(t).call(this,"".concat(k).concat(A)))}return Error.stackTraceLimit=h,r.generatedMessage=!a,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=p,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),l),r.stack,r.name="AssertionError",i(r)}var r,l,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s,l,c={};function p(e,t,r){r||(r=Error);var n=function(r){function n(r,i,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),l=a(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,i,s))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,r),n}(r);c[e]=n}function d(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,a){var o,i,l,c;if(void 0===s&&(s=r(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(!l||l<0?0:+l,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var p=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(p," ").concat(o," ").concat(d(t,"type"))}return c+=". Received type ".concat(n(a))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r(9539));var a=l.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(a)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var a="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,o-1).join(", "),a+=", and ".concat(t[o-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o=void 0!==/a/g.flags,i=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(360);function d(e){return e.call.bind(e)}var u=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=r(9539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,x=m.isRegExp,w=m.isSet,$=m.isNativeError,S=m.isBoxedPrimitive,E=m.isNumberObject,k=m.isStringObject,A=m.isBooleanObject,_=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,T=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(j).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function C(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a{"use strict";const n=window,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),i=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(a&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&i.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new s(r,e,o)},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return l(t)})(e):e;var d;const u=window,h=u.trustedTypes,f=h?h.emptyScript:"",m=u.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>t!==e&&(t==t||e==e),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y};class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=v){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{a?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),a=n.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=v){var n;const a=this.constructor._$Ep(e,r);if(void 0!==a&&!0===r.reflect){const o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:g).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,a=n._$Ev.get(e);if(void 0!==a&&this._$El!==a){const e=n.getPropertyOptions(a),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:g;this._$El=a,this[a]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||y)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:b}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const w=window,$=w.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,A="?"+k,_=`<${A}>`,O=document,P=()=>O.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,R=e=>j(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),C="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,M=/>/g,L=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,F=/"/g,U=/^(?:script|style|textarea|title)$/i,q=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),B=q(1),H=(q(2),Symbol.for("lit-noChange")),z=Symbol.for("lit-nothing"),W=new WeakMap,V=O.createTreeWalker(O,129,null,!1),Z=(e,t)=>{const r=e.length-1,n=[];let a,o=2===t?"":"",i=I;for(let t=0;t"===l[0]?(i=null!=a?a:I,c=-1):void 0===l[1]?c=-2:(c=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?L:'"'===l[3]?F:N):i===F||i===N?i=L:i===D||i===M?i=I:(i=L,a=void 0);const d=i===L&&e[t+1].startsWith("/>")?" ":"";o+=i===I?r+_:c>=0?(n.push(s),r.slice(0,c)+E+r.slice(c)+k+d):r+k+(-2===c?(n.push(void 0),t):d)}const s=o+(e[r]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(s):s,n]};class G{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let a=0,o=0;const i=e.length-1,s=this.parts,[l,c]=Z(e,t);if(this.el=G.createElement(l,r),V.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=V.nextNode())&&s.length0){n.textContent=$?$.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const a=this.strings;let o=!1;if(void 0===a)e=K(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let i,s;for(e=a[0],i=0;i{var n,a;const o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let i=o._$litPart$;if(void 0===i){const e=null!==(a=null==r?void 0:r.renderBefore)&&void 0!==a?a:null;o._$litPart$=i=new J(t.insertBefore(P(),e),e,void 0,null!=r?r:{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return H}}se.finalized=!0,se._$litElement$=!0,null===(oe=globalThis.litElementHydrateSupport)||void 0===oe||oe.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se});(null!==(ie=globalThis.litElementVersions)&&void 0!==ie?ie:globalThis.litElementVersions=[]).push("3.3.2");var ce=r(5108);function pe(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let de={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const ue=/[&<>"']/,he=new RegExp(ue.source,"g"),fe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,me=new RegExp(fe.source,"g"),ge={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=e=>ge[e];function ve(e,t){if(t){if(ue.test(e))return e.replace(he,ye)}else if(fe.test(e))return e.replace(me,ye);return e}const be=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xe(e){return e.replace(be,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const we=/(^|[^\[])\^/g;function $e(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(we,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const Se=/[^\w:]/g,Ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ke(e,t,r){if(e){let e;try{e=decodeURIComponent(xe(r)).replace(Se,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ee.test(r)&&(r=function(e,t){Ae[" "+e]||(_e.test(e)?Ae[" "+e]=e+"/":Ae[" "+e]=Re(e,"/",!0));e=Ae[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(Oe,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(Pe,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ae={},_e=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,Pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Te={exec:function(){}};function je(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Ie(e,t,r,n){const a=t.href,o=t.title?ve(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:a,title:o,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:a,title:o,text:ve(i)}}class De{constructor(e){this.options=e||de}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Re(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Re(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,a,o,i,s,l,c,p,d,u,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const y=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(o=2,u=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,u=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(d=e.split("\n",1)[0],p=d,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!a.test(p))&&!i.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=o||!p.trim())u+="\n"+p.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(a.test(c))break;if(i.test(c))break;if(n.test(c))break;u+="\n"+p}s||p.trim()||(s=!0),r+=d+"\n",e=e.substring(d.length+1),c=p.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u),n&&(a="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:u}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=u.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(i=0;i"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:je(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,a,o,i=e.align.length;for(r=0;r({text:e})));for(i=e.header.length,n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ve(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Re(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,a=0;for(;a-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(e)?r.slice(1):r.slice(1,-1)),Ie(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Ie(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let a,o,i=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(o=a.length,n[3]||n[4]){i+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){s+=o;continue}if(i-=o,i>0)continue;o=Math.min(o,o+i+s);const t=e.slice(0,r+n.index+(n[0].length-a.length)+o);if(Math.min(r,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=ve(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=ve(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=ve(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=ve(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=ve(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ve(r[0]):r[0]:ve(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Me={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Te,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Me.def=$e(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.listItemStart=$e(/^( *)(bull) */).replace("bull",Me.bullet).getRegex(),Me.list=$e(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Me._comment=/|$)/,Me.html=$e(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.paragraph=$e(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.blockquote=$e(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal={...Me},Me.gfm={...Me.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Me.gfm.table=$e(Me.gfm.table).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.gfm.paragraph=$e(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Me.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.pedantic={...Me.normal,html:$e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Me.normal._paragraph).replace("hr",Me.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}Le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Le.punctuation=$e(Le.punctuation).replace(/punctuation/g,Le._punctuation).getRegex(),Le.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Le.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Le._comment=$e(Me._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Le.emStrong.lDelim=$e(Le.emStrong.lDelim).replace(/punct/g,Le._punctuation).getRegex(),Le.emStrong.rDelimAst=$e(Le.emStrong.rDelimAst,"g").replace(/punct/g,Le._punctuation).getRegex(),Le.emStrong.rDelimUnd=$e(Le.emStrong.rDelimUnd,"g").replace(/punct/g,Le._punctuation).getRegex(),Le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Le.autolink=$e(Le.autolink).replace("scheme",Le._scheme).replace("email",Le._email).getRegex(),Le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Le.tag=$e(Le.tag).replace("comment",Le._comment).replace("attribute",Le._attribute).getRegex(),Le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Le._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Le.link=$e(Le.link).replace("label",Le._label).replace("href",Le._href).replace("title",Le._title).getRegex(),Le.reflink=$e(Le.reflink).replace("label",Le._label).replace("ref",Me._label).getRegex(),Le.nolink=$e(Le.nolink).replace("ref",Me._label).getRegex(),Le.reflinkSearch=$e(Le.reflinkSearch,"g").replace("reflink",Le.reflink).replace("nolink",Le.nolink).getRegex(),Le.normal={...Le},Le.pedantic={...Le.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",Le._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Le._label).getRegex()},Le.gfm={...Le.normal,escape:$e(Le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,a,o,i,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Fe))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Fe))){if(a=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a,Ne))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class qe{constructor(e){this.options=e||de}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(r?e:ve(e,!0))+"
\n":"
"+(r?e:ve(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`${e}\n`}return`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n='",n}image(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`${r}":">",n}text(e){return e}}class Be{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class He{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class ze{constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Be,this.slugger=new He}static parse(e,t){return new ze(t).parse(e)}static parseInline(e,t){return new ze(t).parseInline(e)}parse(e,t=!0){let r,n,a,o,i,s,l,c,p,d,u,h,f,m,g,y,v,b,x,w="";const $=e.length;for(r=0;r<$;r++)if(d=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(x=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))w+=x||"";else switch(d.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(d.tokens),d.depth,xe(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),p+=this.renderer.listitem(m,v,y);w+=this.renderer.list(p,u,h);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(p=d.tokens?this.parseInline(d.tokens):d.text;r+1<$&&"text"===e[r+1].type;)d=e[++r],p+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void ce.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,a,o="";const i=e.length;for(r=0;r{"function"==typeof n&&(a=n,n=null);const o={...n},i=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+ve(n.message+"",!0)+"
    ";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ze.defaults,...o}).silent,n.async,a);if(null==r)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&ce.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),a){const o=n.highlight;let s;try{n.hooks&&(r=n.hooks.preprocess(r)),s=e(r,n)}catch(e){return i(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ze.walkTokens(s,n.walkTokens),r=t(s,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=o,e?i(e):a(null,r)};if(!o||o.length<3)return l();if(delete n.highlight,!s.length)return l();let c=0;return Ze.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ze.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(i);try{n.hooks&&(r=n.hooks.preprocess(r));const a=e(r,n);n.walkTokens&&Ze.walkTokens(a,n.walkTokens);let o=t(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return i(e)}}}function Ze(e,t,r){return Ve(Ue.lex,ze.parse)(e,t,r)}Ze.options=Ze.setOptions=function(e){var t;return Ze.defaults={...Ze.defaults,...e},t=Ze.defaults,de=t,Ze},Ze.getDefaults=pe,Ze.defaults=de,Ze.use=function(...e){const t=Ze.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Ze.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Ze.defaults.renderer||new qe;for(const r in e.renderer){const n=t[r];t[r]=(...a)=>{let o=e.renderer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.renderer=t}if(e.tokenizer){const t=Ze.defaults.tokenizer||new De;for(const r in e.tokenizer){const n=t[r];t[r]=(...a)=>{let o=e.tokenizer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.tokenizer=t}if(e.hooks){const t=Ze.defaults.hooks||new We;for(const r in e.hooks){const n=t[r];We.passThroughHooks.has(r)?t[r]=a=>{if(Ze.defaults.async)return Promise.resolve(e.hooks[r].call(t,a)).then((e=>n.call(t,e)));const o=e.hooks[r].call(t,a);return n.call(t,o)}:t[r]=(...a)=>{let o=e.hooks[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.hooks=t}if(e.walkTokens){const t=Ze.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ze.setOptions(r)}))},Ze.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ze,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ze.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ze.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ze.walkTokens(n.items,t));break;default:Ze.defaults.extensions&&Ze.defaults.extensions.childTokens&&Ze.defaults.extensions.childTokens[n.type]?Ze.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Ze.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Ze.walkTokens(n.tokens,t)))}return r},Ze.parseInline=Ve(Ue.lexInline,ze.parseInline),Ze.Parser=ze,Ze.parser=ze.parse,Ze.Renderer=qe,Ze.TextRenderer=Be,Ze.Lexer=Ue,Ze.lexer=Ue.lex,Ze.Tokenizer=De,Ze.Slugger=He,Ze.Hooks=We,Ze.parse=Ze;Ze.options,Ze.setOptions,Ze.use,Ze.walkTokens,Ze.parseInline,ze.parse,Ue.lex;var Ge=r(8325),Ke=r.n(Ge);r(7874),r(5433),r(4335),r(9980),r(9385),r(6854),r(9945),r(366),r(4277),r(5712),r(5251),r(3358),r(7046),r(2503),r(57),r(9016);const Ye=c` +(()=>{var e,t,r={6043:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(9185);function i(e,t,r,o,l,c,p,d){let u=null===t?e:e[t];if(u&&"object"==typeof u&&!ArrayBuffer.isView(u))if(n.isAllowed$Ref(u))s(e,t,r,o,l,c,p,d);else{let e=Object.keys(u).sort(((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length));for(let t of e){let e=a.join(r,t),h=a.join(o,t),f=u[t];n.isAllowed$Ref(f)?s(u,t,r,h,l,c,p,d):i(u,t,e,h,l,c,p,d)}}}function s(e,t,r,s,l,c,p,d){let u=null===t?e:e[t],h=o.resolve(r,u.$ref),f=p._resolve(h,s,d);if(null===f)return;let m=a.parse(s).length,g=o.stripHash(f.path),y=o.getHash(f.path),v=g!==p._root$Ref.path,b=n.isExtended$Ref(u);l+=f.indirections;let x=function(e,t,r){for(let n=0;n{if(e.file!==t.file)return e.file{"use strict";const n=r(1969),a=r(9566),{ono:o}=r(8862),i=r(9185);function s(e,t,r,o,i,p,d,u){let h,f={value:e,circular:!1},m=u.dereference.excludedPathMatcher;if(("ignore"===u.dereference.circular||!i.has(e))&&e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!m(r)){if(o.add(e),i.add(e),n.isAllowed$Ref(e,u))h=l(e,t,r,o,i,p,d,u),f.circular=h.circular,f.value=h.value;else for(const g of Object.keys(e)){let y=a.join(t,g),v=a.join(r,g);if(m(v))continue;let b=e[g],x=!1;n.isAllowed$Ref(b,u)?(h=l(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)):o.has(b)?x=c(y,d,u):(h=s(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)),f.circular=f.circular||x}o.delete(e)}return f}function l(e,t,r,a,o,l,p,d){let u=i.resolve(t,e.$ref);const h=l.get(u);if(h){const t=Object.keys(e);if(t.length>1){const r={};for(let n of t)"$ref"===n||n in h.value||(r[n]=e[n]);return{circular:h.circular,value:Object.assign({},h.value,r)}}return h}let f=p._resolve(u,t,d);if(null===f)return{circular:!1,value:null};let m=f.circular,g=m||a.has(f.value);g&&c(t,p,d);let y=n.dereference(e,f.value);if(!g){let e=s(y,f.path,r,a,o,l,p,d);g=e.circular,y=e.value}g&&!m&&"ignore"===d.dereference.circular&&(y=e),m&&(y.$ref=r);const v={circular:g,value:y};return 1===Object.keys(e).length&&l.set(u,v),v}function c(e,t,r){if(t.circular=!0,!r.dereference.circular)throw o.reference(`Circular $ref pointer found at ${e}`);return!0}e.exports=function(e,t){let r=s(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}},321:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(1922),o=r(4185),i=r(5410),s=r(6885),l=r(6043),c=r(3416),p=r(9185),{JSONParserError:d,InvalidPointerError:u,MissingPointerError:h,ResolverError:f,ParserError:m,UnmatchedParserError:g,UnmatchedResolverError:y,isHandledError:v,JSONParserErrorGroup:b}=r(4002),x=r(472),{ono:w}=r(8862);function $(){this.schema=null,this.$refs=new a}function S(e){if(b.getParserErrors(e).length>0)throw new b(e)}e.exports=$,e.exports.default=$,e.exports.JSONParserError=d,e.exports.InvalidPointerError=u,e.exports.MissingPointerError=h,e.exports.ResolverError=f,e.exports.ParserError=m,e.exports.UnmatchedParserError=g,e.exports.UnmatchedResolverError=y,$.parse=function(e,t,r,n){let a=new this;return a.parse.apply(a,arguments)},$.prototype.parse=async function(e,t,r,s){let l,c=i(arguments);if(!c.path&&!c.schema){let e=w(`Expected a file path, URL, or object. Got ${c.path||c.schema}`);return x(c.callback,Promise.reject(e))}this.schema=null,this.$refs=new a;let d="http";if(p.isFileSystemPath(c.path)&&(c.path=p.fromFileSystemPath(c.path),d="file"),c.path=p.resolve(p.cwd(),c.path),c.schema&&"object"==typeof c.schema){let e=this.$refs._add(c.path);e.value=c.schema,e.pathType=d,l=Promise.resolve(c.schema)}else l=o(c.path,this.$refs,c.options);let u=this;try{let e=await l;if(null===e||"object"!=typeof e||n.isBuffer(e)){if(c.options.continueOnError)return u.schema=null,x(c.callback,Promise.resolve(u.schema));throw w.syntax(`"${u.$refs._root$Ref.path||e}" is not a valid JSON Schema`)}return u.schema=e,x(c.callback,Promise.resolve(u.schema))}catch(e){return c.options.continueOnError&&v(e)?(this.$refs._$refs[p.stripHash(c.path)]&&this.$refs._$refs[p.stripHash(c.path)].addError(e),x(c.callback,Promise.resolve(null))):x(c.callback,Promise.reject(e))}},$.resolve=function(e,t,r,n){let a=new this;return a.resolve.apply(a,arguments)},$.prototype.resolve=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.parse(o.path,o.schema,o.options),await s(a,o.options),S(a),x(o.callback,Promise.resolve(a.$refs))}catch(e){return x(o.callback,Promise.reject(e))}},$.bundle=function(e,t,r,n){let a=new this;return a.bundle.apply(a,arguments)},$.prototype.bundle=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),l(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}},$.dereference=function(e,t,r,n){let a=new this;return a.dereference.apply(a,arguments)},$.prototype.dereference=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),c(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}}},5410:(e,t,r)=>{"use strict";const n=r(9021);e.exports=function(e){let t,r,a,o;"function"==typeof(e=Array.prototype.slice.call(e))[e.length-1]&&(o=e.pop());"string"==typeof e[0]?(t=e[0],"object"==typeof e[2]?(r=e[1],a=e[2]):(r=void 0,a=e[1])):(t="",r=e[0],a=e[1]);a instanceof n||(a=new n(a));return{path:t,schema:r,options:a,callback:o}}},9021:(e,t,r)=>{"use strict";const n=r(386),a=r(8391),o=r(4843),i=r(9660),s=r(7743),l=r(5642);function c(e){p(this,c.defaults),p(this,e)}function p(e,t){if(d(t)){let r=Object.keys(t);for(let n=0;n!1}}},4185:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ono:a}=r(8862),o=r(9185),i=r(9961),{ResolverError:s,ParserError:l,UnmatchedParserError:c,UnmatchedResolverError:p,isHandledError:d}=r(4002);e.exports=async function(e,t,r){e=o.stripHash(e);let u=t._add(e),h={url:e,extension:o.getExtension(e)};try{const e=await function(e,t,r){return new Promise(((n,o)=>{let l=i.all(t.resolve);function c(r){!r&&t.continueOnError?o(new p(e.url)):r&&"error"in r?r.error instanceof s?o(r.error):o(new s(r,e.url)):o(a.syntax(`Unable to resolve $ref pointer "${e.url}"`))}l=i.filter(l,"canRead",e),i.sort(l),i.run(l,"read",e,r).then(n,c)}))}(h,r,t);u.pathType=e.plugin.name,h.data=e.result;const o=await function(e,t,r){return new Promise(((o,s)=>{let p=i.all(t.parse),d=i.filter(p,"canParse",e),u=d.length>0?d:p;function h(t){var r;!t.plugin.allowEmpty&&(void 0===(r=t.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||n.isBuffer(r)&&0===r.length)?s(a.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`)):o(t)}function f(r){!r&&t.continueOnError?s(new c(e.url)):r&&"error"in r?r.error instanceof l?s(r.error):s(new l(r.error.message,e.url)):s(a.syntax(`Unable to parse ${e.url}`))}i.sort(u),i.run(u,"parse",e,r).then(h,f)}))}(h,r,t);return u.value=o.result,o.result}catch(e){throw d(e)&&(u.value=e),e}}},9660:(e,t,r)=>{"use strict";var n=r(8764).Buffer;let a=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;e.exports={order:400,allowEmpty:!0,canParse:e=>n.isBuffer(e.data)&&a.test(e.url),parse:e=>n.isBuffer(e.data)?e.data:n.from(e.data)}},386:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);e.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;if(0!==t.trim().length)try{return JSON.parse(t)}catch(t){throw new a(t.message,e.url)}}}},4843:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);let o=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;e.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||n.isBuffer(e.data))&&o.test(e.url),parse(e){if("string"==typeof e.data)return e.data;if(n.isBuffer(e.data))return e.data.toString(this.encoding);throw new a("data is not text",e.url)}}},8391:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002),o=r(3320),{JSON_SCHEMA:i}=r(3320);e.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;try{return o.load(t,{schema:i})}catch(t){throw new a(t.message,e.url)}}}},9566:(e,t,r)=>{"use strict";e.exports=h;const n=r(1969),a=r(9185),{JSONParserError:o,InvalidPointerError:i,MissingPointerError:s,isHandledError:l}=r(4002),c=/\//g,p=/~/g,d=/~1/g,u=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function f(e,t){if(n.isAllowed$Ref(e.value,t)){let r=a.resolve(e.path,e.value.$ref);if(r!==e.path){let a=e.$ref.$refs._resolve(r,e.path,t);return null!==a&&(e.indirections+=a.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,a.value),!1):(e.$ref=a.$ref,e.path=a.path,e.value=a.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new o(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function g(e){if(l(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=g(e);for(let e=0;e{"use strict";e.exports=p;const n=r(9566),{InvalidPointerError:a,isHandledError:o,normalizeError:i}=r(4002),{safePointerToPath:s,stripHash:l,getHash:c}=r(9185);function p(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}p.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map((({footprint:e})=>e));Array.isArray(e.errors)?this.errors.push(...e.errors.map(i).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(i(e))},p.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},p.prototype.get=function(e,t){return this.resolve(e,t).value},p.prototype.resolve=function(e,t,r,i){let p=new n(this,e,r);try{return p.resolve(this.value,t,i)}catch(e){if(!t||!t.continueOnError||!o(e))throw e;return null===e.path&&(e.path=s(c(i))),e instanceof a&&(e.source=decodeURI(l(i))),this.addError(e),null}},p.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},p.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},p.isExternal$Ref=function(e){return p.is$Ref(e)&&"#"!==e.$ref[0]},p.isAllowed$Ref=function(e,t){if(p.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},p.isExtended$Ref=function(e){return p.is$Ref(e)&&Object.keys(e).length>1},p.dereference=function(e,t){if(t&&"object"==typeof t&&p.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},1922:(e,t,r)=>{"use strict";const{ono:n}=r(8862),a=r(1969),o=r(9185);function i(){this.circular=!1,this._$refs={},this._root$Ref=null}function s(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((r=>-1!==t.indexOf(e[r].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?o.toFileSystemPath(t,!0):t})))}e.exports=i,i.prototype.paths=function(e){return s(this._$refs,arguments).map((e=>e.decoded))},i.prototype.values=function(e){let t=this._$refs;return s(t,arguments).reduce(((e,r)=>(e[r.decoded]=t[r.encoded].value,e)),{})},i.prototype.toJSON=i.prototype.values,i.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},i.prototype.get=function(e,t){return this._resolve(e,"",t).value},i.prototype.set=function(e,t){let r=o.resolve(this._root$Ref.path,e),a=o.stripHash(r),i=this._$refs[a];if(!i)throw n(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);i.set(r,t)},i.prototype._add=function(e){let t=o.stripHash(e),r=new a;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r},i.prototype._resolve=function(e,t,r){let a=o.resolve(this._root$Ref.path,e),i=o.stripHash(a),s=this._$refs[i];if(!s)throw n(`Error resolving $ref pointer "${e}". \n"${i}" not found.`);return s.resolve(a,r,e,t)},i.prototype._get$Ref=function(e){e=o.resolve(this._root$Ref.path,e);let t=o.stripHash(e);return this._$refs[t]}},6885:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(4185),i=r(9185),{isHandledError:s}=r(4002);function l(e,t,r,o,i){i=i||new Set;let s=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!i.has(e))if(i.add(e),n.isExternal$Ref(e))s.push(c(e,t,r,o));else for(let p of Object.keys(e)){let d=a.join(t,p),u=e[p];n.isExternal$Ref(u)?s.push(c(u,d,r,o)):s=s.concat(l(u,d,r,o,i))}return s}async function c(e,t,r,n){let a=i.resolve(t,e.$ref),c=i.stripHash(a);if(e=r._$refs[c])return Promise.resolve(e.value);try{let e=l(await o(a,r,n),c+"#",r,n);return Promise.all(e)}catch(e){if(!n.continueOnError||!s(e))throw e;return r._$refs[c]&&(e.source=decodeURI(i.stripHash(t)),e.path=i.safePointerToPath(i.getHash(t))),[]}}e.exports=function(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=l(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(e){return Promise.reject(e)}}},7743:(e,t,r)=>{"use strict";const n=r(3471),{ono:a}=r(8862),o=r(9185),{ResolverError:i}=r(4002);e.exports={order:100,canRead:e=>o.isFileSystemPath(e.url),read:e=>new Promise(((t,r)=>{let s;try{s=o.toFileSystemPath(e.url)}catch(t){r(new i(a.uri(t,`Malformed URI: ${e.url}`),e.url))}try{n.readFile(s,((e,n)=>{e?r(new i(a(e,`Error opening file "${s}"`),s)):t(n)}))}catch(e){r(new i(a(e,`Error opening file "${s}"`),s))}}))}},5642:(e,t,r)=>{"use strict";var n=r(4155),a=r(8764).Buffer;const o=r(8501),i=r(9267),{ono:s}=r(8862),l=r(9185),{ResolverError:c}=r(4002);function p(e,t,r){return new Promise(((n,d)=>{e=l.parse(e),(r=r||[]).push(e.href),function(e,t){return new Promise(((r,n)=>{let s=("https:"===e.protocol?i:o).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",n),s.once("response",(e=>{e.body=a.alloc(0),e.on("data",(t=>{e.body=a.concat([e.body,a.from(t)])})),e.on("error",n),e.on("end",(()=>{r(e)}))}))}))}(e,t).then((o=>{if(o.statusCode>=400)throw s({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)d(new c(s({status:o.statusCode},`Error downloading ${r[0]}. \nToo many redirects: \n ${r.join(" \n ")}`)));else{if(!o.headers.location)throw s({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);p(l.resolve(e,o.headers.location),t,r).then(n,d)}else n(o.body||a.alloc(0))})).catch((t=>{d(new c(s(t,`Error downloading ${e.href}`),e.href))}))}))}e.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>l.isHttp(e.url),read(e){let t=l.parse(e.url);return n.browser&&!t.protocol&&(t.protocol=l.parse(location.href).protocol),p(t,this)}}},4002:(e,t,r)=>{"use strict";const{Ono:n}=r(8862),{stripHash:a,toFileSystemPath:o}=r(9185),i=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};l(i);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${o(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};l(s);l(t.ParserError=class extends i{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});l(t.UnmatchedParserError=class extends i{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});l(t.ResolverError=class extends i{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});l(t.UnmatchedResolverError=class extends i{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});l(t.MissingPointerError=class extends i{constructor(e,t){super(`Token "${e}" does not exist.`,a(t)),this.code="EMISSINGPOINTER"}});function l(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}l(t.InvalidPointerError=class extends i{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,a(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof i||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},9961:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if("function"==typeof o)return o.apply(e,[r,n,a]);if(!n){if(o instanceof RegExp)return o.test(r.url);if("string"==typeof o)return o===r.extension;if(Array.isArray(o))return-1!==o.indexOf(r.extension)}return o}t.all=function(e){return Object.keys(e).filter((t=>"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},t.filter=function(e,t,n){return e.filter((e=>!!r(e,t,n)))},t.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},t.run=function(e,t,n,a){let o,i,s=0;return new Promise(((l,c)=>{function p(){if(o=e[s++],!o)return c(i);try{let i=r(o,t,n,d,a);if(i&&"function"==typeof i.then)i.then(u,h);else if(void 0!==i)u(i);else if(s===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){h(e)}}function d(e,t){e?h(e):u(t)}function u(e){l({plugin:o,result:e})}function h(e){i={plugin:o,error:e},p()}p()}))}},9185:(e,t,r)=>{"use strict";var n=r(4155);let a=/^win/.test(n.platform),o=/\//g,i=/^(\w{2,}):\/\//i,s=e.exports,l=/~1/g,c=/~0/g,p=[/\?/g,"%3F",/\#/g,"%23"],d=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(8575).parse,t.resolve=r(8575).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){a&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(l,"/").replace(c,"~")))}},7929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openapi=t.openapiV31=t.openapiV3=t.openapiV2=t.openapiV1=void 0,t.openapiV1=r(8479),t.openapiV2=r(499),t.openapiV3=r(3659),t.openapiV31=r(1201),t.openapi={v1:t.openapiV1,v2:t.openapiV2,v3:t.openapiV3,v31:t.openapiV31},t.default=t.openapi,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},9181:e=>{"use strict";e.exports=["get","put","post","delete","options","head","patch"]},7325:(e,t,r)=>{"use strict";const n=r(4162),a=r(2103),o=r(5410),i=r(7323),s=r(7757),l=r(472),{ono:c}=r(8862),p=r(321),d=r(3416);function u(){p.apply(this,arguments)}e.exports=u,i.inherits(u,p),u.parse=p.parse,u.resolve=p.resolve,u.bundle=p.bundle,u.dereference=p.dereference,Object.defineProperty(u.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}}),u.prototype.parse=async function(e,t,r,n){let a=o(arguments);a.options=new s(a.options);try{let e=await p.prototype.parse.call(this,a.path,a.schema,a.options);if(e.swagger){if(void 0===e.swagger||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Swagger API definition`);if("number"==typeof e.swagger)throw c.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if("2.0"!==e.swagger)throw c.syntax(`Unrecognized Swagger version: ${e.swagger}. Expected 2.0`)}else{let t=["3.0.0","3.0.1","3.0.2","3.0.3"];if(void 0===e.openapi||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Openapi API definition`);if("number"==typeof e.openapi)throw c.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===t.indexOf(e.openapi))throw c.syntax(`Unsupported OpenAPI version: ${e.openapi}. Swagger Parser only supports versions ${t.join(", ")}`)}return l(a.callback,Promise.resolve(e))}catch(e){return l(a.callback,Promise.reject(e))}},u.validate=function(e,t,r,n){let a=new this;return a.validate.apply(a,arguments)},u.prototype.validate=async function(e,t,r,i){let p=this,u=o(arguments);u.options=new s(u.options);let h=u.options.dereference.circular;u.options.validate.schema&&(u.options.dereference.circular="ignore");try{if(await this.dereference(u.path,u.schema,u.options),u.options.dereference.circular=h,u.options.validate.schema&&(n(p.api),p.$refs.circular))if(!0===h)d(p,u.options);else if(!1===h)throw c.reference("The API contains circular references");return u.options.validate.spec&&a(p.api),l(u.callback,Promise.resolve(p.schema))}catch(e){return l(u.callback,Promise.reject(e))}}},7757:(e,t,r)=>{"use strict";const n=r(9021),a=r(4162),o=r(2103),i=r(9539);function s(e){n.call(this,s.defaults),n.apply(this,arguments)}e.exports=s,s.defaults={validate:{schema:a,spec:o}},i.inherits(s,n)},7323:(e,t,r)=>{"use strict";const n=r(9539);t.format=n.format,t.inherits=n.inherits,t.swaggerParamRegExp=/\{([^/}]+)}/g},4162:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(5077),{openapi:i}=r(7929);e.exports=function(e){let t=e.swagger?i.v2:i.v3;if(!s.validate(e,t)){let e=s.getLastError(),t="Swagger schema validation failed. \n"+l(e.details);throw a.syntax(e,{details:e.details},t)}};let s=(delete i.v2.id,delete i.v3.id,o.registerFormat("uri-reference",(e=>e.trim().length>0)),new o({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0}));function l(e,t){t=t||" ";let r="";for(let a of e)r+=n.format(`${t}${a.message} at #/${a.path.join("/")}\n`),a.inner&&(r+=l(a.inner,t+" "));return r}},2103:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(9181),i=["array","boolean","integer","number","string"],s=["array","boolean","integer","number","string","object","null",void 0];function l(e,t,r,n){for(let i of o){let o=t[i],s=r+"/"+i;if(o){let i=o.operationId;if(i){if(-1!==n.indexOf(i))throw a.syntax(`Validation failed. Duplicate operation id '${i}'`);n.push(i)}c(e,t,r,o,s);let l=Object.keys(o.responses||{});for(let e of l){d(e,o.responses[e]||{},s+"/responses/"+e)}}}}function c(e,t,r,o,l){let c=t.parameters||[],d=o.parameters||[];try{p(c)}catch(e){throw a.syntax(e,`Validation failed. ${r} has duplicate parameters`)}try{p(d)}catch(e){throw a.syntax(e,`Validation failed. ${l} has duplicate parameters`)}let f=c.reduce(((e,t)=>(e.some((e=>e.in===t.in&&e.name===t.name))||e.push(t),e)),d.slice());!function(e,t){let r=e.filter((e=>"body"===e.in)),n=e.filter((e=>"formData"===e.in));if(r.length>1)throw a.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw a.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}(f,l),function(e,t,r){let o=t.match(n.swaggerParamRegExp)||[];for(let e=0;e"path"===e.in));for(let t of e){if(!0!==t.required)throw a.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${t.name}" parameter at ${r}`);let e=o.indexOf("{"+t.name+"}");if(-1===e)throw a.syntax(`Validation failed. ${r} has a path parameter named "${t.name}", but there is no corresponding {${t.name}} in the path string`);o.splice(e,1)}if(o.length>0)throw a.syntax(`Validation failed. ${r} is missing path parameter(s) for ${o}`)}(f,r,l),function(e,t,r,n){for(let o of e){let e,l,c=n+"/parameters/"+o.name;switch(o.in){case"body":e=o.schema,l=s;break;case"formData":e=o,l=i.concat("file");break;default:e=o,l=i}if(u(e,c,l),h(e,c),"file"===e.type){let e=/multipart\/(.*\+)?form-data/,o=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some((t=>e.test(t)||o.test(t))))throw a.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}(f,e,o,l)}function p(e){for(let t=0;t599))throw a.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let e of n){u(t.headers[e],r+"/headers/"+e,i)}if(t.schema){let e=s.concat("file");if(-1===e.indexOf(t.schema.type))throw a.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);u(t.schema,r+"/schema",e)}}function u(e,t,r){if(-1===r.indexOf(e.type))throw a.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if("array"===e.type&&!e.items)throw a.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}function h(e,t){if(e.required&&Array.isArray(e.required)){let r={};!function e(t,r){if(t.properties)for(let e in t.properties)t.properties.hasOwnProperty(e)&&(r[e]=t.properties[e]);if(t.allOf)for(let n of t.allOf)e(n,r)}(e,r);for(let n of e.required)if(!r[n])throw a.syntax(`Validation failed. Property '${n}' listed as required but does not exist in '${t}'`)}}e.exports=function(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let n of t){let t=e.paths[n],a="/paths"+n;t&&0===n.indexOf("/")&&l(e,t,a,r)}let n=Object.keys(e.definitions||{});for(let t of n){h(e.definitions[t],"/definitions/"+t)}}},8862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>y,default:()=>$,ono:()=>b});const n=!1,a=!1,o=/\r?\n/,i=/\bono[ @]/;function s(e,t){let r=c(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function l(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>s({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>c(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function c(e){if(e){let t,r=e.split(o);for(let e=0;e0)return r.join("\n")}return e}const p=["function","symbol","undefined"],d=["constructor","prototype","__proto__"],u=Object.getPrototypeOf({});function h(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],a=typeof n;p.includes(a)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==u;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(d))n.delete(e);return n}const m=["name","message","stack"];function g(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=s(e,t)):l(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,m),n=e,a=t;for(let e of r)if(void 0===n[e])try{n[e]=a[e]}catch(e){}}(n,t),n.toJSON=h,a&&a(n),r&&"object"==typeof r&&Object.assign(n,r),n}const y=v;function v(e,t){function r(...r){let{originalError:n,props:a,message:o}=function(e,t){let r,n,a,o="";return"string"==typeof e[0]?a=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],a=e.slice(1)):(r=e[0],n=e[1],a=e.slice(2)),a.length>0&&(o=t.format?t.format.apply(void 0,a):a.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?" \n":"")+r.message),{originalError:r,props:n,message:o}}(r,t);return g(new e(o),n,a)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?n:"function"==typeof e.format&&e.format}}(t),r[Symbol.species]=e,r}v.toJSON=function(e){return h.call(e)},v.extend=function(e,t,r){return r||t instanceof Error?g(e,t,r):t?g(e,void 0,t):g(e)};const b=w;w.error=new y(Error),w.eval=new y(EvalError),w.range=new y(RangeError),w.reference=new y(ReferenceError),w.syntax=new y(SyntaxError),w.type=new y(TypeError),w.uri=new y(URIError);const x=w;function w(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(x))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return w.error.apply(void 0,e)}r(9539);e=r.hmd(e);const $=b;"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},5096:(e,t,r)=>{"use strict";var n=r(5108),a=r(7153),o=r(3610),i=r(7531),s=r(4022),l=r(5035),c=r(1516),p=r(7753),d=r(3978),u=r(2889);e.exports=v,v.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var a=r(t);!0!==r.$async&&(this.errors=r.errors);return a},v.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},v.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var a=0;a{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},2931:(e,t,r)=>{"use strict";var n=r(7802).MissingRef;e.exports=function e(t,r,a){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(a=r,r=void 0);var i=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||l(e)}));a&&i.then((function(e){a(null,e)}),a);return i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function l(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=o._loadingSchemas[n];a||(a=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(i,i);return a.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function i(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},7802:(e,t,r)=>{"use strict";var n=r(3610);function a(e,t,r){this.message=r||a.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(a)},a.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},1516:(e,t,r)=>{"use strict";var n=r(2889),a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,u=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(a);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(i);if(!r)return!1;var n=r[1],a=r[2],o=r[3],s=r[5];return(n<=23&&a<=59&&o<=59||23==n&&59==a&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var v=/t|\s/i;var b=/\/|:/;var x=/[^\\]\\Z/;function w(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7153:(e,t,r)=>{"use strict";var n=r(3610),a=r(2889),o=r(7802),i=r(5035),s=r(9508),l=a.ucs2length,c=r(4063),p=o.Validation;function d(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function u(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n{"use strict";var n=r(540),a=r(4063),o=r(2889),i=r(4022),s=r(9461);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof i)return f(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var a,o,s,p=c.call(this,t,r);return p&&(a=p.schema,t=p.root,s=p.baseId),a instanceof i?o=a.validate||e.call(this,a.schema,t,void 0,s):void 0!==a&&(o=f(a,this._opts.inlineRefs)?a:e.call(this,a,t,void 0,s)),o}function c(e,t){var r=n.parse(t),a=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var s=x(a),l=this._refs[s];if("string"==typeof l)return p.call(this,e,l,r);if(l instanceof i)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof i))return;if(l.validate||this._compile(l),s==x(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=y(this._getId(e.schema))}return u.call(this,r,o,e.schema,e)}function p(e,t,r){var n=c.call(this,e,t);if(n){var a=n.schema,o=n.baseId;e=n.root;var i=this._getId(a);return i&&(o=w(o,i)),u.call(this,r,o,a,e)}}e.exports=l,l.normalizeId=x,l.fullPath=y,l.url=w,l.ids=function(e){var t=x(this._getId(e)),r={"":t},i={"":y(t,!1)},l={},c=this;return s(e,{allKeys:!0},(function(e,t,s,p,d,u,h){if(""!==t){var f=c._getId(e),m=r[p],g=i[p]+"/"+d;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof f){f=m=x(m?n.resolve(m,f):f);var y=c._refs[f];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!a(e,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=x(g))if("#"==f[0]){if(l[f]&&!a(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=g}r[t]=m,i[t]=g}})),l},l.inlineRef=f,l.schema=c;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function u(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),i=1;i{"use strict";var n=r(6674),a=r(2889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=a(t),e.types=a(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var a;if("object"==typeof r){var o=Object.keys(r)[0];a=r[o],r=o,a.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:a}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=a(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},4022:(e,t,r)=>{"use strict";var n=r(2889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,a=0;a=55296&&t<=56319&&a{"use strict";function n(e,t,r,n){var a=n?" !== ":" === ",o=n?" || ":" && ",i=n?"!":"",s=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+o+"typeof "+t+a+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+o+s+"("+t+" % 1)"+o+t+a+t+(r?o+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(r?o+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var a="",i=o(e);for(var s in i.array&&i.object&&(a=i.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)a+=(a?" && ":"")+n(s,t,r,!0);return a},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!a)return o}for(var s=o,c=a.split("/"),p=0;p{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8210:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[f],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!u&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(f+" must be number or boolean");if(g){var x=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,$="exclType"+o,S="exclIsNumber"+o,E="' + "+(_="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+x+"; ",a+=" var "+w+"; var "+$+" = typeof "+(x="schemaExcl"+o)+"; if ("+$+" != 'boolean' && "+$+" != 'undefined' && "+$+" != 'number') { ";var k;b=f;(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var A=a;a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+$+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+y+"= "+n+") ? "+d+" "+v+"= "+x+" : "+d+" "+v+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+d+" "+v+"= "+n+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=f,c=e.errSchemaPath+"/"+f,n=x,u=g)}else{E=y;if((S="number"==typeof m)&&u){var _="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+d+" "+v+"= "+m+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { "}else{S&&void 0===s?(w=!0,b=f,c=e.errSchemaPath+"/"+f,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=f,c=e.errSchemaPath+"/"+f,v+="="):(w=!1,E+="="));_="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+" "+v+" "+n+" || "+d+" !== "+d+") { "}}b=b||t,(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+E+" ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";A=a;return a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { "),a}},3038:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},425:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?a+=" "+d+".length ":a+=" ucs2length("+d+") ",a+=" "+h+" "+n+") { ";var f=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var g=a;return a=m.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8204:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},2988:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var p="valid"+l.level,d=l.baseId,u=!0,h=a;if(h)for(var f,m=-1,g=h.length-1;m0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(u=!1,l.schema=f,l.schemaPath=o+"["+m+"]",l.errSchemaPath=i+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=d,s&&(n+=" if ("+p+") { ",c+="}"));return s&&(n+=u?" if (true) { ":" "+c.slice(0,-1)+" "),n}},9996:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+u+" = errors; var "+d+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=i;if(b)for(var x,w=-1,$=b.length-1;w<$;)x=b[w+=1],h.schema=x,h.schemaPath=s+"["+w+"]",h.errSchemaPath=l+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+d+" = "+d+" || "+m+"; if (!"+d+") { ",f+="}";e.compositeRule=h.compositeRule=v,n+=" "+f+" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},7812:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(a));return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},5306:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),u||(n+=" var schema"+a+" = validate.schema"+s+";"),n+="var "+d+" = equal("+p+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m="i"+a,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+u+" = errors;var "+d+";",b){var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+f+" = false; for (var "+m+" = 0; "+m+" < "+p+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=p+"["+m+"]";h.dataPathArr[g]=m;var $=e.validate(h);h.baseId=v,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,w)+" ":n+=" var "+y+" = "+w+"; "+$+" ",n+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=x,n+=" if (!"+f+") {"}else n+=" if ("+p+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},4165:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,u="data"+(s||""),h="valid"+i,f="errs__"+i,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+i+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",a="schema"+i):a=l;var g,y,v,b,x,w=this,$="definition"+i,S=w.definition,E="";if(m&&S.$data){x="keywordValidate"+i;var k=S.validateSchema;o+=" var "+$+" = RULES.custom['"+t+"'].definition; var "+x+" = "+$+".validate;"}else{if(!(b=e.useCustomRule(w,l,e.schema,e)))return;a="validate.schema"+c,x=b.code,g=S.compile,y=S.inline,v=S.macro}var A=x+".errors",_="i"+i,O="ruleErr"+i,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=A+" = null;"),o+="var "+f+" = errors;var "+h+";",m&&S.$data&&(E+="}",o+=" if ("+a+" === undefined) { "+h+" = true; } else { ",k&&(E+="}",o+=" "+h+" = "+$+".validateSchema("+a+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var T=e.util.copy(e);E="";T.level++;var j="valid"+T.level;T.schema=b.validate,T.schemaPath="";var C=e.compositeRule;e.compositeRule=T.compositeRule=!0;var R=e.validate(T).replace(/validate\.schema/g,x);e.compositeRule=T.compositeRule=C,o+=" "+R}else{(M=M||[]).push(o),o="",o+=" "+x+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+u+" ":o+=" , "+a+" , "+u+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+I+" , "+D+" , rootData ) ";o=M.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=L+"; "):o+=P?" var "+(A="customErrors"+i)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+h+" = "+L+"; "}if(S.modifying&&(o+=" if ("+I+") "+u+" = "+I+"["+D+"];"),o+=""+E,S.valid)d&&(o+=" if (true) { ");else{var M;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+j:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(M=M||[]).push(o),o="",(M=M||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var N=o;o=M.pop(),!e.compositeRule&&d?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=M.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+_+"="+f+"; "+_+"{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m={},g={},y=e.opts.ownProperties;for(w in i)if("__proto__"!=w){var v=i[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+d+" = errors;";var x=e.errorPath;for(var w in n+="var missing"+a+";",g)if((b=g[w]).length){if(n+=" if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var $=b;if($)for(var S=-1,E=$.length-1;S0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+f+" = true; if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",u.schema=v,u.schemaPath=s+e.util.getProperty(w),u.errSchemaPath=l+"/"+e.util.escapeFragment(w),n+=" "+e.validate(u)+" ",u.baseId=D,n+=" } ",c&&(n+=" if ("+f+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},1740:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="i"+a,f="schema"+a;u||(n+=" var "+f+" = validate.schema"+s+";"),n+="var "+d+";",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=d+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+p+", "+f+"["+h+"])) { "+d+" = true; break; }",u&&(n+=" } "),n+=" if (!"+d+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9014:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var d,u=e.opts.$data&&i&&i.$data;u?(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",d="schema"+a):d=i;var h=e.opts.unknownFormats,f=Array.isArray(h);if(u){n+=" var "+(m="format"+a)+" = formats["+d+"]; var "+(g="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+a)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+a+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",u&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+d+" && !"+m+" ",f&&(n+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+a+" ? await "+m+"("+p+") : "+m+"("+p+")) ":n+=" "+m+"("+p+") ",n+=" : "+m+".test("+p+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(f&&h.indexOf(i)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+p+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+p+") ":" "+b+".test("+p+") ",n+=") { "}}var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=u?""+d:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=u?"' + "+d+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=u?"validate.schema"+s:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var w=n;return n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},7231:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var x;h.createErrors=!1,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+u+" = errors; var "+d+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'then'; ":x="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+f+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'else'; ":x="'else'",n+=" } "),n+=" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+x+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},6674:(e,t,r)=>{"use strict";e.exports={$ref:r(2392),allOf:r(2988),anyOf:r(9996),$comment:r(7812),const:r(5306),contains:r(2840),dependencies:r(6659),enum:r(1740),format:r(9014),if:r(7231),items:r(7482),maximum:r(8210),minimum:r(8210),maxItems:r(3038),minItems:r(3038),maxLength:r(425),minLength:r(425),maxProperties:r(8204),minProperties:r(8204),multipleOf:r(3673),not:r(8528),oneOf:r(9709),pattern:r(9614),properties:r(1175),propertyNames:r(8441),required:r(1287),uniqueItems:r(3603),validate:r(9508)}},7482:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g="i"+a,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+u+" = errors;var "+d+";",Array.isArray(i)){var x=e.schema.additionalItems;if(!1===x){n+=" "+d+" = "+p+".length <= "+i.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+d+") { ";var $=$||[];$.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=$.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=w,c&&(f+="}",n+=" else { ")}var E=i;if(E)for(var k,A=-1,_=E.length-1;A<_;)if(k=E[A+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";h.schema=k,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,h.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),h.dataPathArr[y]=A;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",f+="}")}if("object"==typeof x&&(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))){h.schema=x,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+p+".length > "+i.length+") { for (var "+g+" = "+i.length+"; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+f+" if ("+u+" == errors) {"),n}},3673:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="var division"+o+";if (",u&&(a+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),a+=" (division"+o+" = "+d+" / "+n+", ",e.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",u&&(a+=" ) "),a+=" ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8528:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l,n+=" var "+d+" = errors; ";var f,m=e.compositeRule;e.compositeRule=u.compositeRule=!0,u.createErrors=!1,u.opts.allErrors&&(f=u.opts.allErrors,u.opts.allErrors=!1),n+=" "+e.validate(u)+" ",u.createErrors=!0,f&&(u.opts.allErrors=f),e.compositeRule=u.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},9709:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+a,v="passingSchemas"+a;n+="var "+u+" = errors , "+y+" = false , "+d+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=i;if(x)for(var w,$=-1,S=x.length-1;$0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+$+"]",h.errSchemaPath=l+"/"+$,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",$&&(n+=" if ("+m+" && "+y+") { "+d+" = false; "+v+" = ["+v+", "+$+"]; } else { ",f+="}"),n+=" if ("+m+") { "+d+" = "+y+" = true; "+v+" = "+$+"; }";return e.compositeRule=h.compositeRule=b,n+=f+"if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9614:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),a+=" !"+(u?"(new RegExp("+n+"))":e.usePattern(s))+".test("+d+") ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",a+=u?""+n:""+e.util.toQuotedString(s),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=u?"' + "+n+" + '":""+e.util.escapeQuotes(s),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+e.util.toQuotedString(s),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},1175:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m="key"+a,g="idx"+a,y=u.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+a,x=Object.keys(i||{}).filter(R),w=e.schema.patternProperties||{},$=Object.keys(w).filter(R),S=e.schema.additionalProperties,E=x.length||$.length,k=!1===S,A="object"==typeof S&&Object.keys(S).length,_=e.opts.removeAdditional,O=k||A||_,P=e.opts.ownProperties,T=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=x;if(I)for(var D=-1,L=I.length-1;D0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var Q=e.util.getProperty(G),ee=(W=p+Q,V&&void 0!==X.default);u.schema=X,u.schemaPath=s+Q,u.errSchemaPath=l+"/"+e.util.escapeFragment(G),u.errorPath=e.util.getPath(e.errorPath,G,e.opts.jsonPointers),u.dataPathArr[y]=e.util.toQuotedString(G);Z=e.validate(u);if(u.baseId=T,e.util.varOccurences(Z,v)<2){Z=e.util.varReplace(Z,v,W);var te=W}else{te=v;n+=" var "+v+" = "+W+"; "}if(ee)n+=" "+Z+" ";else{if(C&&C[G]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=") { "+f+" = false; ";U=e.errorPath,B=l;var re,ne=e.util.escapeQuotes(G);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,G,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";H=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=B,e.errorPath=U,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=") { "+f+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=" ) { ");n+=" "+Z+" } "}}c&&(n+=" if ("+f+") { ",h+="}")}}if($.length){var ae=$;if(ae)for(var oe,ie=-1,se=ae.length-1;ie0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){u.schema=X,u.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),u.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+p+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",u.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);W=p+"["+m+"]";u.dataPathArr[y]=m;Z=e.validate(u);u.baseId=T,e.util.varOccurences(Z,v)<2?n+=" "+e.util.varReplace(Z,v,W)+" ":n+=" var "+v+" = "+W+"; "+Z+" ",c&&(n+=" if (!"+f+") break; "),n+=" } ",c&&(n+=" else "+f+" = true; "),n+=" } ",c&&(n+=" if ("+f+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},8441:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(n+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l;var f="key"+a,m="idx"+a,g="i"+a,y="' + "+f+" + '",v="data"+(u.dataLevel=e.dataLevel+1),b="dataProperties"+a,x=e.opts.ownProperties,w=e.baseId;x&&(n+=" var "+b+" = undefined; "),n+=x?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+f+" = "+b+"["+m+"]; ":" for (var "+f+" in "+p+") { ",n+=" var startErrs"+a+" = errors; ";var $=f,S=e.compositeRule;e.compositeRule=u.compositeRule=!0;var E=e.validate(u);u.baseId=w,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,$)+" ":n+=" var "+v+" = "+$+"; "+E+" ",e.compositeRule=u.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(s||""),u="valid"+i;if("#"==l||"#/"==l)e.isRoot?(n=e.async,a="validate"):(n=!0===e.root.schema.$async,a="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(f),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,f);e.logger.warn(f),p&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",p&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,a=h.code}if(a){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+a+".call(this, ":o+=" "+a+"( ",o+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");p&&(o+=" var "+u+"; "),o+=" try { await "+b+"; ",p&&(o+=" "+u+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(o+=" "+u+" = false; "),o+=" } ",p&&(o+=" if ("+u+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",p&&(o+=" else { ")}return o}},1287:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!u)if(i.length0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=g)}}else f=i;if(u||f.length){var x=e.errorPath,w=u||f.length>=e.opts.loopRequired,$=e.opts.ownProperties;if(c)if(n+=" var missing"+a+"; ",w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),n+=" var "+d+" = true; ",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { "+d+" = "+p+"["+h+"["+A+"]] !== undefined ",$&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+="; if (!"+d+") break; } ",u&&(n+=" } "),n+=" if (!"+d+") { ",(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=f;if(k)for(var A=-1,_=k.length-1;A<_;){j=k[A+=1],A&&(n+=" || "),n+=" ( ( "+(D=p+(I=e.util.getProperty(j)))+" === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:I)+") ) "}n+=") { ";var O;S="' + "+(P="missing"+a)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,P,!0):x+" + "+P),(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),u&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { if ("+p+"["+h+"["+A+"]] === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",u&&(n+=" } ")}else{var T=f;if(T)for(var j,C=-1,R=T.length-1;C{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(a+=" var "+u+"; if ("+n+" === false || "+n+" === undefined) "+u+" = true; else if (typeof "+n+" != 'boolean') "+u+" = false; else { "),a+=" var i = "+d+".length , "+u+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,m=Array.isArray(f);if(!f||"object"==f||"array"==f||m&&(f.indexOf("object")>=0||f.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+u+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(m?"s":"");a+=" if ("+e.util[g](f,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+u+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",h&&(a+=" } "),a+=" if (!"+u+") { ";var y=y||[];y.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var v=a;a=y.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { ")}else p&&(a+=" if (true) { ");return a}},9508:e=>{"use strict";e.exports=function(e,t,r){var n="",a=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",a&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,p=e.dataLevel,d=e.schema[t],u=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(p||""),g="valid"+c;if(!1===e.schema){e.isTop?f=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=a?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,p=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((p=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,f=!e.opts.allErrors;var x="",w="",$=e.schema.type,S=Array.isArray($);if($&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==$.indexOf("null")&&($=$.concat("null")):"null"!=$&&($=[$,"null"],S=!0)),S&&1==$.length&&($=$[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),$){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,$);var k=e.RULES.types[$];if(E||S||!0===k||k&&!J(k)){u=e.schemaPath+".type",h=e.errSchemaPath+"/type",u=e.schemaPath+".type",h=e.errSchemaPath+"/type";var A=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[A]($,m,e.opts.strictNumbers,!0)+") { ",E){var _="dataType"+c,O="coerced"+c;n+=" var "+_+" = typeof "+m+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+_+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+_+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+O+" = "+m+"; } "),n+=" if ("+O+" !== undefined) ; ";var P=E;if(P)for(var T,j=-1,C=P.length-1;j{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,a=r(4165),o=r(1128);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var i=0;i{"use strict";var n=r(4155),a=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,s,l=r(2136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,p=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,f=r(5961),m=r(9539).inspect,g=r(9539).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:r(8091).assign,x=Object.is?Object.is:r(609);new Map;function w(){var e=r(9158);i=e.isDeepEqual,s=e.isDeepStrictEqual}var $=!1,S=e.exports=_,E={};function k(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,r,n){if(!r){var a=!1;if(0===t)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=a,o}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a{"use strict";var n=r(4155);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;re.length)&&(r=e.length),e.substring(r-t.length,r)===t}var g="",y="",v="",b="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function $(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,r){var a="",o="",i=0,s="",l=!1,c=$(e),p=c.split("\n"),d=$(t).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===p.length&&1===d.length&&p[0]!==d[0]){var w=p[0].length+d[0].length;if(w<=10){if(!("object"===u(e)&&null!==e||"object"===u(t)&&null!==t||0===e&&0===t))return"".concat(x[r],"\n\n")+"".concat(p[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r){if(w<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;p[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var S=p[p.length-1],E=d[d.length-1];S===E&&(h++<2?s="\n ".concat(S).concat(s):a=S,p.pop(),d.pop(),0!==p.length&&0!==d.length);)S=p[p.length-1],E=d[d.length-1];var k=Math.max(p.length,d.length);if(0===k){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var _=0,O=x[r]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),P=" ".concat(g,"...").concat(b," Lines skipped");for(h=0;h1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(d[h-2]),_++),o+="\n ".concat(d[h-1]),_++),i=h,a+="\n".concat(v,"-").concat(b," ").concat(d[h]),_++;else if(d.length1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(p[h]),_++;else{var j=d[h],C=p[h],R=C!==j&&(!m(C,",")||C.slice(0,-1)!==j);R&&m(j,",")&&j.slice(0,-1)===C&&(R=!1,C+=","),R?(T>1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(C),a+="\n".concat(v,"-").concat(b," ").concat(j),_+=2):(o+=a,a="",1!==T&&0!==h||(o+="\n ".concat(C),_++))}if(_>20&&h30)for(E[26]="".concat(g,"...").concat(b);E.length>27;)E.pop();r=1===E.length?i(this,d(t).call(this,"".concat(m," ").concat(E[0]))):i(this,d(t).call(this,"".concat(m,"\n\n").concat(E.join("\n"),"\n")))}else{var k=$(c),A="",_=x[o];"notDeepEqual"===o||"notEqual"===o?(k="".concat(x[o],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(A="".concat($(p)),k.length>512&&(k="".concat(k.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?k="".concat(_,"\n\n").concat(k,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),r=i(this,d(t).call(this,"".concat(k).concat(A)))}return Error.stackTraceLimit=h,r.generatedMessage=!a,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=p,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),l),r.stack,r.name="AssertionError",i(r)}var r,l,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s,l,c={};function p(e,t,r){r||(r=Error);var n=function(r){function n(r,i,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),l=a(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,i,s))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,r),n}(r);c[e]=n}function d(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,a){var o,i,l,c;if(void 0===s&&(s=r(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(!l||l<0?0:+l,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var p=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(p," ").concat(o," ").concat(d(t,"type"))}return c+=". Received type ".concat(n(a))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r(9539));var a=l.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(a)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var a="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,o-1).join(", "),a+=", and ".concat(t[o-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o=void 0!==/a/g.flags,i=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(360);function d(e){return e.call.bind(e)}var u=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=r(9539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,x=m.isRegExp,w=m.isSet,$=m.isNativeError,S=m.isBoxedPrimitive,E=m.isNumberObject,k=m.isStringObject,A=m.isBooleanObject,_=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,T=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function C(e){return Object.keys(e).filter(j).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a{"use strict";const n=window,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),i=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(a&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&i.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new s(r,e,o)},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return l(t)})(e):e;var d;const u=window,h=u.trustedTypes,f=h?h.emptyScript:"",m=u.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>t!==e&&(t==t||e==e),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y};class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=v){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{a?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),a=n.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=v){var n;const a=this.constructor._$Ep(e,r);if(void 0!==a&&!0===r.reflect){const o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:g).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,a=n._$Ev.get(e);if(void 0!==a&&this._$El!==a){const e=n.getPropertyOptions(a),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:g;this._$El=a,this[a]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||y)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:b}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const w=window,$=w.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,A="?"+k,_=`<${A}>`,O=document,P=()=>O.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,C=e=>j(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),R="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,L=/>/g,M=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,F=/"/g,U=/^(?:script|style|textarea|title)$/i,q=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),B=q(1),H=(q(2),Symbol.for("lit-noChange")),z=Symbol.for("lit-nothing"),W=new WeakMap,Z=O.createTreeWalker(O,129,null,!1),V=(e,t)=>{const r=e.length-1,n=[];let a,o=2===t?"":"",i=I;for(let t=0;t"===l[0]?(i=null!=a?a:I,c=-1):void 0===l[1]?c=-2:(c=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?M:'"'===l[3]?F:N):i===F||i===N?i=M:i===D||i===L?i=I:(i=M,a=void 0);const d=i===M&&e[t+1].startsWith("/>")?" ":"";o+=i===I?r+_:c>=0?(n.push(s),r.slice(0,c)+E+r.slice(c)+k+d):r+k+(-2===c?(n.push(void 0),t):d)}const s=o+(e[r]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(s):s,n]};class K{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let a=0,o=0;const i=e.length-1,s=this.parts,[l,c]=V(e,t);if(this.el=K.createElement(l,r),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Z.nextNode())&&s.length0){n.textContent=$?$.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const a=this.strings;let o=!1;if(void 0===a)e=G(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let i,s;for(e=a[0],i=0;i{var n,a;const o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let i=o._$litPart$;if(void 0===i){const e=null!==(a=null==r?void 0:r.renderBefore)&&void 0!==a?a:null;o._$litPart$=i=new J(t.insertBefore(P(),e),e,void 0,null!=r?r:{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return H}}se.finalized=!0,se._$litElement$=!0,null===(oe=globalThis.litElementHydrateSupport)||void 0===oe||oe.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se});(null!==(ie=globalThis.litElementVersions)&&void 0!==ie?ie:globalThis.litElementVersions=[]).push("3.3.2");var ce=r(5108);function pe(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let de={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const ue=/[&<>"']/,he=new RegExp(ue.source,"g"),fe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,me=new RegExp(fe.source,"g"),ge={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=e=>ge[e];function ve(e,t){if(t){if(ue.test(e))return e.replace(he,ye)}else if(fe.test(e))return e.replace(me,ye);return e}const be=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xe(e){return e.replace(be,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const we=/(^|[^\[])\^/g;function $e(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(we,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const Se=/[^\w:]/g,Ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ke(e,t,r){if(e){let e;try{e=decodeURIComponent(xe(r)).replace(Se,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ee.test(r)&&(r=function(e,t){Ae[" "+e]||(_e.test(e)?Ae[" "+e]=e+"/":Ae[" "+e]=Ce(e,"/",!0));e=Ae[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(Oe,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(Pe,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ae={},_e=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,Pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Te={exec:function(){}};function je(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Ie(e,t,r,n){const a=t.href,o=t.title?ve(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:a,title:o,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:a,title:o,text:ve(i)}}class De{constructor(e){this.options=e||de}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Ce(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Ce(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,a,o,i,s,l,c,p,d,u,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const y=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(o=2,u=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,u=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(d=e.split("\n",1)[0],p=d,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!a.test(p))&&!i.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=o||!p.trim())u+="\n"+p.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(a.test(c))break;if(i.test(c))break;if(n.test(c))break;u+="\n"+p}s||p.trim()||(s=!0),r+=d+"\n",e=e.substring(d.length+1),c=p.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u),n&&(a="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:u}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=u.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(i=0;i"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:je(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,a,o,i=e.align.length;for(r=0;r({text:e})));for(i=e.header.length,n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ve(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Ce(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,a=0;for(;a-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(e)?r.slice(1):r.slice(1,-1)),Ie(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Ie(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let a,o,i=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(o=a.length,n[3]||n[4]){i+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){s+=o;continue}if(i-=o,i>0)continue;o=Math.min(o,o+i+s);const t=e.slice(0,r+n.index+(n[0].length-a.length)+o);if(Math.min(r,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=ve(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=ve(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=ve(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=ve(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=ve(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ve(r[0]):r[0]:ve(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Le={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Te,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Le.def=$e(Le.def).replace("label",Le._label).replace("title",Le._title).getRegex(),Le.bullet=/(?:[*+-]|\d{1,9}[.)])/,Le.listItemStart=$e(/^( *)(bull) */).replace("bull",Le.bullet).getRegex(),Le.list=$e(Le.list).replace(/bull/g,Le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Le.def.source+")").getRegex(),Le._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Le._comment=/|$)/,Le.html=$e(Le.html,"i").replace("comment",Le._comment).replace("tag",Le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Le.paragraph=$e(Le._paragraph).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.blockquote=$e(Le.blockquote).replace("paragraph",Le.paragraph).getRegex(),Le.normal={...Le},Le.gfm={...Le.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Le.gfm.table=$e(Le.gfm.table).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.gfm.paragraph=$e(Le._paragraph).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Le.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.pedantic={...Le.normal,html:$e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Le._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Le.normal._paragraph).replace("hr",Le.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}Me._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Me.punctuation=$e(Me.punctuation).replace(/punctuation/g,Me._punctuation).getRegex(),Me.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Me.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Me._comment=$e(Le._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Me.emStrong.lDelim=$e(Me.emStrong.lDelim).replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimAst=$e(Me.emStrong.rDelimAst,"g").replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimUnd=$e(Me.emStrong.rDelimUnd,"g").replace(/punct/g,Me._punctuation).getRegex(),Me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Me._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Me.autolink=$e(Me.autolink).replace("scheme",Me._scheme).replace("email",Me._email).getRegex(),Me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Me.tag=$e(Me.tag).replace("comment",Me._comment).replace("attribute",Me._attribute).getRegex(),Me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Me._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Me.link=$e(Me.link).replace("label",Me._label).replace("href",Me._href).replace("title",Me._title).getRegex(),Me.reflink=$e(Me.reflink).replace("label",Me._label).replace("ref",Le._label).getRegex(),Me.nolink=$e(Me.nolink).replace("ref",Le._label).getRegex(),Me.reflinkSearch=$e(Me.reflinkSearch,"g").replace("reflink",Me.reflink).replace("nolink",Me.nolink).getRegex(),Me.normal={...Me},Me.pedantic={...Me.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",Me._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Me._label).getRegex()},Me.gfm={...Me.normal,escape:$e(Me.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,a,o,i,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+Re("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+Re("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Fe))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Fe))){if(a=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a,Ne))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class qe{constructor(e){this.options=e||de}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'
    '+(r?e:ve(e,!0))+"
    \n":"
    "+(r?e:ve(e,!0))+"
    \n"}blockquote(e){return`
    \n${e}
    \n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`${e}\n`}return`${e}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n='
    ",n}image(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`${r}":">",n}text(e){return e}}class Be{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class He{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class ze{constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Be,this.slugger=new He}static parse(e,t){return new ze(t).parse(e)}static parseInline(e,t){return new ze(t).parseInline(e)}parse(e,t=!0){let r,n,a,o,i,s,l,c,p,d,u,h,f,m,g,y,v,b,x,w="";const $=e.length;for(r=0;r<$;r++)if(d=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(x=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))w+=x||"";else switch(d.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(d.tokens),d.depth,xe(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),p+=this.renderer.listitem(m,v,y);w+=this.renderer.list(p,u,h);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(p=d.tokens?this.parseInline(d.tokens):d.text;r+1<$&&"text"===e[r+1].type;)d=e[++r],p+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void ce.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,a,o="";const i=e.length;for(r=0;r{"function"==typeof n&&(a=n,n=null);const o={...n},i=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+ve(n.message+"",!0)+"
    ";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ve.defaults,...o}).silent,n.async,a);if(null==r)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&ce.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),a){const o=n.highlight;let s;try{n.hooks&&(r=n.hooks.preprocess(r)),s=e(r,n)}catch(e){return i(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ve.walkTokens(s,n.walkTokens),r=t(s,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=o,e?i(e):a(null,r)};if(!o||o.length<3)return l();if(delete n.highlight,!s.length)return l();let c=0;return Ve.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ve.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(i);try{n.hooks&&(r=n.hooks.preprocess(r));const a=e(r,n);n.walkTokens&&Ve.walkTokens(a,n.walkTokens);let o=t(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return i(e)}}}function Ve(e,t,r){return Ze(Ue.lex,ze.parse)(e,t,r)}Ve.options=Ve.setOptions=function(e){var t;return Ve.defaults={...Ve.defaults,...e},t=Ve.defaults,de=t,Ve},Ve.getDefaults=pe,Ve.defaults=de,Ve.use=function(...e){const t=Ve.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Ve.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Ve.defaults.renderer||new qe;for(const r in e.renderer){const n=t[r];t[r]=(...a)=>{let o=e.renderer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.renderer=t}if(e.tokenizer){const t=Ve.defaults.tokenizer||new De;for(const r in e.tokenizer){const n=t[r];t[r]=(...a)=>{let o=e.tokenizer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.tokenizer=t}if(e.hooks){const t=Ve.defaults.hooks||new We;for(const r in e.hooks){const n=t[r];We.passThroughHooks.has(r)?t[r]=a=>{if(Ve.defaults.async)return Promise.resolve(e.hooks[r].call(t,a)).then((e=>n.call(t,e)));const o=e.hooks[r].call(t,a);return n.call(t,o)}:t[r]=(...a)=>{let o=e.hooks[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.hooks=t}if(e.walkTokens){const t=Ve.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ve.setOptions(r)}))},Ve.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ve,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ve.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ve.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ve.walkTokens(n.items,t));break;default:Ve.defaults.extensions&&Ve.defaults.extensions.childTokens&&Ve.defaults.extensions.childTokens[n.type]?Ve.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Ve.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Ve.walkTokens(n.tokens,t)))}return r},Ve.parseInline=Ze(Ue.lexInline,ze.parseInline),Ve.Parser=ze,Ve.parser=ze.parse,Ve.Renderer=qe,Ve.TextRenderer=Be,Ve.Lexer=Ue,Ve.lexer=Ue.lex,Ve.Tokenizer=De,Ve.Slugger=He,Ve.Hooks=We,Ve.parse=Ve;Ve.options,Ve.setOptions,Ve.use,Ve.walkTokens,Ve.parseInline,ze.parse,Ue.lex;var Ke=r(8325),Ge=r.n(Ke);r(7874),r(5433),r(4335),r(9980),r(9385),r(6854),r(9945),r(366),r(4277),r(5712),r(5251),r(3358),r(7046),r(2503),r(57),r(9016);const Ye=c` .hover-bg:hover{ background: var(--bg3); } @@ -86,54 +86,27 @@ grid-template-columns: 20px 1fr; } + .m-markdown .callout-icon { + display: inline-block; + flex-shrink: 0; + grid-row: 1; + } + .m-markdown .info-blockquote { background: #f8f7fc; border: 1px solid #ccced8; } - .m-markdown .info-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/info.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .warning-blockquote { background: #fff2d4; border: 1px solid #ffb100; } - .m-markdown .warning-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/warning.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .danger-blockquote { background: #fdefef; border: 1px solid #dc5a41; } - .m-markdown .danger-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/danger.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - blockquote p{ grid-column: 2 / -1; margin: 0; @@ -274,7 +247,6 @@ /* Button */ .m-btn { display: flex; - flex-direction: column; align-items: center; border-radius: var(--border-radius); font-weight: 400; @@ -290,6 +262,10 @@ text-transform: uppercase; letter-spacing: 0.5px; } +.m-btn-image { + flex-direction: row; + column-gap: 10px; +} .m-btn-primary { background-color: var(--primary-color); color: var(--primary-color-invert); @@ -1267,8 +1243,7 @@ pre[class*="language-"] { } `,ot=c` .code-container { - padding-inline: 32px; - padding-top: 16px; + tab-size: 4; } .code-container > code { font-size: 14px; @@ -1357,6 +1332,7 @@ pre[class*="language-"] { .right-box-container { margin-top: 16px; + padding-inline: 16px; } .right-box-label { @@ -1371,6 +1347,18 @@ pre[class*="language-"] { height: 44px; } +.right-box-content { + border: 1px solid rgb(204, 206, 216); + border-radius: 4px; + padding-block: 24px; + margin-top: 24px; +} + +.right-box-select { + padding-inline: 16px; + width: 100%; +} + .server-template { position: relative; } @@ -1531,7 +1519,7 @@ pre[class*="language-"] { transition: visibility 0.3s linear,opacity 0.3s linear; } -`;var it=r(5108);const st=/[\s#:?&={}]/g,lt="_rapidoc_api_key";function ct(e){return new Promise((t=>setTimeout(t,e)))}function pt(e,t){const r=t.target.closest("button"),n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerHTML='\n \n \n ',setTimeout((()=>{r.innerHTML='\n \n \n \n '}),5e3)}catch(e){it.error("Unable to copy",e)}document.body.removeChild(n)}function dt(e,t,r="includes"){if("includes"===r){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}return new RegExp(`^${e}$`,"i").test(`${t.method} ${t.path}`)}function ut(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var n;if(t.add(r),e[r].properties)ut(e[r].properties,t);else if(null!==(n=e[r].items)&&void 0!==n&&n.properties){var a;ut(null===(a=e[r].items)||void 0===a?void 0:a.properties,t)}})),t):t}function ht(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function ft(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}var mt=r(9682),gt=r.n(mt),yt=r(5108);async function vt(e,t,r=!1,n=!1,a="",o="",i="",s="",l=""){var c,p;let d,u;try{var h,f;if(this.requestUpdate(),t)u=JSON.parse(t);else{const t=await gt().dereference(e);u=await gt().parse(t)}if(null!==(h=u)&&void 0!==h&&h.jsonSchemaViewer&&null!==(f=u)&&void 0!==f&&f.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:u.resolvedSpec}}));const e=Object.entries(u.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(st,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:u.resolvedSpec.info,schemaAndExamples:e}}if(!u||!(u.components||u.info||u.servers||u.tags||u.paths))return yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",u),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:"Unable to load the Spec",version:" "},tags:[]};d=u,this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:d}}))}catch(e){yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const m=function(e,t,r=!1,n=!1){const a=["get","put","post","delete","patch","head","options"],o=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(st,"-")}`,name:e.name,description:e.description||"",headers:e.description?bt(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],i=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",i[t]=r;for(const t in i){const n=i[t].parameters,s={servers:i[t].servers||[],parameters:i[t].parameters||[]},l="webhook"===i[t]._type;a.forEach((a=>{if(i[t][a]){const i=e.paths[t][a],c=i.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substr(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var d,u;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=o.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(st,"-")}`,name:r,description:(null===(d=p)||void 0===d?void 0:d.description)||"",headers:null!==(u=p)&&void 0!==u&&u.description?bt(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},o.push(c));let h=(i.summary||i.description||`${a.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let f=[];if(f=n?i.parameters?n.filter((e=>{if(!i.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(i.parameters):n.slice(0):i.parameters?i.parameters.slice(0):[],i.callbacks)for(const[e,t]of Object.entries(i.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];i.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:i.summary||"",description:i.description||"",externalDocs:i.externalDocs,shortSummary:h,method:a,path:t,operationId:i.operationId,elementId:`${a}-${t.replace(st,"-")}`,servers:i.servers?s.servers.concat(i.servers):s.servers,parameters:f,requestBody:i.requestBody,responses:i.responses,callbacks:i.callbacks,deprecated:i.deprecated,security:i.security,xBadges:i["x-badges"]||void 0,xCodeSamples:i["x-codeSamples"]||i["x-code-samples"]||""})}))}}))}const s=o.filter((e=>e.paths&&e.paths.length>0));return s.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>a.indexOf(e.method).toString().localeCompare(a.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),n?s.sort(((e,t)=>e.name.localeCompare(t.name))):s}(d,a,r,n),g=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(st,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,o=r;switch(r){case"schemas":o="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":o="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":o="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":o="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":o="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":o="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":o="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":o="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":o="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:o=r,a=r}const i={show:!0,name:o,description:a,subComponents:n};t.push(i)}return t||[]}(d),y=null!==(c=d.info)&&void 0!==c&&c.description?bt(d.info.description):[],v=[];if(null!==(p=d.components)&&void 0!==p&&p.securitySchemes){const e=new Set;Object.entries(d.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),v.push(r)}}))}o&&i&&s&&v.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:o,in:i,value:s,finalKeyValue:s}),v.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let b=[];d.servers&&Array.isArray(d.servers)?(d.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),l&&d.servers.push({url:l,computedUrl:l})):l?d.servers=[{url:l,computedUrl:l}]:window.location.origin.startsWith("http")?d.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:d.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],b=d.servers;return{specLoadError:!1,isSpecLoading:!1,info:d.info,infoDescriptionHeaders:y,tags:m,components:g,externalDocs:d.externalDocs,securitySchemes:v,servers:b}}function bt(e){const t=Ze.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const xt=2,wt=e=>(...t)=>({_$litDirective$:e,values:t});class $t{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class St extends $t{constructor(e){if(super(e),this.et=z,e.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||null==e)return this.ft=void 0,this.et=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}St.directiveName="unsafeHTML",St.resultType=1;const Et=wt(St);var kt=r(212),At=r.n(kt);function _t(e){if(void 0===e)return"";if(null===e)return"null";if(""===e)return"∅";if("boolean"==typeof e||"number"==typeof e)return`${e}`;if(Array.isArray(e))return e.map((e=>null===e?"null":""===e?"∅":e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||"")).join(", ");if("object"==typeof e){const t=Object.keys(e);return`{ ${t[0]}:${e[t[0]]}${t.length>1?",":""} ... }`}return e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||""}function Ot(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else e.type?(t=Array.isArray(e.type)?e.type.join(2===e.length?" or ":"┃"):e.type,(e.format||e.enum||e.const)&&(t=t.replace("string",e.enum?"enum":e.const?"const":e.format)),e.nullable&&(t+="┃null")):t=e.const?"const":0===Object.keys(e).length?"any":"{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",examples:e.examples||e.example,default:_t(e.default),description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"!==n.type&&"any"!==n.type||(n.description=n.description||""),n.allowedValues=e.const?e.const:Array.isArray(e.enum)?e.enum.map((e=>_t(e))).join("┃"):"","array"===t&&e.items){var a,o;const t=null===(a=e.items)||void 0===a?void 0:a.type,r=_t(e.items.default);n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=e.items.const?e.const:Array.isArray(null===(o=e.items)||void 0===o?void 0:o.enum)?e.items.enum.map((e=>_t(e))).join("┃"):""}return t.match(/integer|number/g)&&(void 0===e.minimum&&void 0===e.exclusiveMinimum||(r+=void 0!==e.minimum?`Min ${e.minimum}`:`More than ${e.exclusiveMinimum}`),void 0===e.maximum&&void 0===e.exclusiveMaximum||(r+=void 0!==e.maximum?`${r?"┃":""}Max ${e.maximum}`:`${r?"┃":""}Less than ${e.exclusiveMaximum}`),void 0!==e.multipleOf&&(r+=`${r?"┃":""} multiple of ${e.multipleOf}`)),t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`${r?"┃":""}${e.minLength} to ${e.maxLength} chars`:void 0!==e.minLength?r+=`${r?"┃":""}Min ${e.minLength} chars`:void 0!==e.maxLength&&(r+=`Max ${r?"┃":""}${e.maxLength} chars`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function Pt(e){return"boolean"==typeof e||"number"==typeof e?{Example:{value:`${e}`}}:""===e?{Example:{value:""}}:e?{Example:{value:e}}:e}function Tt(e,t="string"){if(!e)return{exampleVal:"",exampleList:[]};if(e.constructor===Object){const t=Object.values(e).filter((e=>!1!==e["x-example-show-value"])).map((e=>({value:"boolean"==typeof e.value||"number"==typeof e.value?`${e.value}`:e.value||"",printableValue:_t(e.value),summary:e.summary||"",description:e.description||""})));return{exampleVal:t.length>0?t[0].value:"",exampleList:t}}if(Array.isArray(e)||(e=e?[e]:[]),0===e.length)return{exampleVal:"",exampleList:[]};if("array"===t){const[t]=e,r=e.map((e=>({value:e,printableValue:_t(e)})));return{exampleVal:t,exampleList:r}}const r=e[0].toString(),n=e.map((e=>({value:e.toString(),printableValue:_t(e)})));return{exampleVal:r,exampleList:n}}function jt(e){const t=e.examples?e.examples[0]:null===e.example?null:e.example||void 0;if(""===t)return"";if(null===t)return null;if(0===t)return 0;if(!1===t)return!1;if(t instanceof Date)switch(e.format.toLowerCase()){case"date":return t.toISOString().split("T")[0];case"time":return t.toISOString().split("T")[1];default:return t.toISOString()}if(t)return t;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;if(!1===e.const||0===e.const||null===e.const||""===e.const)return e.const;if(e.const)return e.const;const r=Array.isArray(e.type)?e.type[0]:e.type;if(!r)return"?";if(r.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),a=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(r.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=a?t:a%t==0?a:Math.ceil(a/t)*t:a}if(r.match(/^boolean/g))return!1;if(r.match(/^null/g))return null;if(r.match(/^string/g)){if(e.enum)return e.enum[0];if(e.const)return e.const;if(e.pattern)return e.pattern;if(!e.format){const t=Number.isNaN(e.minLength)?void 0:Number(e.minLength),r=Number.isNaN(e.maxLength)?void 0:Number(e.maxLength),n=t||(r>6?6:r||void 0);return n?"A".repeat(n):"string"}{const t=`${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);switch(e.format.toLowerCase()){case"url":case"uri":return"http://example.com";case"date":return new Date(0).toISOString().split("T")[0];case"time":return new Date(0).toISOString().split("T")[1];case"date-time":return new Date(0).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return[t.substr(0,8),t.substr(8,4),`4000-8${t.substr(13,3)}`,t.substr(16,12)].join("-");default:return""}}}return"?"}function Rt(e,t=1){const r=" ".repeat(t);let n="";if(1===t&&"object"!=typeof e)return`\n${r}${e.toString()}`;for(const a in e){const o=e[a]["::XML_TAG"]||a;let i="";i=Array.isArray(e[a])?o[0]["::XML_TAG"]||`${a}`:o,a.startsWith("::")||(n=Array.isArray(e[a])||"object"==typeof e[a]?`${n}\n${r}<${i}>${Rt(e[a],t+1)}\n${r}`:`${n}\n${r}<${i}>${e[a].toString()}`)}return n}function Ct(e,t){var r,n;if("object"==typeof t&&null!==t){var a,o;if(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description),null!==(r=e.xml)&&void 0!==r&&r.name)t["::XML_TAG"]=null===(a=e.xml)||void 0===a?void 0:a.name;if(null!==(n=e.xml)&&void 0!==n&&n.wrapped)t["::XML_WRAP"]=null===(o=e.xml)||void 0===o?void 0:o.wrapped.toString()}}function It(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"],delete e["::XML_TAG"],delete e["::XML_WRAP"];for(const t in e)It(e[t])}}function Dt(e,t,r){for(const n in t)t[n][r]=e}function Mt(e,t,r){let n=0;const a={};for(const o in e){for(const i in r)if(a[`example-${n}`]={...e[o]},a[`example-${n}`][t]=r[i],n++,n>=10)break;if(n>=10)break}return a}function Lt(e,t={}){let r={};if(e){if(e.allOf){var n,a;const o={};if(!(1!==e.allOf.length||null!==(n=e.allOf[0])&&void 0!==n&&n.properties||null!==(a=e.allOf[0])&&void 0!==a&&a.items)){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){return jt(e.allOf[0])}return}e.allOf.forEach((e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Lt(e,t);Object.assign(o,r)}else if("array"===e.type||e.items){const r=[Lt(e,t)];Object.assign(o,r)}else{if(!e.type)return"";{const t=`prop${Object.keys(o).length}`;o[t]=jt(e)}}})),r=o}else if(e.oneOf){const n={};if(e.properties)for(const r in e.properties){var o;e.properties[r].properties||null!==(o=e.properties[r].properties)&&void 0!==o&&o.items?n[r]=Lt(e.properties[r],t):n[r]=jt(e.properties[r])}if(e.oneOf.length>0){let a=0;for(const o in e.oneOf){const i=Lt(e.oneOf[o],t);for(const t in i){let s;if(Object.keys(n).length>0){if(null===i[t]||"object"!=typeof i[t])continue;s=Object.assign(i[t],n)}else s=i[t];r[`example-${a}`]=s,Ct(e.oneOf[o],r[`example-${a}`]),a++}}}}else if(e.anyOf){let n;if("object"===e.type||e.properties){n={"example-0":{}};for(const r in e.properties){if(e.example){n=e;break}e.properties[r].deprecated&&!t.includeDeprecated||(e.properties[r].readOnly&&!t.includeReadOnly||e.properties[r].writeOnly&&!t.includeWriteOnly||(n=Mt(n,r,Lt(e.properties[r],t))))}}let a=0;for(const o in e.anyOf){const i=Lt(e.anyOf[o],t);for(const t in i){if(void 0!==n)for(const e in n)r[`example-${a}`]={...n[e],...i[t]};else r[`example-${a}`]=i[t];Ct(e.anyOf[o],r[`example-${a}`]),a++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},Ct(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(const n in e.properties){var i,s,l,c,p,d,u;if(null===(i=e.properties[n])||void 0===i||!i.deprecated||t.includeDeprecated)if(null===(s=e.properties[n])||void 0===s||!s.readOnly||t.includeReadOnly)if(null===(l=e.properties[n])||void 0===l||!l.writeOnly||t.includeWriteOnly)if("array"===(null===(c=e.properties[n])||void 0===c?void 0:c.type)||null!==(p=e.properties[n])&&void 0!==p&&p.items)if(e.properties[n].example)Dt(e.properties[n].example,r,n);else if(null!==(d=e.properties[n])&&void 0!==d&&null!==(u=d.items)&&void 0!==u&&u.example)Dt([e.properties[n].items.example],r,n);else{const a=Lt(e.properties[n].items,t);if(t.useXmlTagForProp){var h,f;const t=(null===(h=e.properties[n].xml)||void 0===h?void 0:h.name)||n;if(null!==(f=e.properties[n].xml)&&void 0!==f&&f.wrapped){r=Mt(r,t,JSON.parse(`{ "${t}" : { "${t}" : ${JSON.stringify(a["example-0"])} } }`))}else r=Mt(r,t,a)}else{const e=[];for(const t in a)e[t]=[a[t]];r=Mt(r,n,e)}}else r=Mt(r,n,Lt(e.properties[n],t))}else{if("array"!==e.type&&!e.items)return{"example-0":jt(e)};var m;if(e.items||e.example)if(e.example)r["example-0"]=e.example;else if(null!==(m=e.items)&&void 0!==m&&m.example)r["example-0"]=[e.items.example];else{const n=Lt(e.items,t);let a=0;for(const t in n)r[`example-${a}`]=[n[t]],Ct(e.items,r[`example-${a}`]),a++}else r["example-0"]=[]}return r}}function Nt(e,t=0){var r;let n=(e.description||e.title)&&(e.minItems||e.maxItems)?'':"";if(e.title?n=e.description?`${n} ${e.title}: ${e.description}
    `:`${n} ${e.title}
    `:e.description&&(n=`${n} ${e.description}
    `),e.minItems&&(n=`${n} Min Items: ${e.minItems}`),e.maxItems&&(n=`${n} Max Items: ${e.maxItems}`),t>0&&null!==(r=e.items)&&void 0!==r&&r.description){let t="";e.items.minProperties&&(t=`Min Properties: ${e.items.minProperties}`),e.items.maxProperties&&(t=`${t} Max Properties: ${e.items.maxProperties}`),n=`${n} ⮕ ${t} [ ${e.items.description} ] `}return n}function Ft(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${Ot(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",o=Ft(e,{},r+1,a);Object.assign(n,o)}else if("array"===e.type||e.items){const t=Ft(e,{},r+1);Object.assign(n,t)}else{if(!e.type)return"";{const t=`prop${Object.keys(n).length}`,r=Ot(e);n[t]=`${r.html}`}}})),t=n}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1)}const a={},o=e.anyOf?"anyOf":"oneOf";e[o].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Ft(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=Ft(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${Ot(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="object"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),i=[],s=[];let l;var a;if(n.type.forEach((e=>{var t,r;e.match(/integer|number|string|null|boolean/g)?i.push(e):"array"===e&&"string"==typeof(null===(t=n.items)||void 0===t?void 0:t.type)&&null!==(r=n.items)&&void 0!==r&&r.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?i.push(`[${n.items.format}]`):i.push(`[${n.items.type}]`):s.push(e)})),i.length>0)if(n.type=i.join(2===i.length?" or ":"┃"),l=Ot(n),0===s.length)return`${(null===(a=l)||void 0===a?void 0:a.html)||""}`;if(s.length>0){var o;t["::type"]="object";const a={"::type":"xxx-of-option"};s.forEach(((t,o)=>{if("null"===t)a[`::OPTION~${o+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=Ot(n);a[`::OPTION~${o+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1);a[`::OPTION~${o+1}`]=t}else"array"===t&&(a[`::OPTION~${o+1}`]={"::title":e.title||"","::description":e.description||"","::type":"array","::props":Ft(e.items,{},r+1)})})),a[`::OPTION~${s.length+1}`]=(null===(o=l)||void 0===o?void 0:o.html)||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=Nt(e,r),t["::type"]="object",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="object or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1);for(const n in e.patternProperties)t[`[pattern: ${n}]`]=Ft(e.patternProperties[n],t,r+1);e.additionalProperties&&(t["[any-key]"]=Ft(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=Ot(e);return null!=t&&t.html?`${t.html}`:""}var i;t["::title"]=e.title||"",t["::description"]=Nt(e,r),t["::type"]="array",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="array or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"",null!==(i=e.items)&&void 0!==i&&i.items&&(t["::array-type"]=e.items.items.type),t["::props"]=Ft(e.items,{},r+1)}return t}}function Ut(e,t,r="",n="",a=!0,o=!0,i="json",s=!1){const l=[];if(r)for(const e in r){let n="",a="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)n="string"==typeof r[e].value?r[e].value:JSON.stringify(r[e].value,void 0,2),a="text";else if(n=r[e].value,"string"==typeof r[e].value)try{const t=r[e].value;n=JSON.parse(t),a="json"}catch(t){a="text",n=r[e].value}}else n=r[e].value,a="text";l.push({exampleId:e,exampleSummary:r[e].summary||e,exampleDescription:r[e].description||"",exampleType:t,exampleValue:n,exampleFormat:a})}else if(n){let e="",r="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)e="string"==typeof n?n:JSON.stringify(n,void 0,2),r="text";else if("object"==typeof n)e=n,r="json";else if("string"==typeof n)try{e=JSON.parse(n),r="json"}catch(t){r="text",e=n}}else e=n,r="text";l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e,exampleFormat:r})}if(0===l.length||!0===s)if(e)if(e.example)l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e.example,exampleFormat:null!=t&&t.toLowerCase().includes("json")&&"object"==typeof e.example?"json":"text"});else if(null!=t&&t.toLowerCase().includes("json")||null!=t&&t.toLowerCase().includes("text")||null!=t&&t.toLowerCase().includes("*/*")||null!=t&&t.toLowerCase().includes("xml")){let r="",n="",s="",d="";var c,p;if(null!=t&&t.toLowerCase().includes("xml"))r=null!==(c=e.xml)&&void 0!==c&&c.name?`<${e.xml.name} ${e.xml.namespace?`xmlns="${e.xml.namespace}"`:""}>`:"",n=null!==(p=e.xml)&&void 0!==p&&p.name?``:"",s="text";else s=i;const u=Lt(e,{includeReadOnly:a,includeWriteOnly:o,deprecated:!0,useXmlTagForProp:null==t?void 0:t.toLowerCase().includes("xml")});let h=0;for(const e in u){if(!u[e])continue;const a=u[e]["::TITLE"]||"Example "+ ++h,o=u[e]["::DESCRIPTION"]||"";null!=t&&t.toLowerCase().includes("xml")?d=`\n${r}${Rt(u[e],1)}\n${n}`:(It(u[e]),d="text"===i?JSON.stringify(u[e],null,2):u[e]),l.push({exampleId:e,exampleSummary:a,exampleDescription:o,exampleType:t,exampleFormat:s,exampleValue:d})}}else null!=t&&t.toLowerCase().includes("jose")?l.push({exampleId:"Example",exampleSummary:"Base64 Encoded",exampleDescription:"",exampleType:t,exampleValue:e.pattern||"bXJpbg==",exampleFormat:"text"}):l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});else l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});return l}function qt(e){return"application/json"===e?"json":"application/xml"===e?"xml":null}function Bt(e){if(e.schema)return[e.schema,null,null];if(e.content)for(const t of Object.keys(e.content))if(e.content[t].schema)return[e.content[t].schema,qt(t),e.content[t]];return[null,null,null]}var Ht=r(5108);function zt(e){let t=this.path;const r=[],n=[...e.querySelectorAll("[data-ptype='path']")],a=[...e.querySelectorAll("[data-ptype='query']")],o=[...e.querySelectorAll("[data-ptype='query-object']")];n.map((e=>{t=t.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value))}));const i=new Map,s=[];a.length>0&&a.forEach((e=>{const t=new URLSearchParams;if("true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"false"===e.dataset.array)""!==e.value&&(r.push({name:e.dataset.pname,value:e.value}),t.append(e.dataset.pname,e.value));else{const{paramSerializeStyle:n,paramSerializeExplode:a}=e.dataset;let o=e.value&&Array.isArray(e.value)?e.value:[];o=Array.isArray(o)?o.filter((e=>""!==e)):[],o.length>0&&("spaceDelimited"===n?(r.push({name:e.dataset.pname,value:o.join(" ").replace(/^\s|\s$/g,"")}),t.append(e.dataset.pname,o.join(" ").replace(/^\s|\s$/g,""))):"pipeDelimited"===n?(r.push({name:e.dataset.pname,value:o.join("|").replace(/^\||\|$/g,"")}),t.append(e.dataset.pname,o.join("|").replace(/^\||\|$/g,""))):"true"===a?o.forEach((n=>{r.push({name:e.dataset.pname,value:n}),t.append(e.dataset.pname,n)})):(r.push({name:e.dataset.pname,value:o.join(",").replace(/^,|,$/g,"")}),t.append(e.dataset.pname,o.join(",").replace(/^,|,$/g,""))))}t.toString()&&i.set(e.dataset.pname,t)})),o.length>0&&o.map((e=>{const t=new URLSearchParams;try{let n={};const{paramSerializeStyle:a,paramSerializeExplode:o,pname:i}=e.dataset;if(n=Object.assign(n,JSON.parse(e.value.replace(/\s+/g," "))),"true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"json xml".includes(a))"json"===a?(r.push({name:e.dataset.pname,value:JSON.stringify(n)}),t.append(e.dataset.pname,JSON.stringify(n))):"xml"===a&&(r.push({name:e.dataset.pname,value:Rt(n)}),t.append(e.dataset.pname,Rt(n)));else for(const e in n){const s=`${i}[${e}]`;"object"==typeof n[e]?Array.isArray(n[e])&&("spaceDelimited"===a?(r.push({name:s,value:n[e].join(" ")}),t.append(s,n[e].join(" "))):"pipeDelimited"===a?(r.push({name:s,value:n[e].join("|")}),t.append(s,n[e].join("|"))):"true"===o?n[e].forEach((e=>{r.push({name:s,value:e}),t.append(s,e)})):(r.push({name:s,value:n[e]}),t.append(s,n[e]))):(r.push({name:s,value:n[e]}),t.append(s,n[e]))}}catch(t){Ht.log("RapiDoc: unable to parse %s into object",e.value)}t.toString()&&i.set(e.dataset.pname,t)}));let l="";return i.size&&(i.forEach(((e,t)=>{s.includes(t)?(l+=`${t}=`,l+=e.getAll(t).join(`&${t}=`),l+="&"):l+=`${e.toString()}&`})),l=l.slice(0,-1)),0!==l.length&&(t=`${t}${t.includes("?")?"&":"?"}${l}`),this.api_keys.filter((e=>"query"===e.in)).forEach((e=>{t=`${t}${t.includes("?")?"&":"?"}${e.name}=${encodeURIComponent(e.finalKeyValue)}`})),t=`${this.selectedServer.computedUrl.replace(/\/$/,"")}${t}`,{fetchUrl:t,queryString:r}}function Wt(e){const t={method:this.method.toUpperCase()},r={mimeType:""},n=e.querySelector(".request-body-container"),a=n?n.dataset.selectedRequestBodyType:"";if(n)if(a.includes("form-urlencoded")){const n=e.querySelector("[data-ptype='dynamic-form']");if(n){const e=n.value,a=new URLSearchParams;let o,i=!0;if(e)try{o=JSON.parse(e)}catch(e){i=!1,Ht.warn("RapiDoc: Invalid JSON provided",e)}else i=!1;if(i){for(const e in o)a.append(e,JSON.stringify(o[e]));t.body=a,r.params=a}}else{const n=[...e.querySelectorAll("[data-ptype='form-urlencode']")],a=new URLSearchParams,o=[];n.filter((e=>"file"!==e.type)).forEach((e=>{if("false"===e.dataset.array)e.value&&(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value}));else{const t=e.value&&Array.isArray(e.value)?e.value.join(","):"";a.append(e.dataset.pname,t),o.push({name:e.dataset.pname,value:t})}})),t.body=a,r.params=o}}else if(a.includes("form-data")){const n=new FormData,a=[];[...e.querySelectorAll("[data-ptype='form-data']")].forEach((e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(n.append(e.dataset.pname,e.files[0],e.files[0].name),a.push({name:e.dataset.pname,value:e.files[0],fileName:e.files[0].name})):e.value&&(n.append(e.dataset.pname,e.value),a.push({name:e.dataset.pname,value:e.value})):e.value&&Array.isArray(e.value)&&(n.append(e.dataset.pname,e.value.join(",")),a.push({name:e.dataset.pname,value:e.value.join(",")}))})),t.body=n,r.params=a}else if(/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(a)){const r=e.querySelector(".request-body-param-file");null!=r&&r.files[0]&&(t.body=r.files[0])}else if(a.includes("json")||a.includes("xml")||a.includes("text")){const n=e.querySelector(".request-body-param-user-input");if(null!=n&&n.value){if(t.body=n.value,a.includes("json"))try{r.text=JSON.stringify(JSON.parse(n.value))}catch(e){}r.text&&0===r.text.length&&(r.text=n.value.replace(/'/g,"'\"'\"'"))}}return n&&(r.mimeType=a),{fetchOptions:t,postData:r}}function Vt(e){var t;let r="",n="";const a=new Headers,o=[],i=e.querySelector(".request-body-container"),s=[...e.querySelectorAll("[data-ptype='header']")],l=null===(t=this.closest(".expanded-req-resp-container, .req-resp-container"))||void 0===t?void 0:t.getElementsByTagName("api-response")[0],c=null==l?void 0:l.selectedMimeType;return s.map((e=>{e.value&&("Accept"===e.dataset.pname?r=e.value:"Content-Type"===e.dataset.pname?n=e.value:(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value})))})),r?(a.append("Accept",r),o.push({name:"Accept",value:r})):c?(a.append("Accept",c),o.push({name:"Accept",value:c})):this.accept&&(a.append("Accept",this.accept),o.push({name:"Accept",value:this.accept})),n?(a.append("Content-Type",n),o.push({name:"Content-Type",value:n})):i&&(a.append("Content-Type",i.dataset.selectedRequestBodyType),o.push({name:"Content-Type",value:i.dataset.selectedRequestBodyType})),this.resolvedSpec.securitySchemes.forEach((e=>{a.append(e.name,e.value),o.push({name:e.name,value:e.value})})),{reqHeaders:a,headers:o}}function Zt(e){return e=e.replace(/\/?%7B/gm,"{").replace(/\/?%7D/gm,"}")}function Gt(e){const t=e.closest(".request-panel"),{fetchUrl:r,queryString:n}=zt.call(this,t),{fetchOptions:a,postData:o}=Wt.call(this,t),{reqHeaders:i,headers:s}=Vt.call(this,t),l=new(At())({method:this.method,url:r,queryString:n,headers:s,postData:o});l.requests[0].url=Zt(l.requests[0].url),l.requests[0].fullUrl=Zt(l.requests[0].fullUrl);const c=l.convert(this.selectedLanguage,{indent:"\t"});return this.codeExample=c,{fetchUrl:r,fetchOptions:a,reqHeaders:i}}var Kt=r(8764).Buffer,Yt=r(5108);const Jt="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",Xt="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",Qt="rapidoc";function er(e,t="",r="",n=""){var a,o;const i=null===(a=this.resolvedSpec.securitySchemes)||void 0===a?void 0:a.find((t=>t.securitySchemeId===e));if(!i)return!1;let s="";if("basic"===(null===(o=i.scheme)||void 0===o?void 0:o.toLowerCase()))t&&(s=`Basic ${Kt.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(n){var l;i.value=n,s=`${"bearer"===(null===(l=i.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${n}`}return!!s&&(i.finalKeyValue=s,this.requestUpdate(),!0)}function tr(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function rr(){return JSON.parse(localStorage.getItem(Qt))||{}}function nr(e){localStorage.setItem(Qt,JSON.stringify(e))}function ar(){const e=rr.call(this);Object.values(e).forEach((e=>{er.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function or(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const n=this.shadowRoot.getElementById(`security-scheme-${e}`);if(n){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=n.querySelector(".api-key-user").value.trim(),r=n.querySelector(".api-key-password").value.trim();er.call(this,e,t,r)}else t=n.querySelector(".api-key-input").value.trim(),er.call(this,e,"","",t);if("true"===this.persistAuth){const t=rr.call(this);t[e]=r,nr.call(this,t)}}}}function ir(e,t,r="Bearer"){const n=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));n.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function sr(e,t,r,n,a,o,i,s,l="header",c=null,p=null,d=null){const u=s?s.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,f=new Headers;h.append("grant_type",a),"authorization_code"===a&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==a&&"password"!==a&&h.append("redirect_uri",n),o&&(h.append("code",o),h.append("code_verifier",Jt)),"header"===l?f.set("Authorization",`Basic ${Kt.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==a&&(h.append("client_id",t),h.append("client_secret",r)),"password"===a&&(h.append("username",p),h.append("password",d)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:f,body:h}),r=await t.json();if(!t.ok)return u&&(u.innerHTML=`${r.error_description||r.error_description||"Unable to get access token"}`),!1;if(r.token_type&&r.access_token)return ir.call(this,i,r.access_token,r.token_type),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}async function lr(e,t,r,n,a,o,i,s,l,c){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||Yt.warn("RapiDoc: Received no data with authorization message"),e.data.error&&Yt.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?sr.call(this,r,n,a,o,i,e.data.code,l,c,s):"token"===e.data.responseType&&ir.call(this,l,e.data.access_token,e.data.token_type)))}async function cr(e,t,r,n,a){const o=a.target.closest(".oauth-flow"),i=o.querySelector(".oauth-client-id")?o.querySelector(".oauth-client-id").value.trim():"",s=o.querySelector(".oauth-client-secret")?o.querySelector(".oauth-client-secret").value.trim():"",l=o.querySelector(".api-key-user")?o.querySelector(".api-key-user").value.trim():"",c=o.querySelector(".api-key-password")?o.querySelector(".api-key-password").value.trim():"",p=o.querySelector(".oauth-send-client-secret-in")?o.querySelector(".oauth-send-client-secret-in").value.trim():"header",d=[...o.querySelectorAll(".scope-checkbox:checked")],u=o.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let g,y="",v="";if([...o.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const a=new URL(r);"authorizationCode"===t?(y="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(a.search),c=d.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",i),l.set("redirect_uri",m.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",f),u&&u.checked&&(l.set("code_challenge",Xt),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),a.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{g=window.open(a.toString()),g?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>lr.call(this,t,g,n,i,s,m.toString(),y,p,e,o)),{once:!0})):Yt.error(`RapiDoc: Unable to open ${a.toString()} in a new window`)}),10)}else if("clientCredentials"===t){y="client_credentials";const t=d.map((e=>e.value)).join(" ");sr.call(this,n,i,s,m.toString(),y,"",e,o,p,t)}else if("password"===t){y="password";const t=d.map((e=>e.value)).join(" ");sr.call(this,n,i,s,m.toString(),y,"",e,o,p,t,l,c)}}function pr(e,t,r,n,a,o=[],i="header"){let{authorizationUrl:s,tokenUrl:l,refreshUrl:c}=a;const p=a["x-pkce-only"]||!1,d=e=>e.indexOf("://")>0||0===e.indexOf("//"),u=new URL(this.selectedServer.computedUrl).origin;let h;return c&&!d(c)&&(c=`${u}/${c.replace(/^\//,"")}`),l&&!d(l)&&(l=`${u}/${l.replace(/^\//,"")}`),s&&!d(s)&&(s=`${u}/${s.replace(/^\//,"")}`),h="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,B` +`;var it=r(5108);const st=/[\s#:?&={}]/g,lt="_rapidoc_api_key";function ct(e){return new Promise((t=>setTimeout(t,e)))}function pt(e,t){const r=t.target.closest("button"),n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerHTML='\n \n \n ',setTimeout((()=>{r.innerHTML='\n \n \n \n '}),5e3)}catch(e){it.error("Unable to copy",e)}document.body.removeChild(n)}function dt(e,t,r="includes"){if("includes"===r){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}return new RegExp(`^${e}$`,"i").test(`${t.method} ${t.path}`)}function ut(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var n;if(t.add(r),e[r].properties)ut(e[r].properties,t);else if(null!==(n=e[r].items)&&void 0!==n&&n.properties){var a;ut(null===(a=e[r].items)||void 0===a?void 0:a.properties,t)}})),t):t}function ht(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function ft(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}var mt=r(9682),gt=r.n(mt),yt=r(5108);async function vt(e,t,r=!1,n=!1,a="",o="",i="",s="",l=""){var c,p;let d,u;try{var h,f;if(this.requestUpdate(),t)u=JSON.parse(t);else{const t=await gt().dereference(e);u=await gt().parse(t)}if(null!==(h=u)&&void 0!==h&&h.jsonSchemaViewer&&null!==(f=u)&&void 0!==f&&f.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:u.resolvedSpec}}));const e=Object.entries(u.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(st,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:u.resolvedSpec.info,schemaAndExamples:e}}if(!u||!(u.components||u.info||u.servers||u.tags||u.paths))return yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",u),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:"Unable to load the Spec",version:" "},tags:[]};d=u,this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:d}}))}catch(e){yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const m=function(e,t,r=!1,n=!1){const a=["get","put","post","delete","patch","head","options"],o=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(st,"-")}`,name:e.name,description:e.description||"",headers:e.description?bt(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],i=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",i[t]=r;for(const t in i){const n=i[t].parameters,s={servers:i[t].servers||[],parameters:i[t].parameters||[]},l="webhook"===i[t]._type;a.forEach((a=>{if(i[t][a]){const i=e.paths[t][a],c=i.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substr(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var d,u;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=o.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(st,"-")}`,name:r,description:(null===(d=p)||void 0===d?void 0:d.description)||"",headers:null!==(u=p)&&void 0!==u&&u.description?bt(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},o.push(c));let h=(i.summary||i.description||`${a.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let f=[];if(f=n?i.parameters?n.filter((e=>{if(!i.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(i.parameters):n.slice(0):i.parameters?i.parameters.slice(0):[],i.callbacks)for(const[e,t]of Object.entries(i.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];i.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:i.summary||"",description:i.description||"",externalDocs:i.externalDocs,shortSummary:h,method:a,path:t,operationId:i.operationId,elementId:`${a}-${t.replace(st,"-")}`,servers:i.servers?s.servers.concat(i.servers):s.servers,parameters:f,requestBody:i.requestBody,responses:i.responses,callbacks:i.callbacks,deprecated:i.deprecated,security:i.security,xBadges:i["x-badges"]||void 0,xCodeSamples:i["x-codeSamples"]||i["x-code-samples"]||""})}))}}))}const s=o.filter((e=>e.paths&&e.paths.length>0));return s.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>a.indexOf(e.method).toString().localeCompare(a.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),n?s.sort(((e,t)=>e.name.localeCompare(t.name))):s}(d,a,r,n),g=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(st,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,o=r;switch(r){case"schemas":o="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":o="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":o="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":o="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":o="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":o="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":o="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":o="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":o="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:o=r,a=r}const i={show:!0,name:o,description:a,subComponents:n};t.push(i)}return t||[]}(d),y=null!==(c=d.info)&&void 0!==c&&c.description?bt(d.info.description):[],v=[];let b=[];if(null!==(p=d.components)&&void 0!==p&&p.securitySchemes){var x;b=d.security?d.security:[null===(x=d.components)||void 0===x?void 0:x.securitySchemes];const e=new Set;Object.entries(d.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),v.push(r)}}))}o&&i&&s&&v.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:o,in:i,value:s,finalKeyValue:s}),v.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let w=[];d.servers&&Array.isArray(d.servers)?(d.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),l&&d.servers.push({url:l,computedUrl:l})):l?d.servers=[{url:l,computedUrl:l}]:window.location.origin.startsWith("http")?d.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:d.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],w=d.servers;return{specLoadError:!1,isSpecLoading:!1,info:d.info,infoDescriptionHeaders:y,tags:m,components:g,externalDocs:d.externalDocs,securitySchemes:v,servers:w,security:b}}function bt(e){const t=Ve.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const xt=2,wt=e=>(...t)=>({_$litDirective$:e,values:t});class $t{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class St extends $t{constructor(e){if(super(e),this.et=z,e.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||null==e)return this.ft=void 0,this.et=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}St.directiveName="unsafeHTML",St.resultType=1;const Et=wt(St);function kt(e,t){return!e||e.some((e=>e.hasOwnProperty(t)&&Array.isArray(e[t])&&0===e[t].length))}var At=r(212),_t=r.n(At);function Ot(e){if(void 0===e)return"";if(null===e)return"null";if(""===e)return"∅";if("boolean"==typeof e||"number"==typeof e)return`${e}`;if(Array.isArray(e))return e.map((e=>null===e?"null":""===e?"∅":e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||"")).join(", ");if("object"==typeof e){const t=Object.keys(e);return`{ ${t[0]}:${e[t[0]]}${t.length>1?",":""} ... }`}return e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||""}function Pt(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else e.type?(t=Array.isArray(e.type)?e.type.join(2===e.length?" or ":"┃"):e.type,(e.format||e.enum||e.const)&&(t=t.replace("string",e.enum?"enum":e.const?"const":e.format)),e.nullable&&(t+="┃null")):t=e.const?"const":0===Object.keys(e).length?"any":"{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",examples:e.examples||e.example,default:Ot(e.default),description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"!==n.type&&"any"!==n.type||(n.description=n.description||""),n.allowedValues=e.const?e.const:Array.isArray(e.enum)?e.enum.map((e=>Ot(e))).join("┃"):"","array"===t&&e.items){var a,o;const t=null===(a=e.items)||void 0===a?void 0:a.type,r=Ot(e.items.default);n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=e.items.const?e.const:Array.isArray(null===(o=e.items)||void 0===o?void 0:o.enum)?e.items.enum.map((e=>Ot(e))).join("┃"):""}return t.match(/integer|number/g)&&(void 0===e.minimum&&void 0===e.exclusiveMinimum||(r+=void 0!==e.minimum?`Min ${e.minimum}`:`More than ${e.exclusiveMinimum}`),void 0===e.maximum&&void 0===e.exclusiveMaximum||(r+=void 0!==e.maximum?`${r?"┃":""}Max ${e.maximum}`:`${r?"┃":""}Less than ${e.exclusiveMaximum}`),void 0!==e.multipleOf&&(r+=`${r?"┃":""} multiple of ${e.multipleOf}`)),t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`${r?"┃":""}${e.minLength} to ${e.maxLength} chars`:void 0!==e.minLength?r+=`${r?"┃":""}Min ${e.minLength} chars`:void 0!==e.maxLength&&(r+=`Max ${r?"┃":""}${e.maxLength} chars`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function Tt(e){return"boolean"==typeof e||"number"==typeof e?{Example:{value:`${e}`}}:""===e?{Example:{value:""}}:e?{Example:{value:e}}:e}function jt(e,t="string"){if(!e)return{exampleVal:"",exampleList:[]};if(e.constructor===Object){const t=Object.values(e).filter((e=>!1!==e["x-example-show-value"])).map((e=>({value:"boolean"==typeof e.value||"number"==typeof e.value?`${e.value}`:e.value||"",printableValue:Ot(e.value),summary:e.summary||"",description:e.description||""})));return{exampleVal:t.length>0?t[0].value:"",exampleList:t}}if(Array.isArray(e)||(e=e?[e]:[]),0===e.length)return{exampleVal:"",exampleList:[]};if("array"===t){const[t]=e,r=e.map((e=>({value:e,printableValue:Ot(e)})));return{exampleVal:t,exampleList:r}}const r=e[0].toString(),n=e.map((e=>({value:e.toString(),printableValue:Ot(e)})));return{exampleVal:r,exampleList:n}}function Ct(e){const t=e.examples?e.examples[0]:null===e.example?null:e.example||void 0;if(""===t)return"";if(null===t)return null;if(0===t)return 0;if(!1===t)return!1;if(t instanceof Date)switch(e.format.toLowerCase()){case"date":return t.toISOString().split("T")[0];case"time":return t.toISOString().split("T")[1];default:return t.toISOString()}if(t)return t;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;if(!1===e.const||0===e.const||null===e.const||""===e.const)return e.const;if(e.const)return e.const;const r=Array.isArray(e.type)?e.type[0]:e.type;if(!r)return"?";if(r.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),a=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(r.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=a?t:a%t==0?a:Math.ceil(a/t)*t:a}if(r.match(/^boolean/g))return!1;if(r.match(/^null/g))return null;if(r.match(/^string/g)){if(e.enum)return e.enum[0];if(e.const)return e.const;if(e.pattern)return e.pattern;if(!e.format){const t=Number.isNaN(e.minLength)?void 0:Number(e.minLength),r=Number.isNaN(e.maxLength)?void 0:Number(e.maxLength),n=t||(r>6?6:r||void 0);return n?"A".repeat(n):"string"}{const t=`${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);switch(e.format.toLowerCase()){case"url":case"uri":return"http://example.com";case"date":return new Date(0).toISOString().split("T")[0];case"time":return new Date(0).toISOString().split("T")[1];case"date-time":return new Date(0).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return[t.substr(0,8),t.substr(8,4),`4000-8${t.substr(13,3)}`,t.substr(16,12)].join("-");default:return""}}}return"?"}function Rt(e,t=1){const r=" ".repeat(t);let n="";if(1===t&&"object"!=typeof e)return`\n${r}${e.toString()}`;for(const a in e){const o=e[a]["::XML_TAG"]||a;let i="";i=Array.isArray(e[a])?o[0]["::XML_TAG"]||`${a}`:o,a.startsWith("::")||(n=Array.isArray(e[a])||"object"==typeof e[a]?`${n}\n${r}<${i}>${Rt(e[a],t+1)}\n${r}`:`${n}\n${r}<${i}>${e[a].toString()}`)}return n}function It(e,t){var r,n;if("object"==typeof t&&null!==t){var a,o;if(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description),null!==(r=e.xml)&&void 0!==r&&r.name)t["::XML_TAG"]=null===(a=e.xml)||void 0===a?void 0:a.name;if(null!==(n=e.xml)&&void 0!==n&&n.wrapped)t["::XML_WRAP"]=null===(o=e.xml)||void 0===o?void 0:o.wrapped.toString()}}function Dt(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"],delete e["::XML_TAG"],delete e["::XML_WRAP"];for(const t in e)Dt(e[t])}}function Lt(e,t,r){for(const n in t)t[n][r]=e}function Mt(e,t,r){let n=0;const a={};for(const o in e){for(const i in r)if(a[`example-${n}`]={...e[o]},a[`example-${n}`][t]=r[i],n++,n>=10)break;if(n>=10)break}return a}function Nt(e,t={}){let r={};if(e){if(e.allOf){var n,a;const o={};if(!(1!==e.allOf.length||null!==(n=e.allOf[0])&&void 0!==n&&n.properties||null!==(a=e.allOf[0])&&void 0!==a&&a.items)){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){return Ct(e.allOf[0])}return}e.allOf.forEach((e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Nt(e,t);Object.assign(o,r)}else if("array"===e.type||e.items){const r=[Nt(e,t)];Object.assign(o,r)}else{if(!e.type)return"";{const t=`prop${Object.keys(o).length}`;o[t]=Ct(e)}}})),r=o}else if(e.oneOf){const n={};if(e.properties)for(const r in e.properties){var o;e.properties[r].properties||null!==(o=e.properties[r].properties)&&void 0!==o&&o.items?n[r]=Nt(e.properties[r],t):n[r]=Ct(e.properties[r])}if(e.oneOf.length>0){let a=0;for(const o in e.oneOf){const i=Nt(e.oneOf[o],t);for(const t in i){let s;if(Object.keys(n).length>0){if(null===i[t]||"object"!=typeof i[t])continue;s=Object.assign(i[t],n)}else s=i[t];r[`example-${a}`]=s,It(e.oneOf[o],r[`example-${a}`]),a++}}}}else if(e.anyOf){let n;if("object"===e.type||e.properties){n={"example-0":{}};for(const r in e.properties){if(e.example){n=e;break}e.properties[r].deprecated&&!t.includeDeprecated||(e.properties[r].readOnly&&!t.includeReadOnly||e.properties[r].writeOnly&&!t.includeWriteOnly||(n=Mt(n,r,Nt(e.properties[r],t))))}}let a=0;for(const o in e.anyOf){const i=Nt(e.anyOf[o],t);for(const t in i){if(void 0!==n)for(const e in n)r[`example-${a}`]={...n[e],...i[t]};else r[`example-${a}`]=i[t];It(e.anyOf[o],r[`example-${a}`]),a++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},It(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(const n in e.properties){var i,s,l,c,p,d,u;if(null===(i=e.properties[n])||void 0===i||!i.deprecated||t.includeDeprecated)if(null===(s=e.properties[n])||void 0===s||!s.readOnly||t.includeReadOnly)if(null===(l=e.properties[n])||void 0===l||!l.writeOnly||t.includeWriteOnly)if("array"===(null===(c=e.properties[n])||void 0===c?void 0:c.type)||null!==(p=e.properties[n])&&void 0!==p&&p.items)if(e.properties[n].example)Lt(e.properties[n].example,r,n);else if(null!==(d=e.properties[n])&&void 0!==d&&null!==(u=d.items)&&void 0!==u&&u.example)Lt([e.properties[n].items.example],r,n);else{const a=Nt(e.properties[n].items,t);if(t.useXmlTagForProp){var h,f;const t=(null===(h=e.properties[n].xml)||void 0===h?void 0:h.name)||n;if(null!==(f=e.properties[n].xml)&&void 0!==f&&f.wrapped){r=Mt(r,t,JSON.parse(`{ "${t}" : { "${t}" : ${JSON.stringify(a["example-0"])} } }`))}else r=Mt(r,t,a)}else{const e=[];for(const t in a)e[t]=[a[t]];r=Mt(r,n,e)}}else r=Mt(r,n,Nt(e.properties[n],t))}else{if("array"!==e.type&&!e.items)return{"example-0":Ct(e)};var m;if(e.items||e.example)if(e.example)r["example-0"]=e.example;else if(null!==(m=e.items)&&void 0!==m&&m.example)r["example-0"]=[e.items.example];else{const n=Nt(e.items,t);let a=0;for(const t in n)r[`example-${a}`]=[n[t]],It(e.items,r[`example-${a}`]),a++}else r["example-0"]=[]}return r}}function Ft(e,t=0){var r;let n=(e.description||e.title)&&(e.minItems||e.maxItems)?'':"";if(e.title?n=e.description?`${n} ${e.description}
    `:`${n} ${e.title}
    `:e.description&&(n=`${n} ${e.description}
    `),e.minItems&&(n=`${n} Min Items: ${e.minItems}`),e.maxItems&&(n=`${n} Max Items: ${e.maxItems}`),t>0&&null!==(r=e.items)&&void 0!==r&&r.description){let t="";e.items.minProperties&&(t=`Min Properties: ${e.items.minProperties}`),e.items.maxProperties&&(t=`${t} Max Properties: ${e.items.maxProperties}`),n=`${n} ⮕ ${t} [ ${e.items.description} ] `}return n}function Ut(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${Pt(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",o=Ut(e,{},r+1,a);Object.assign(n,o)}else if("array"===e.type||e.items){const t=Ut(e,{},r+1);Object.assign(n,t)}else{if(!e.type)return"";{const t=`prop${Object.keys(n).length}`,r=Pt(e);n[t]=`${r.html}`}}})),t=n}if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1)}const a={},o=e.anyOf?"anyOf":"oneOf";e[o].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${Pt(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="object"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),i=[],s=[];let l;var a;if(n.type.forEach((e=>{var t,r;e.match(/integer|number|string|null|boolean/g)?i.push(e):"array"===e&&"string"==typeof(null===(t=n.items)||void 0===t?void 0:t.type)&&null!==(r=n.items)&&void 0!==r&&r.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?i.push(`[${n.items.format}]`):i.push(`[${n.items.type}]`):s.push(e)})),i.length>0)if(n.type=i.join(2===i.length?" or ":"┃"),l=Pt(n),0===s.length)return`${(null===(a=l)||void 0===a?void 0:a.html)||""}`;if(s.length>0){var o;t["::type"]="object";const a={"::type":"xxx-of-option"};s.forEach(((t,o)=>{if("null"===t)a[`::OPTION~${o+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=Pt(n);a[`::OPTION~${o+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1);a[`::OPTION~${o+1}`]=t}else"array"===t&&(a[`::OPTION~${o+1}`]={"::title":e.title||"","::description":e.description||"","::type":"array","::props":Ut(e.items,{},r+1)})})),a[`::OPTION~${s.length+1}`]=(null===(o=l)||void 0===o?void 0:o.html)||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=Ft(e,r),t["::type"]="object",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="object or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1);for(const n in e.patternProperties)t[`[pattern: ${n}]`]=Ut(e.patternProperties[n],t,r+1);e.additionalProperties&&(t["[any-key]"]=Ut(e.additionalProperties,{}))}else if("array"===e.type||e.items){var i;t["::title"]=e.title||"",t["::description"]=Ft(e,r),t["::type"]="array",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="array or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"",null!==(i=e.items)&&void 0!==i&&i.items&&(t["::array-type"]=e.items.items.type),t["::props"]=Ut(e.items,{},r+1)}else if(!e.allOf){const t=Pt(e);return null!=t&&t.html?`${t.html}`:""}return t}}function qt(e,t,r="",n="",a=!0,o=!0,i="json",s=!1){const l=[];if(r)for(const e in r){let n="",a="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)n="string"==typeof r[e].value?r[e].value:JSON.stringify(r[e].value,void 0,2),a="text";else if(n=r[e].value,"string"==typeof r[e].value)try{const t=r[e].value;n=JSON.parse(t),a="json"}catch(t){a="text",n=r[e].value}}else n=r[e].value,a="text";l.push({exampleId:e,exampleSummary:r[e].summary||e,exampleDescription:r[e].description||"",exampleType:t,exampleValue:n,exampleFormat:a})}else if(n){let e="",r="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)e="string"==typeof n?n:JSON.stringify(n,void 0,2),r="text";else if("object"==typeof n)e=n,r="json";else if("string"==typeof n)try{e=JSON.parse(n),r="json"}catch(t){r="text",e=n}}else e=n,r="text";l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e,exampleFormat:r})}if(0===l.length||!0===s)if(e)if(e.example)l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e.example,exampleFormat:null!=t&&t.toLowerCase().includes("json")&&"object"==typeof e.example?"json":"text"});else if(null!=t&&t.toLowerCase().includes("json")||null!=t&&t.toLowerCase().includes("text")||null!=t&&t.toLowerCase().includes("*/*")||null!=t&&t.toLowerCase().includes("xml")){let r="",n="",s="",d="";var c,p;if(null!=t&&t.toLowerCase().includes("xml"))r=null!==(c=e.xml)&&void 0!==c&&c.name?`<${e.xml.name} ${e.xml.namespace?`xmlns="${e.xml.namespace}"`:""}>`:"",n=null!==(p=e.xml)&&void 0!==p&&p.name?``:"",s="text";else s=i;const u=Nt(e,{includeReadOnly:a,includeWriteOnly:o,deprecated:!0,useXmlTagForProp:null==t?void 0:t.toLowerCase().includes("xml")});let h=0;for(const e in u){if(!u[e])continue;const a=u[e]["::TITLE"]||"Example "+ ++h,o=u[e]["::DESCRIPTION"]||"";null!=t&&t.toLowerCase().includes("xml")?d=`\n${r}${Rt(u[e],1)}\n${n}`:(Dt(u[e]),d="text"===i?JSON.stringify(u[e],null,2):u[e]),l.push({exampleId:e,exampleSummary:a,exampleDescription:o,exampleType:t,exampleFormat:s,exampleValue:d})}}else null!=t&&t.toLowerCase().includes("jose")?l.push({exampleId:"Example",exampleSummary:"Base64 Encoded",exampleDescription:"",exampleType:t,exampleValue:e.pattern||"bXJpbg==",exampleFormat:"text"}):l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});else l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});return l}function Bt(e){return"application/json"===e?"json":"application/xml"===e?"xml":null}function Ht(e){if(e.schema)return[e.schema,null,null];if(e.content)for(const t of Object.keys(e.content))if(e.content[t].schema)return[e.content[t].schema,Bt(t),e.content[t]];return[null,null,null]}var zt=r(5108);function Wt(e){let t=this.path;const r=[],n=[...e.querySelectorAll("[data-ptype='path']")],a=[...e.querySelectorAll("[data-ptype='query']")],o=[...e.querySelectorAll("[data-ptype='query-object']")];n.map((e=>{t=t.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value))}));const i=new Map,s=[];a.length>0&&a.forEach((e=>{const t=new URLSearchParams;if("true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"false"===e.dataset.array)""!==e.value&&(r.push({name:e.dataset.pname,value:e.value}),t.append(e.dataset.pname,e.value));else{const{paramSerializeStyle:n,paramSerializeExplode:a}=e.dataset;let o=e.value&&Array.isArray(e.value)?e.value:[];o=Array.isArray(o)?o.filter((e=>""!==e)):[],o.length>0&&("spaceDelimited"===n?(r.push({name:e.dataset.pname,value:o.join(" ").replace(/^\s|\s$/g,"")}),t.append(e.dataset.pname,o.join(" ").replace(/^\s|\s$/g,""))):"pipeDelimited"===n?(r.push({name:e.dataset.pname,value:o.join("|").replace(/^\||\|$/g,"")}),t.append(e.dataset.pname,o.join("|").replace(/^\||\|$/g,""))):"true"===a?o.forEach((n=>{r.push({name:e.dataset.pname,value:n}),t.append(e.dataset.pname,n)})):(r.push({name:e.dataset.pname,value:o.join(",").replace(/^,|,$/g,"")}),t.append(e.dataset.pname,o.join(",").replace(/^,|,$/g,""))))}t.toString()&&i.set(e.dataset.pname,t)})),o.length>0&&o.map((e=>{const t=new URLSearchParams;try{let n={};const{paramSerializeStyle:a,paramSerializeExplode:o,pname:i}=e.dataset;if(n=Object.assign(n,JSON.parse(e.value.replace(/\s+/g," "))),"true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"json xml".includes(a))"json"===a?(r.push({name:e.dataset.pname,value:JSON.stringify(n)}),t.append(e.dataset.pname,JSON.stringify(n))):"xml"===a&&(r.push({name:e.dataset.pname,value:Rt(n)}),t.append(e.dataset.pname,Rt(n)));else for(const e in n){const s=`${i}[${e}]`;"object"==typeof n[e]?Array.isArray(n[e])&&("spaceDelimited"===a?(r.push({name:s,value:n[e].join(" ")}),t.append(s,n[e].join(" "))):"pipeDelimited"===a?(r.push({name:s,value:n[e].join("|")}),t.append(s,n[e].join("|"))):"true"===o?n[e].forEach((e=>{r.push({name:s,value:e}),t.append(s,e)})):(r.push({name:s,value:n[e]}),t.append(s,n[e]))):(r.push({name:s,value:n[e]}),t.append(s,n[e]))}}catch(t){zt.log("RapiDoc: unable to parse %s into object",e.value)}t.toString()&&i.set(e.dataset.pname,t)}));let l="";return i.size&&(i.forEach(((e,t)=>{s.includes(t)?(l+=`${t}=`,l+=e.getAll(t).join(`&${t}=`),l+="&"):l+=`${e.toString()}&`})),l=l.slice(0,-1)),0!==l.length&&(t=`${t}${t.includes("?")?"&":"?"}${l}`),this.api_keys.filter((e=>"query"===e.in)).forEach((e=>{t=`${t}${t.includes("?")?"&":"?"}${e.name}=${encodeURIComponent(e.finalKeyValue)}`})),t=`${this.selectedServer.computedUrl.replace(/\/$/,"")}${t}`,{fetchUrl:t,queryString:r}}function Zt(e){const t={method:this.method.toUpperCase()},r={mimeType:""},n=e.querySelector(".request-body-container"),a=n?n.dataset.selectedRequestBodyType:"";if(n)if(a.includes("form-urlencoded")){const n=e.querySelector("[data-ptype='dynamic-form']");if(n){const e=n.value,a=new URLSearchParams;let o,i=!0;if(e)try{o=JSON.parse(e)}catch(e){i=!1,zt.warn("RapiDoc: Invalid JSON provided",e)}else i=!1;if(i){for(const e in o)a.append(e,JSON.stringify(o[e]));t.body=a,r.params=a}}else{const n=[...e.querySelectorAll("[data-ptype='form-urlencode']")],a=new URLSearchParams,o=[];n.filter((e=>"file"!==e.type)).forEach((e=>{if("false"===e.dataset.array)e.value&&(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value}));else{const t=e.value&&Array.isArray(e.value)?e.value.join(","):"";a.append(e.dataset.pname,t),o.push({name:e.dataset.pname,value:t})}})),t.body=a,r.params=o}}else if(a.includes("form-data")){const n=new FormData,a=[];[...e.querySelectorAll("[data-ptype='form-data']")].forEach((e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(n.append(e.dataset.pname,e.files[0],e.files[0].name),a.push({name:e.dataset.pname,value:e.files[0],fileName:e.files[0].name})):e.value&&(n.append(e.dataset.pname,e.value),a.push({name:e.dataset.pname,value:e.value})):e.value&&Array.isArray(e.value)&&(n.append(e.dataset.pname,e.value.join(",")),a.push({name:e.dataset.pname,value:e.value.join(",")}))})),t.body=n,r.params=a}else if(/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(a)){const r=e.querySelector(".request-body-param-file");null!=r&&r.files[0]&&(t.body=r.files[0])}else if(a.includes("json")||a.includes("xml")||a.includes("text")){const n=e.querySelector(".request-body-param-user-input");if(null!=n&&n.value){if(t.body=n.value,a.includes("json"))try{r.text=JSON.stringify(JSON.parse(n.value))}catch(e){}r.text&&0===r.text.length&&(r.text=n.value.replace(/'/g,"'\"'\"'"))}}return n&&(r.mimeType=a),{fetchOptions:t,postData:r}}function Vt(e){var t;let r="",n="";const a=[],o=new Headers,i=[],s=e.querySelector(".request-body-container"),l=[...e.querySelectorAll("[data-ptype='header']")],c=null===(t=this.closest(".expanded-req-resp-container, .req-resp-container"))||void 0===t?void 0:t.getElementsByTagName("api-response")[0],p=null==c?void 0:c.selectedMimeType;return l.map((e=>{e.value&&("Accept"===e.dataset.pname?r=e.value:"Content-Type"===e.dataset.pname?n=e.value:(o.append(e.dataset.pname,e.value),i.push({name:e.dataset.pname,value:e.value})))})),r?(o.append("Accept",r),i.push({name:"Accept",value:r})):p?(o.append("Accept",p),i.push({name:"Accept",value:p})):this.accept&&(o.append("Accept",this.accept),i.push({name:"Accept",value:this.accept})),n?(o.append("Content-Type",n),i.push({name:"Content-Type",value:n})):s&&(o.append("Content-Type",s.dataset.selectedRequestBodyType),i.push({name:"Content-Type",value:s.dataset.selectedRequestBodyType})),(this.security?this.security:this.resolvedSpec.security).forEach(((e,t)=>{if(this.selectedAuthScheme===t&&(Object.keys(e).map((e=>{const t=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));kt(this.security,t.securitySchemeId)&&("cookie"!==t.in&&(o.append(t.name,t.value),i.push({name:t.name,value:t.value})),"cookie"===t.in&&a.push({name:t.name,value:t.value}))})),a.length>0)){const e=a.map((e=>`${e.name}=${e.value}`));i.push({name:"Cookie",value:e.join("; path=/")})}})),{reqHeaders:o,headers:i,reqCookieHeader:a}}function Kt(e){const t=[];return[...e.querySelectorAll("[data-ptype='cookie']")].forEach((e=>{e.value&&t.push({name:e.dataset.pname,value:e.value})})),{cookies:t}}function Gt(e){return e=e.replace(/%7B/gm,"{").replace(/%7D/gm,"}")}function Yt(e){const t=e.closest(".request-panel"),{fetchUrl:r,queryString:n}=Wt.call(this,t),{fetchOptions:a,postData:o}=Zt.call(this,t),{reqHeaders:i,headers:s,reqCookieHeader:l}=Vt.call(this,t),{cookies:c}=Kt.call(this,t),p=new(_t())({method:this.method,url:r,queryString:n,headers:s,postData:o,cookies:c});p.requests[0].url=Gt(p.requests[0].url),p.requests[0].fullUrl=Gt(p.requests[0].fullUrl);const d=p.convert(this.selectedLanguage,{indent:"\t"});return this.codeExample=d,{fetchUrl:r,fetchOptions:a,reqHeaders:i,reqCookie:c.concat(l)}}var Jt=r(8764).Buffer,Xt=r(5108);const Qt="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",er="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",tr="rapidoc";function rr(e,t="",r="",n=""){var a,o;const i=null===(a=this.resolvedSpec.securitySchemes)||void 0===a?void 0:a.find((t=>t.securitySchemeId===e));if(!i)return!1;let s="";if("basic"===(null===(o=i.scheme)||void 0===o?void 0:o.toLowerCase()))t&&(s=`Basic ${Jt.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(n){var l;i.value=n,s=`${"bearer"===(null===(l=i.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${n}`}return!!s&&(i.finalKeyValue=s,this.requestUpdate(),!0)}function nr(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function ar(){return JSON.parse(localStorage.getItem(tr))||{}}function or(e){localStorage.setItem(tr,JSON.stringify(e))}function ir(){const e=ar.call(this);Object.values(e).forEach((e=>{rr.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function sr(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const n=this.shadowRoot.getElementById(`security-scheme-${e}`);if(n){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=n.querySelector(".api-key-user").value.trim(),r=n.querySelector(".api-key-password").value.trim();rr.call(this,e,t,r)}else t=n.querySelector(".api-key-input").value.trim(),rr.call(this,e,"","",t);if("true"===this.persistAuth){const t=ar.call(this);t[e]=r,or.call(this,t)}}}}function lr(e,t,r="Bearer"){const n=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));n.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function cr(e,t,r,n,a,o,i,s,l="header",c=null,p=null,d=null){const u=s?s.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,f=new Headers;h.append("grant_type",a),"authorization_code"===a&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==a&&"password"!==a&&h.append("redirect_uri",n),o&&(h.append("code",o),h.append("code_verifier",Qt)),"header"===l?f.set("Authorization",`Basic ${Jt.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==a&&(h.append("client_id",t),h.append("client_secret",r)),"password"===a&&(h.append("username",p),h.append("password",d)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:f,body:h}),r=await t.json();if(!t.ok)return u&&(u.innerHTML=`${r.error_description||r.error_description||"Unable to get access token"}`),!1;if(r.token_type&&r.access_token)return lr.call(this,i,r.access_token,r.token_type),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}async function pr(e,t,r,n,a,o,i,s,l,c){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||Xt.warn("RapiDoc: Received no data with authorization message"),e.data.error&&Xt.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?cr.call(this,r,n,a,o,i,e.data.code,l,c,s):"token"===e.data.responseType&&lr.call(this,l,e.data.access_token,e.data.token_type)))}async function dr(e,t,r,n,a){const o=a.target.closest(".oauth-flow"),i=o.querySelector(".oauth-client-id")?o.querySelector(".oauth-client-id").value.trim():"",s=o.querySelector(".oauth-client-secret")?o.querySelector(".oauth-client-secret").value.trim():"",l=o.querySelector(".api-key-user")?o.querySelector(".api-key-user").value.trim():"",c=o.querySelector(".api-key-password")?o.querySelector(".api-key-password").value.trim():"",p=o.querySelector(".oauth-send-client-secret-in")?o.querySelector(".oauth-send-client-secret-in").value.trim():"header",d=[...o.querySelectorAll(".scope-checkbox:checked")],u=o.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let g,y="",v="";if([...o.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const a=new URL(r);"authorizationCode"===t?(y="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(a.search),c=d.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",i),l.set("redirect_uri",m.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",f),u&&u.checked&&(l.set("code_challenge",er),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),a.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{g=window.open(a.toString()),g?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>pr.call(this,t,g,n,i,s,m.toString(),y,p,e,o)),{once:!0})):Xt.error(`RapiDoc: Unable to open ${a.toString()} in a new window`)}),10)}else if("clientCredentials"===t){y="client_credentials";const t=d.map((e=>e.value)).join(" ");cr.call(this,n,i,s,m.toString(),y,"",e,o,p,t)}else if("password"===t){y="password";const t=d.map((e=>e.value)).join(" ");cr.call(this,n,i,s,m.toString(),y,"",e,o,p,t,l,c)}}function ur(e,t,r,n,a,o=[],i="header"){let{authorizationUrl:s,tokenUrl:l,refreshUrl:c}=a;const p=a["x-pkce-only"]||!1,d=e=>e.indexOf("://")>0||0===e.indexOf("//"),u=new URL(this.selectedServer.computedUrl).origin;let h;return c&&!d(c)&&(c=`${u}/${c.replace(/^\//,"")}`),l&&!d(l)&&(l=`${u}/${l.replace(/^\//,"")}`),s&&!d(s)&&(s=`${u}/${s.replace(/^\//,"")}`),h="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,B`
    ${h}
    ${s?B`
    Auth URL ${s}
    `:""} @@ -1581,82 +1569,95 @@ pre[class*="language-"] { `:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?B` `:""}
    `:""} - `}function dr(e){var t;const r=null===(t=this.resolvedSpec.securitySchemes)||void 0===t?void 0:t.find((t=>t.securitySchemeId===e));if(r.user="",r.password="",r.value="",r.finalKeyValue="","true"===this.persistAuth){const e=rr.call(this);delete e[r.securitySchemeId],nr.call(this,e)}this.requestUpdate()}function ur(e,t,r){""===r?dr.call(this,t):or.call(this,t);const n=this.getRequestPanel(e);Gt.call(this,n)}function hr(){var e;if(!this.resolvedSpec)return"";const t=null===(e=this.resolvedSpec.securitySchemes)||void 0===e?void 0:e.filter((e=>e.finalKeyValue));return t?B` -
    -
    Header Auth
    - + `}function hr(e){var t;const r=null===(t=this.resolvedSpec.securitySchemes)||void 0===t?void 0:t.find((t=>t.securitySchemeId===e));if(r.user="",r.password="",r.value="",r.finalKeyValue="","true"===this.persistAuth){const e=ar.call(this);delete e[r.securitySchemeId],or.call(this,e)}this.requestUpdate()}function fr(e,t,r){""===r?hr.call(this,t):sr.call(this,t);const n=this.getRequestPanel(e);Yt.call(this,n)}function mr(e){const t=parseInt(e.target.value);this.selectedAuthScheme=t}function gr(e){let t="";const r=Object.keys(e),n=r.length,a=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===r[0]));return"apiKey"===a.type?t+=a.in.charAt(0).toUpperCase()+a.in.slice(1)+(n>1?" + "+(n-1):""):"http"===a.type?t+=a.scheme.charAt(0).toUpperCase()+a.scheme.slice(1)+(n>1?" + "+(n-1):""):a.type?t+=a.type.charAt(0).toUpperCase()+a.type.slice(1)+(n>1?" + "+(n-1):""):t+="Authentication",t}function yr(){return B` +
    + +
    `}function vr(){var e;if(!this.resolvedSpec)return"";if(this.security&&0===this.security.length)return"";const t=null===(e=this.resolvedSpec.securitySchemes)||void 0===e?void 0:e.filter((e=>e.finalKeyValue));return t?B` ${this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?B` -
    - ${this.resolvedSpec.securitySchemes.map((e=>B` -
    -
    ${e.name}
    - ${e.description?B` -
    - ${Et(Ze(e.description||""))} -
    `:""} - - ${"apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?B` -
    - ${"cookie"!==e.in?B` - `:B` cookies cannot be set from here`} -
    `:""} - ${"http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?B` -
    - Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    Authentication
    +
    + ${yr.call(this)} +
    + ${this.resolvedSpec.security.map(((e,t)=>B` + ${t===this.selectedAuthScheme?B`
    + ${Object.keys(e).map((e=>{const t=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(kt(this.security,t.securitySchemeId))return B` +
    +
    ${t.name}
    + ${t.description?B` +
    + ${Et(Ve(t.description||""))} +
    `:""} + + ${"apikey"===t.type.toLowerCase()||"http"===t.type.toLowerCase()&&"bearer"===t.scheme.toLowerCase()?B` +
    + +
    `:""} + ${"http"===t.type.toLowerCase()&&"basic"===t.scheme.toLowerCase()?B` +
    + Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    + {const t=this.getRequestPanel(e);Yt.call(this,t)}} + > + {const t=this.getRequestPanel(e);Yt.call(this,t)}} + > + +
    `:""}
    -
    - {const t=this.getRequestPanel(e);Gt.call(this,t)}} - > - {const t=this.getRequestPanel(e);Gt.call(this,t)}} - > - -
    `:""} -
    - ${"oauth2"===e.type.toLowerCase()?B` -
    - ${Object.keys(e.flows).map((t=>pr.call(this,t,e["x-client-id"],e["x-client-secret"],e.securitySchemeId,e.flows[t],e["x-default-scopes"],e["x-receive-token-in"])))} -
    - `:""} - `))} -
    `:""} - - - -
    -`:void 0}function fr(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return Array.isArray(e)?0===e.length?"":(e.forEach((e=>{const r=[],n=[];0===Object.keys(e).length?t.push({securityTypes:"None",securityDefs:[]}):(Object.keys(e).forEach((t=>{let a="";const o=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===t));e[t]&&Array.isArray(e[t])&&(a=e[t].join(", ")),o&&(n.push(o.typeDisplay),r.push({...o,scopes:a}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r}))})),B`
    + ${"oauth2"===t.type.toLowerCase()?B` +
    + ${Object.keys(t.flows).map((e=>ur.call(this,e,t["x-client-id"],t["x-client-secret"],t.securitySchemeId,t.flows[e],t["x-default-scopes"],t["x-receive-token-in"])))} +
    + `:""} + `}))} +
    `:""} + `))} +
    + +
    `:""} +`:void 0}function br(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return Array.isArray(e)?0===e.length?"":(e.forEach((e=>{const r=[],n=[];0===Object.keys(e).length?t.push({securityTypes:"None",securityDefs:[]}):(Object.keys(e).forEach((t=>{let a="";const o=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===t));e[t]&&Array.isArray(e[t])&&(a=e[t].join(", ")),o&&(n.push(o.typeDisplay),r.push({...o,scopes:a}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r}))})),B`
    ${t.map(((e,t)=>B` @@ -1699,12 +1700,12 @@ pre[class*="language-"] { `:""} `))}
    - `):""}return""}function mr(){return B` + `):""}return""}function xr(){return B` -`}function gr(e){return B` +`}function wr(e){return B`
    CODE SAMPLES
    e.classList[e.dataset.tab===t?"add":"remove"]("active"))),n.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}"> @@ -1713,11 +1714,11 @@ pre[class*="language-"] {
    ${e.map(((e,t)=>{var r,n,a;return B`
    - -
    ${Ke().languages[null===(r=e.lang)||void 0===r?void 0:r.toLowerCase()]?Et(Ke().highlight(e.source,Ke().languages[null===(n=e.lang)||void 0===n?void 0:n.toLowerCase()],null===(a=e.lang)||void 0===a?void 0:a.toLowerCase())):e.source}
    + +
    ${Ge().languages[null===(r=e.lang)||void 0===r?void 0:r.toLowerCase()]?Et(Ge().highlight(e.source,Ge().languages[null===(n=e.lang)||void 0===n?void 0:n.toLowerCase()],null===(a=e.lang)||void 0===a?void 0:a.toLowerCase())):e.source}
    `}))} - `}function yr(e){return B` + `}function $r(e){return B`
    CALLBACKS
    ${Object.entries(e).map((e=>B`
    @@ -1783,7 +1784,7 @@ pre[class*="language-"] { `))}
    `))} - `}const vr={},br=wt(class extends $t{constructor(){super(...arguments),this.st=vr}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return H}else if(this.st===t)return H;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,r)}});var xr=r(3131),wr=r.n(xr);const $r=c` + `}const Sr={},Er=wt(class extends $t{constructor(){super(...arguments),this.st=Sr}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return H}else if(this.st===t)return H;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,r)}});var kr=r(3131),Ar=r.n(kr);const _r=c` .border-top { border-top:1px solid var(--border-color); } @@ -1804,7 +1805,7 @@ pre[class*="language-"] { .mar-top-8{ margin-top: 8px; } -`,Sr=c` +`,Or=c` .shell-token.shell-function { color: #2953B2; } @@ -1821,7 +1822,7 @@ pre[class*="language-"] { color: var(--green); } -`,Er=c` +`,Pr=c` .node-token.node-builtin { color: #4A4A4A; } @@ -1845,7 +1846,7 @@ pre[class*="language-"] { .node-token.node-property { color: var(--green); } -`,kr=c``,Ar=c``,_r=c` +`,Tr=c``,jr=c``,Cr=c` .json-token.json-boolean { color: #2953B2; } @@ -1869,7 +1870,7 @@ pre[class*="language-"] { .json-token.json-property { color: var(--green); } -`,Or=[Sr,Er,kr,Ar,c` +`,Rr=[Or,Pr,Tr,jr,c` .python-token.python-builtin { color: #4A4A4A; } @@ -1885,7 +1886,7 @@ pre[class*="language-"] { .python-token.python-string { color: var(--green); } -`,_r];customElements.get("json-tree")||customElements.define("json-tree",class extends se{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Ye,$r,Je,c` +`,Cr];customElements.get("json-tree")||customElements.define("json-tree",class extends se{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Ye,_r,Je,c` :host{ display:flex; } @@ -1953,7 +1954,7 @@ pre[class*="language-"] { }`,ot]}render(){return B`
    - +
    ${this.generateTree(this.data,!0)}
    @@ -1967,7 +1968,7 @@ pre[class*="language-"] { `))}
    ${"array"===r?"]":"}"}${t?"":","}
    - `}return"string"==typeof e||e instanceof Date?B`"${e}"${t?"":","}`:B`${e}${t?"":","}`}toggleExpand(e){const t=e.target;e.target.classList.contains("open-bracket")&&(t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{"))}});const Pr=c` + `}return"string"==typeof e||e instanceof Date?B`"${e}"${t?"":","}`:B`${e}${t?"":","}`}toggleExpand(e){const t=e.target;e.target.classList.contains("open-bracket")&&(t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{"))}});const Ir=c` *, *:before, *:after { box-sizing: border-box; } @@ -2030,12 +2031,13 @@ pre[class*="language-"] { } .xxx-of-key { - font-size: calc(var(--font-size-small) - 2px); + font-family: var(--font-mono); + font-size: 12px; font-weight:bold; - background-color:var(--primary-color); - border-radius:2px; + background-color:#f8f7fc; + border-radius:4px; line-height:calc(var(--font-size-small) + 6px); - padding:0px 5px; + padding: 0.2em 0.4em; margin-bottom:1px; display:inline-block; } @@ -2099,7 +2101,7 @@ pre[class*="language-"] { display: block; } } -`;customElements.get("schema-tree")||customElements.define("schema-tree",class extends se{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Pr,$r,c` +`;customElements.get("schema-tree")||customElements.define("schema-tree",class extends se{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Ir,_r,c` .tree { font-size:var(--font-size-small); text-align: left; @@ -2165,7 +2167,7 @@ pre[class*="language-"] { ${"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description"} `:""} - ${Et(Ze((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))} + ${Et(Ve((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))} ${this.data?B` ${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],this.data["::array-type"]||"")}`:B` Schema not found `} @@ -2181,7 +2183,7 @@ pre[class*="language-"] { `:""} ${u} -
    ${Et(Ze(a||""))}
    +
    ${Et(Ve(a||""))}
    ${Array.isArray(e)&&e[0]?B`${this.generateTree(e[0],"xxx-of-option","","::ARRAY~OF","",f,m,e[0]["::readwrite"])}`:B` @@ -2203,7 +2205,7 @@ pre[class*="language-"] {
    ${a||E||S?B`${B` - ${Et(Ze("array"===t?`${_} ${a}`:E?`${_} ${E}: ${S}`:`${_} ${S}`))} + ${Et(Ve("array"===t?`${_} ${a}`:E?`${_} ${E}: ${S}`:`${_} ${S}`))} `}`:""} ${b?B`
    Constraints: ${b}
    `:""} ${x?B`
    Default: ${x}
    `:""} @@ -2261,7 +2263,7 @@ pre[class*="language-"] { color: var(--placeholder-color); opacity:1; } - `]}});function Tr(e,t){return e.length>0&&t.length>0&&e.slice(-1)===t.charAt(0)?e.slice(0,-1)+t:e+t}function jr(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:20,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:20;return B` + `]}});function Dr(e,t){return e.length>0&&t.length>0&&e.slice(-1)===t.charAt(0)?e.slice(0,-1)+t:e+t}function Lr(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:20,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:20;return B` @@ -2374,7 +2376,7 @@ pre[class*="language-"] {
    `))} - `}});class Rr extends se{constructor(e,t){super(),this.active=!0,this.message=null!=t?t:"",this.tone=null!=e?e:"positive",this.tones={info:{borderColor:c`#7CBBEA`,bgColor:c`#DEECF7`,icon:jr},positive:{borderColor:c`#83D187`,bgColor:c`#DFF1E0`,icon:jr},warning:{borderColor:c`#F5AE70`,bgColor:c`#FFEBD7`,icon:jr},critical:{borderColor:c`#F49494`,bgColor:c`#F8E3E3`,icon:jr}}}firstUpdated(){const e=e=>{this.renderRoot.querySelectorAll(".toast-active").length>0&&"fadeOut"===e.animationName&&this.onClose()};this.renderRoot.getElementById("toast").addEventListener("animationend",e),this.renderRoot.getElementById("toast").addEventListener("webkitAnimationEnd",e)}onClose(){this.active=!1;this.dispatchEvent(new CustomEvent("closed-toast",{detail:"closed toast",bubbles:!0,composed:!0}))}render(){return B` + `}});class Mr extends se{constructor(e,t){super(),this.active=!0,this.message=null!=t?t:"",this.tone=null!=e?e:"positive",this.tones={info:{borderColor:c`#7CBBEA`,bgColor:c`#DEECF7`,icon:Lr},positive:{borderColor:c`#83D187`,bgColor:c`#DFF1E0`,icon:Lr},warning:{borderColor:c`#F5AE70`,bgColor:c`#FFEBD7`,icon:Lr},critical:{borderColor:c`#F49494`,bgColor:c`#F8E3E3`,icon:Lr}}}firstUpdated(){const e=e=>{this.renderRoot.querySelectorAll(".toast-active").length>0&&"fadeOut"===e.animationName&&this.onClose()};this.renderRoot.getElementById("toast").addEventListener("animationend",e),this.renderRoot.getElementById("toast").addEventListener("webkitAnimationEnd",e)}onClose(){this.active=!1;this.dispatchEvent(new CustomEvent("closed-toast",{detail:"closed toast",bubbles:!0,composed:!0}))}render(){return B`
    @@ -2504,13 +2506,13 @@ pre[class*="language-"] { display: none; } } - `]}}var Cr,Ir,Dr;Cr=Rr,Ir="properties",Dr={tone:{type:String},tones:{type:{}},message:{type:String},active:{type:Boolean}},(Ir=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(Ir))in Cr?Object.defineProperty(Cr,Ir,{value:Dr,enumerable:!0,configurable:!0,writable:!0}):Cr[Ir]=Dr,customElements.get("toast-component")||customElements.define("toast-component",Rr);class Mr extends se{constructor(e,t,r,n,a){super(),this.id=e,this.url=t,this.path=r,this.computedUrl=n,this.variables=a,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(Tr(this.computedUrl,this.path)),this.copied=!0,this.showToast=!0}onTextClick(){navigator.clipboard.writeText(Tr(this.computedUrl,this.path)),this.showToast=!0}onMouseOver(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}parseURL(){if(!this.variables)return this.url;let{url:e}=this;for(const[t,r]of Object.entries(this.variables)){const n=new RegExp(`{${t}}`,"g");e=e.replace(n,'{var}'.replace("{var}",r.value))}return Tr(e,this.path)}render(){return B` + `]}}var Nr,Fr,Ur;Nr=Mr,Fr="properties",Ur={tone:{type:String},tones:{type:{}},message:{type:String},active:{type:Boolean}},(Fr=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(Fr))in Nr?Object.defineProperty(Nr,Fr,{value:Ur,enumerable:!0,configurable:!0,writable:!0}):Nr[Fr]=Ur,customElements.get("toast-component")||customElements.define("toast-component",Mr);class qr extends se{constructor(e,t,r,n,a){super(),this.id=e,this.url=t,this.path=r,this.computedUrl=n,this.variables=a,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(Dr(this.computedUrl,this.path)),this.copied=!0,this.showToast=!0}onTextClick(){navigator.clipboard.writeText(Dr(this.computedUrl,this.path)),this.showToast=!0}onMouseOver(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}parseURL(){if(!this.variables)return this.url;let{url:e}=this;for(const[t,r]of Object.entries(this.variables)){const n=new RegExp(`{${t}}`,"g");e=e.replace(n,'{var}'.replace("{var}",r.value))}return Dr(e,this.path)}render(){return B`
    ${B`${Et(this.parseURL())}`}
    @@ -2624,7 +2626,7 @@ pre[class*="language-"] { border-radius: 2px; background-color: var(--border-color); } - `]}}function Lr(e){var t;const r=null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.find((t=>t.url===e));return!!r&&(this.selectedServer=r,this.requestUpdate(),this.dispatchEvent(new CustomEvent("api-server-change",{bubbles:!0,composed:!0,detail:{selectedServer:r}})),!0)}function Nr(e,t){const r=[...e.currentTarget.closest(".server-vars").querySelectorAll("input, select")];let n=t.url;r.forEach((e=>{t.variables[e.dataset.var].value=e.value;const r=new RegExp(`{${e.dataset.var}}`,"g");n=n.replace(r,e.value.trim())})),t.computedUrl=n;const a=this.getRequestPanel(e);Gt.call(this,a),this.requestUpdate()}function Fr(){return this.selectedServer&&this.selectedServer.variables?B` + `]}}function Br(e){var t;const r=null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.find((t=>t.url===e));return!!r&&(this.selectedServer=r,this.requestUpdate(),this.dispatchEvent(new CustomEvent("api-server-change",{bubbles:!0,composed:!0,detail:{selectedServer:r}})),!0)}function Hr(e,t){const r=[...e.currentTarget.closest(".server-vars").querySelectorAll("input, select")];let n=t.url;r.forEach((e=>{t.variables[e.dataset.var].value=e.value;const r=new RegExp(`{${e.dataset.var}}`,"g");n=n.replace(r,e.value.trim())})),t.computedUrl=n;const a=this.getRequestPanel(e);Yt.call(this,a),this.requestUpdate()}function zr(){return this.selectedServer&&this.selectedServer.variables?B`
    ${Object.entries(this.selectedServer.variables).map((e=>B`
    @@ -2633,7 +2635,7 @@ pre[class*="language-"] { ${e[1].enum?B` ${o.map((e=>B` `))} - `,o.forEach((e=>{let o,i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose"))e.mimeType===this.selectedRequestBodyType&&(i=Ut(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=B` + `,o.forEach((e=>{let o,i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose"))e.mimeType===this.selectedRequestBodyType&&(i=qt(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=B` ${a}
    ${1===i.length?"":B` @@ -3046,7 +3048,7 @@ pre[class*="language-"] { ${i.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>B`
    ${t.exampleSummary&&t.exampleSummary.length>80?B`
    ${t.exampleSummary}
    `:""} - ${t.exampleDescription?B`
    ${Et(Ze(t.exampleDescription||""))}
    `:""} + ${t.exampleDescription?B`
    ${Et(Ve(t.exampleDescription||""))}
    `:""}
    `))}
    - `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=Ut(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=B` + `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=qt(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=B`
    - `);(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")||this.selectedRequestBodyType.includes("jose"))&&(o=Ft(e.schema,{}),"table"===this.schemaStyle?n=B` + `);(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")||this.selectedRequestBodyType.includes("jose"))&&(o=Ut(e.schema,{}),"table"===this.schemaStyle?n=B` ${n} ${e}
    - ${this.request_body.description?B`
    ${Et(Ze(this.request_body.description))}
    `:""} + ${this.request_body.description?B`
    ${Et(Ve(this.request_body.description))}
    `:""} ${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose")?B`
    @@ -3123,7 +3125,7 @@ pre[class*="language-"] { ${t} ${r}`}
    - `}formDataParamAsObjectTemplate(e,t,r){var n;const a=Ft(t,{}),o=Ut(t,"json",t.examples,t.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);return B` + `}formDataParamAsObjectTemplate(e,t,r){var n;const a=Ut(t,{}),o=qt(t,"json",t.examples,t.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);return B`
    {e.classList.remove("active")})),i.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> @@ -3155,7 +3157,7 @@ pre[class*="language-"] { >
    `}
    - `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){var a,o;const i=e.properties[r];if(i.readOnly)continue;const s=i.examples||i.example||"",l=i.type,c=Ot(i),p="read focused".includes(this.renderStyle)?"200px":"160px",d=Tt(c.examples||c.example,c.type);n.push(B` + `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){var a,o;const i=e.properties[r];if(i.readOnly)continue;const s=i.examples||i.example||"",l=i.type,c=Pt(i),p="read focused".includes(this.renderStyle)?"200px":"160px",d=jt(c.examples||c.example,c.type);n.push(B`
    @@ -3205,7 +3207,7 @@ pre[class*="language-"] { data-pname = "${r}" data-example = "${Array.isArray(s)?s[0]:s}" data-array = "false" - @input = ${e=>{const t=this.getRequestPanel(e);Gt.call(this,t)}} + @input = ${e=>{const t=this.getRequestPanel(e);Yt.call(this,t)}} />`:""} `}`} @@ -3222,7 +3224,7 @@ pre[class*="language-"] { ${e} `}`))} @@ -3233,7 +3235,7 @@ pre[class*="language-"] { - ${Et(Ze(i.description||""))} + ${Et(Ve(i.description||""))} ${this.exampleListTemplate.call(this,r,c.type,d.exampleList)} @@ -3251,13 +3253,14 @@ pre[class*="language-"] { .textContent = "${r}" style="width:100%" > - ${e.description?B`${Et(Ze(e.description))}`:""} + ${e.description?B`${Et(Ve(e.description))}`:""} `}codeExampleTemplate(e="flex"){return B`
    - -
    ${Et(Ke().highlight(this.codeExample.trim().replace(/\\$/,""),Ke().languages[this.selectedLanguage],this.selectedLanguage))}
    + +
    ${Et(Ge().highlight(this.codeExample.trim().replace(/\\$/,""),Ge().languages[this.selectedLanguage],this.selectedLanguage))}
    - `}apiResponseTabTemplate(){let e="",t="";if(!this.responseIsBlob)if(this.responseHeaders.includes("application/x-ndjson")){e="json";const r=this.responseText.split("\n").map((t=>Ke().highlight(t,Ke().languages[e],e))).join("\n");t=B`${Et(r)}`}else this.responseHeaders.includes("json")?(e="json",t=B`${Et(Ke().highlight(this.responseText,Ke().languages[e],e))}`):this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?(e="html",t=B`${Et(Ke().highlight(this.responseText,Ke().languages[e],e))}`):(e="text",t=B`${this.responseText}`);return B` + `}apiResponseTabTemplate(){let e="",t="";if(!this.responseIsBlob)if(this.responseHeaders.includes("application/x-ndjson")){e="json";const r=this.responseText.split("\n").map((t=>Ge().highlight(t,Ge().languages[e],e))).join("\n");t=B`${Et(r)}`}else this.responseHeaders.includes("json")?(e="json",t=B`${Et(Ge().highlight(this.responseText,Ge().languages[e],e))}`):this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?(e="html",t=B`${Et(Ge().highlight(this.responseText,Ge().languages[e],e))}`):(e="text",t=B`${this.responseText}`);return B` +
    ${this.codeExampleTemplate("flex")} @@ -3276,7 +3279,7 @@ pre[class*="language-"] {
    `:B` ${this.responseText?B`
    - +
    ${t}
    `:""}`}
    @@ -3294,7 +3297,7 @@ pre[class*="language-"] {
    `:""}
    - `;if(this.resultLoad){const e=this.renderRoot.host.shadowRoot.children[0];Gt.call(this,e.target?e.target:e)}else this.updateComplete.then((()=>{const e=this.renderRoot.host.shadowRoot.children[0];Gt.call(this,e.target?e.target:e)})),this.resultLoad=!0;return B` + `;if(this.resultLoad){const e=this.renderRoot.host.shadowRoot.children[0];Yt.call(this,e.target?e.target:e)}else this.updateComplete.then((()=>{const e=this.renderRoot.host.shadowRoot.children[0];Yt.call(this,e.target?e.target:e)})),this.resultLoad=!0;return B`
    @@ -3318,7 +3321,7 @@ pre[class*="language-"] { -->
    - `}async onFillRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)}))}async onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.value=""}))}async onTryClick(e){const t=e.target?e.target:e,{fetchUrl:r,fetchOptions:n,reqHeaders:a}=Gt.call(this,t),o=`/api/proxy/${encodeURIComponent(r)}`;this.responseUrl="",this.responseHeaders=[],this.responseStatus="success",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),this.fetchCredentials&&(n.credentials=this.fetchCredentials);const i=new AbortController,{signal:s}=i;n.headers=a;const l={url:o,...n};this.dispatchEvent(new CustomEvent("before-try",{bubbles:!0,composed:!0,detail:{request:l,controller:i}}));const c={method:l.method,headers:l.headers,credentials:l.credentials,body:l.body},p=new Request(l.url,c);let d,u;try{let e,r,n;t.disabled=!0,this.responseText="",this.responseMessage="",this.requestUpdate();const a=performance.now();d=await fetch(p,{signal:s});const o=performance.now();u=d.clone(),t.disabled=!1,this.responseMessage=B`${d.statusText?`${d.statusText}:${d.status}`:d.status}
    Took ${Math.round(o-a)} milliseconds
    `,this.responseUrl=d.url;const i={};d.headers.forEach(((e,t)=>{i[t]=e,this.responseHeaders=`${this.responseHeaders}${t}: ${e}\n`}));const l=d.headers.get("content-type");if(0===(await d.clone().text()).length)this.responseText="";else if(l){if("application/x-ndjson"===l)this.responseText=await d.text();else if(l.includes("json"))if(/charset=[^"']+/.test(l)){const e=l.split("charset=")[1],t=await d.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch{n=new TextDecoder("utf-8").decode(t)}try{r=JSON.parse(n),this.responseText=JSON.stringify(r,null,2)}catch{this.responseText=n}}else r=await d.json(),this.responseText=JSON.stringify(r,null,2);else/^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$|^application\/vnd\./.test(l)?(this.responseIsBlob=!0,this.responseBlobType="download"):/^audio|^image|^video/.test(l)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await d.text(),l.includes("xml")?this.responseText=wr()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){const t=d.headers.get("content-disposition");this.respContentDisposition=t?t.split("filename=")[1].replace(/"|'/g,""):"filename",e=await d.blob(),this.responseBlobUrl=URL.createObjectURL(e)}}else n=await d.text(),this.responseText=n;this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{request:p,response:u,responseHeaders:i,responseBody:r||n||e,responseStatus:u.ok}}))}catch(e){t.disabled=!1,"AbortError"===e.name?(this.dispatchEvent(new CustomEvent("request-aborted",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage="Request Aborted",this.responseText="Request Aborted"):(this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage=`${e.message} (CORS or Network Issue)`)}this.requestUpdate()}getRequestPanel(e){return e.target.closest(".request-panel")}onAddRemoveFileInput(e,t,r){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const n=e.target.closest(".file-input-container"),a=document.createElement("div");a.setAttribute("class","input-set row");const o=document.createElement("input");o.type="file",o.style="width:200px; margin-top:2px;",o.setAttribute("data-pname",t),o.setAttribute("data-ptype",r.includes("form-urlencode")?"form-urlencode":"form-data"),o.setAttribute("data-array","false"),o.setAttribute("data-file-array","true");const i=document.createElement("button");i.setAttribute("class","file-input-remove-btn"),i.innerHTML="✕",a.appendChild(o),a.appendChild(i),n.insertBefore(a,e.target)}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.codeExample="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});customElements.get("schema-table")||customElements.define("schema-table",class extends se{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Pr,c` + `}async onFillRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)}))}async onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.value=""}))}async onTryClick(e){const t=e.target?e.target:e,{fetchUrl:r,fetchOptions:n,reqHeaders:a,reqCookie:o}=Yt.call(this,t),i=`/api/proxy/${encodeURIComponent(r)}`;this.responseUrl="",this.responseHeaders=[],this.responseStatus="success",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),this.fetchCredentials&&(n.credentials=this.fetchCredentials);const s=new AbortController,{signal:l}=s;n.headers=a;const c={url:i,...n};this.dispatchEvent(new CustomEvent("before-try",{bubbles:!0,composed:!0,detail:{request:c,controller:s}}));const p={method:c.method,headers:c.headers,credentials:c.credentials,body:c.body};o.forEach((e=>{document.cookie=`${e.name}=${e.value}; path=/`}));const d=new Request(c.url,p);let u,h;try{let e,r,n;t.disabled=!0,this.responseText="",this.responseMessage="",this.requestUpdate();const a=performance.now();u=await fetch(d,{signal:l});const o=performance.now();h=u.clone(),t.disabled=!1,this.responseMessage=B`${u.statusText?`${u.statusText}:${u.status}`:u.status}
    Took ${Math.round(o-a)} milliseconds
    `,this.responseUrl=u.url;const i={};u.headers.forEach(((e,t)=>{i[t]=e,this.responseHeaders=`${this.responseHeaders}${t}: ${e}\n`}));const s=u.headers.get("content-type");if(0===(await u.clone().text()).length)this.responseText="";else if(s){if("application/x-ndjson"===s)this.responseText=await u.text();else if(s.includes("json"))if(/charset=[^"']+/.test(s)){const e=s.split("charset=")[1],t=await u.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch{n=new TextDecoder("utf-8").decode(t)}try{r=JSON.parse(n),this.responseText=JSON.stringify(r,null,2)}catch{this.responseText=n}}else r=await u.json(),this.responseText=JSON.stringify(r,null,2);else/^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$|^application\/vnd\./.test(s)?(this.responseIsBlob=!0,this.responseBlobType="download"):/^audio|^image|^video/.test(s)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await u.text(),s.includes("xml")?this.responseText=Ar()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){const t=u.headers.get("content-disposition");this.respContentDisposition=t?t.split("filename=")[1].replace(/"|'/g,""):"filename",e=await u.blob(),this.responseBlobUrl=URL.createObjectURL(e)}}else n=await u.text(),this.responseText=n;this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{request:d,response:h,responseHeaders:i,responseBody:r||n||e,responseStatus:h.ok}}))}catch(e){t.disabled=!1,"AbortError"===e.name?(this.dispatchEvent(new CustomEvent("request-aborted",{bubbles:!0,composed:!0,detail:{err:e,request:d}})),this.responseMessage="Request Aborted",this.responseText="Request Aborted"):(this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{err:e,request:d}})),this.responseMessage=`${e.message} (CORS or Network Issue)`)}this.requestUpdate(),o.forEach((e=>{document.cookie=`${e.name}=; path=/`}))}getRequestPanel(e){return e.target.closest(".request-panel")}onAddRemoveFileInput(e,t,r){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const n=e.target.closest(".file-input-container"),a=document.createElement("div");a.setAttribute("class","input-set row");const o=document.createElement("input");o.type="file",o.style="width:200px; margin-top:2px;",o.setAttribute("data-pname",t),o.setAttribute("data-ptype",r.includes("form-urlencode")?"form-urlencode":"form-data"),o.setAttribute("data-array","false"),o.setAttribute("data-file-array","true");const i=document.createElement("button");i.setAttribute("class","file-input-remove-btn"),i.innerHTML="✕",a.appendChild(o),a.appendChild(i),n.insertBefore(a,e.target)}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.codeExample="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});customElements.get("schema-table")||customElements.define("schema-table",class extends se{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Ir,c` .table { font-size: var(--font-size-small); text-align: left; @@ -3393,15 +3396,20 @@ pre[class*="language-"] { border-radius:2px; border: 1px solid transparent; display: inline-block; - margin-left: -16px; - color:var(--primary-color); + color:var(--vtex-pink); cursor:pointer; font-size: calc(var(--font-size-small) + 4px); font-family: var(--font-mono); background-clip: border-box; } .obj-toggle:hover { - border-color: var(--primary-color); + border-color: var(--vtex-pink); + } + .obj-toggle.expanded::after { + content: '-'; + } + .obj-toggle.collapsed::after { + content: '+'; } .tr.expanded + .object-body { display:block; @@ -3419,7 +3427,7 @@ pre[class*="language-"] {
    `:""}
    - ${null!==(r=this.data)&&void 0!==r&&r["::description"]?B` ${Et(Ze(this.data["::description"]||""))}`:""} + ${null!==(r=this.data)&&void 0!==r&&r["::description"]?B` ${Et(Ve(this.data["::description"]||""))}`:""} ${this.data?B`
    Field
    @@ -3437,15 +3445,13 @@ pre[class*="language-"] {
    ${"array"===t?B` [ ] `:"object"===t?B` { } `:B` schema undefined `}
    -
    ${Et(Ze(a))||""}
    -
    `;const p=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?o:o+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?i:i+1,u=10*d;if(0===Object.keys(e).length)return B`${n}`;let h="",f="",m=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))h=n.replace("::","").replace("~"," "),m=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");h=e[1],f=e[2]}else h=n;let g="";if("object"===e["::type"]?g="array"===t?"array of object":e["::dataTypeLabel"]||e["::type"]:"array"===e["::type"]&&(g="array"===t?"array of array "+("object"!==r?`of ${r}`:""):e["::dataTypeLabel"]||e["::type"]),"object"==typeof e)return B` +
    ${Et(Ve(a))||""}
    +
    `;const p=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?o:o+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?i:i+1,u=10*d;if(0===Object.keys(e).length)return B`${n}`;let h="",f="",m=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))h=n.replace("::","").replace("~"," "),a="Click + to expand or - to hide each valid schema.",m=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");e[2]?(h=e[2],f=""):(h=e[1],f=e[2])}else h=n;let g="";if("object"===e["::type"]?g="array"===t?"array of object":e["::dataTypeLabel"]||e["::type"]:"array"===e["::type"]&&(g="array"===t?"array of array "+("object"!==r?`of ${r}`:""):e["::dataTypeLabel"]||e["::type"]),"object"==typeof e)return B` ${p>=0&&n?B`
    ${h||f?B` - - ${o`:""} + `:""} ${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||n.startsWith("::OPTION")?B`${h}${f}`:h.endsWith("*")?B`${e["::deprecated"]?"❌":""} ${h.substring(0,h.length-1)}*`:B`${e["::deprecated"]?"❌":""} ${"::props"===h?"":h}`} ${"xxx-of"===e["::type"]&&"array"===t?B`ARRAY`:""}
    @@ -3453,7 +3459,7 @@ pre[class*="language-"] { ${(e["::type"]||"").includes("xxx-of")?"":g} ${"readonly"===e["::readwrite"]?" 🆁":"writeonly"===e["::readwrite"]?" 🆆":""}
    -
    ${Et(Ze(a||""))}
    +
    ${Et(Ve(a||""))}
    `:B` ${"array"===e["::type"]&&"array"===t?B`
    @@ -3486,7 +3492,7 @@ pre[class*="language-"] {
    ${B` ${k?B`Deprecated`:""} - ${Et(Ze("array"===t?`${O} ${a}`:E?`${O} ${E}: ${S}`:`${O} ${S}`))} + ${Et(Ve("array"===t?`${O} ${a}`:E?`${O} ${E}: ${S}`:`${O} ${S}`))} `} ${b?B`
    Constraints: ${b}
    `:""} ${x?B`
    Default: ${x}
    `:""} @@ -3494,7 +3500,7 @@ pre[class*="language-"] { ${$?B`
    Pattern: ${$}
    `:""}
    - `}handleAllEvents(e){if(e.target.classList.contains("obj-toggle"))this.toggleObjectExpand(e);else if(e.target.classList.contains("schema-multiline-toggle"))this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true";else if(e.target.classList.contains("descr-expand-toggle")){const t=e.target.closest(".tr");t&&(t.classList.toggle("expanded-descr"),t.style.maxHeight=t.scrollHeight)}}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.add("collapsed"),t.classList.remove("expanded"),e.target.innerText="+"):(t.classList.remove("collapsed"),t.classList.add("expanded"),e.target.innerText="-")}});customElements.get("api-response")||customElements.define("api-response",class extends se{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="schema"}static get properties(){return{callback:{type:String},webhook:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String,attribute:"selected-mime-type"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static get styles(){return[Ye,Xe,rt,Qe,Je,$r,c` + `}handleAllEvents(e){e.target.classList.contains("obj-toggle")&&this.toggleObjectExpand(e)}toggleObjectExpand(e){const t=e.target,r=t.closest(".tr");r.classList.contains("expanded")?(r.classList.add("collapsed"),r.classList.remove("expanded"),t.classList.add("collapsed"),t.classList.remove("expanded")):(r.classList.remove("collapsed"),r.classList.add("expanded"),t.classList.add("expanded"),t.classList.remove("collapsed"))}});customElements.get("api-response")||customElements.define("api-response",class extends se{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="schema"}static get properties(){return{callback:{type:String},webhook:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String,attribute:"selected-mime-type"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static get styles(){return[Ye,Xe,rt,Qe,Je,_r,c` :where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); } :where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); } .response-panel { @@ -3606,7 +3612,7 @@ pre[class*="language-"] {
    ${this.responseTemplate()}
    - `}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}getResponseStatusType(e){const t=e.toString();return t.startsWith("1")?"informational":t.startsWith("2")?"success":t.startsWith("3")?"redirection":t.startsWith("4")||t.startsWith("5")?"error":""}responseTemplate(){if(!this.responses)return"";for(const n in this.responses){this.selectedStatus||(this.selectedStatus=n);const a={};for(const r in null===(e=this.responses[n])||void 0===e?void 0:e.content){var e,t;const o=this.responses[n].content[r];this.selectedMimeType||(this.selectedMimeType=r);const i=Ft(o.schema,{}),s=Ut(o.schema,r,o.examples,o.example,"true"!==this.callback&&"true"!==this.webhook,"true"===this.callback||"true"===this.webhook,r.includes("json")?"json":"text");a[r]={description:this.responses[n].description,examples:s,selectedExample:(null===(t=s[0])||void 0===t?void 0:t.exampleId)||"",schemaTree:i}}const o=[];for(const e in null===(r=this.responses[n])||void 0===r?void 0:r.headers){var r;o.push({name:e,...this.responses[n].headers[e]})}this.headersForEachRespStatus[n]=o,this.mimeResponsesForEachStatus[n]=a}return B` + `}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}getResponseStatusType(e){const t=e.toString();return t.startsWith("1")?"informational":t.startsWith("2")?"success":t.startsWith("3")?"redirection":t.startsWith("4")||t.startsWith("5")?"error":""}responseTemplate(){if(!this.responses)return"";for(const n in this.responses){this.selectedStatus||(this.selectedStatus=n);const a={};for(const r in null===(e=this.responses[n])||void 0===e?void 0:e.content){var e,t;const o=this.responses[n].content[r];this.selectedMimeType||(this.selectedMimeType=r);const i=Ut(o.schema,{}),s=qt(o.schema,r,o.examples,o.example,"true"!==this.callback&&"true"!==this.webhook,"true"===this.callback||"true"===this.webhook,r.includes("json")?"json":"text");a[r]={description:this.responses[n].description,examples:s,selectedExample:(null===(t=s[0])||void 0===t?void 0:t.exampleId)||"",schemaTree:i}}const o=[];for(const e in null===(r=this.responses[n])||void 0===r?void 0:r.headers){var r;o.push({name:e,...this.responses[n].headers[e]})}this.headersForEachRespStatus[n]=o,this.mimeResponsesForEachStatus[n]=a}return B` ${Object.keys(this.responses).length>=1?B`
    ${Object.keys(this.responses).map((e=>B` ${"$$ref"===e?"":B` @@ -3650,7 +3656,7 @@ pre[class*="language-"] {
    - ${Et(Ze((null===(t=this.responses[e])||void 0===t?void 0:t.description)||""))} + ${Et(Ve((null===(t=this.responses[e])||void 0===t?void 0:t.description)||""))} ${this.headersForEachRespStatus[e]&&(null===(r=this.headersForEachRespStatus[e])||void 0===r?void 0:r.length)>0?B`${this.responseHeaderListTemplate(this.headersForEachRespStatus[e])}`:""}
    ${0===Object.keys(this.mimeResponsesForEachStatus[e]).length?"":B` @@ -3686,7 +3692,7 @@ pre[class*="language-"] { `:""} ${null!==(n=e.description)&&void 0!==n&&n.type?B` -
    ${Et(Ze(e.description||""))}
    +
    ${Et(Ve(e.description||""))}
    `:""} ${null!==(a=e.schema)&&void 0!==a&&a.example?B` @@ -3702,7 +3708,7 @@ pre[class*="language-"] { ${1===e.examples.length?B` ${"json"===e.examples[0].exampleFormat?B` ${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?B`
    ${e.examples[0].exampleSummary}
    `:""} - ${e.examples[0].exampleDescription?B`
    ${Et(Ze(e.examples[0].exampleDescription||""))}
    `:""} + ${e.examples[0].exampleDescription?B`
    ${Et(Ve(e.examples[0].exampleDescription||""))}
    `:""} `:B` ${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?B`
    ${e.examples[0].exampleSummary}
    `:""} - ${e.examples[0].exampleDescription?B`
    ${Et(Ze(e.examples[0].exampleDescription||""))}
    `:""} + ${e.examples[0].exampleDescription?B`
    ${Et(Ve(e.examples[0].exampleDescription||""))}
    `:""}
    ${e.examples[0].exampleValue}
    `}`:B` @@ -3723,7 +3729,7 @@ pre[class*="language-"] { ${e.examples.map((t=>B`
    ${t.exampleSummary&&t.exampleSummary.length>80?B`
    ${t.exampleSummary}
    `:""} - ${t.exampleDescription?B`
    ${Et(Ze(t.exampleDescription||""))}
    `:""} + ${t.exampleDescription?B`
    ${Et(Ve(t.exampleDescription||""))}
    `:""} ${"json"===t.exampleFormat?B` `}`:B`
     Schema not found
    - `}});class Vr extends se{constructor(e,t){super(),this.id=e,this.content=t,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(this.content),this.copied=!0}onTextClick(){navigator.clipboard.writeText(this.content),this.showToast=!0}onMouseover(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}render(){return B` + `}});class Jr extends se{constructor(e,t){super(),this.id=e,this.content=t,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(this.content),this.copied=!0}onTextClick(){navigator.clipboard.writeText(this.content),this.showToast=!0}onMouseover(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}render(){return B`
    ${this.content}
    @@ -3844,7 +3850,145 @@ pre[class*="language-"] { border-radius: 2px; background-color: var(--border-color); } - `]}}function Zr(e,t,r,n,a){var o;let i="";t&&(i+=`${Ze(t)}\n\n`);try{const e=JSON.parse(decodeURIComponent(n));switch(r){case"code":i+=Ze(e.codes.reduce(((e,t)=>{switch(t.language){case"jsonc":t.language="json";break;case"curl":t.language="curl"}return`${e}\n\`\`\`${t.language}\n${decodeURIComponent(t.code)}\n\`\`\`\n`}),""));break;case"html":case"embed":i+=`\n\n${e.html}\n\n`;break;case"image":i+=e.images.reduce(((e,t)=>`${e}\n\n${t.image[1]}`),"");break;case"api-header":i+=Ze(`## ${e.title}`);break;case"callout":i+=`

    ${null!==(o=e.title)&&void 0!==o?o:""}

    ${Ze(e.body)}
    `;break;case"parameters":{const{rows:t,cols:r}=e;let n="\n\n";for(let t=0;t")}`:n+="|"}n+="|\n",i+=Ze(n)}break;default:i+=""}a&&(i+=Ze(a))}catch(e){i+=`\n\n

    Work in progress

    [block:${r}]${n}[/block]
    \n\n`,a&&(i+=Ze(a))}return i}function Gr(e){if(!e)return"";return e.replace(/(?[^[\]]*)\[block:(?[^\]]*)\](?.+?)\[\/block\](?[^[\]]*)/gms,Zr)}function Kr(e){return e.startsWith("

    ℹ️")?`

    ${e.replace("ℹ️","").trim()}
    `:e.startsWith("

    📘")?`

    ${e.replace("📘","").trim()}
    `:e.startsWith("

    ⚠️ ")?`

    ${e.replace("⚠️","").trim()}
    `:e.startsWith("

    ❗ ")?`

    ${e.replace("❗","").trim()}
    `:`
    ${e}
    `}function Yr(e){const t=new Ze.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function Jr(e,t=""){var r,n,a;const o=new Set;for(const t in e.responses)for(const r in null===(i=e.responses[t])||void 0===i?void 0:i.content){var i;o.add(r.trim())}const s=[...o].join(", "),l=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],c=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));c&&l.push(c);const p=`https://developers.vtex.com/docs/api-reference/${this.specUrl.split("/")[3]}`;Ze.Renderer.prototype.blockquote=Kr;const d=e.xCodeSamples?gr.call(this,e.xCodeSamples):"";return e.description=Gr(e.description),B` + `]}}function Xr(e,t,r,n,a){var o;let i="";t&&(i+=`${Ve(t)}\n\n`);try{const e=JSON.parse(decodeURIComponent(n));switch(r){case"code":i+=Ve(e.codes.reduce(((e,t)=>{switch(t.language){case"jsonc":t.language="json";break;case"curl":t.language="curl"}return`${e}\n\`\`\`${t.language}\n${decodeURIComponent(t.code)}\n\`\`\`\n`}),""));break;case"html":case"embed":i+=`\n\n${e.html}\n\n`;break;case"image":i+=e.images.reduce(((e,t)=>`${e}\n\n${t.image[1]}`),"");break;case"api-header":i+=Ve(`## ${e.title}`);break;case"callout":i+=`

    ${null!==(o=e.title)&&void 0!==o?o:""}

    ${Ve(e.body)}
    `;break;case"parameters":{const{rows:t,cols:r}=e;let n="\n\n";for(let t=0;t")}`:n+="|"}n+="|\n",i+=Ve(n)}break;default:i+=""}a&&(i+=Ve(a))}catch(e){i+=`\n\n

    Work in progress

    [block:${r}]${n}[/block]
    \n\n`,a&&(i+=Ve(a))}return i}function Qr(e){if(!e)return"";return e.replace(/(?[^[\]]*)\[block:(?[^\]]*)\](?.+?)\[\/block\](?[^[\]]*)/gms,Xr)}!function(e,t,r){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Jr,"properties",{id:{type:String},content:{type:String},copied:{type:Boolean},showButton:{type:Boolean},showToast:{type:Boolean}}),customElements.get("content-copy-button")||customElements.define("content-copy-button",Jr);const en={info:"#8C929D",warning:"#FFB100",danger:"#DC5A41"};function tn(e){return`${"info"===e?'':''}`}function rn(e){return e.startsWith("

    ℹ️")?`

    ${tn("info")}${e.replace("ℹ️","").trim()}
    `:e.startsWith("

    📘")?`

    ${tn("info")}${e.replace("📘","").trim()}
    `:e.startsWith("

    ⚠️ ")?`

    ${tn("warning")}${e.replace("⚠️","").trim()}
    `:e.startsWith("

    ❗ ")?`

    ${tn("danger")}${e.replace("❗","").trim()}
    `:`
    ${tn("info")}${e}
    `}function nn(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:16,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:16;return B` +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + `}function an(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:16,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:16;return B` +
    + + + + + + + + + + + + +
    + `}function on(e){const t=new Ve.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function sn(e,t=""){var r,n,a;const o=new Set;for(const t in e.responses)for(const r in null===(i=e.responses[t])||void 0===i?void 0:i.content){var i;o.add(r.trim())}const s=[...o].join(", "),l=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],c=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));c&&l.push(c);const p=`https://developers.vtex.com/docs/api-reference/${this.specUrl.split("/")[3]}`;Ve.Renderer.prototype.blockquote=rn;const d=e.xCodeSamples?wr.call(this,e.xCodeSamples):"";return e.description=Qr(e.description),B` ${"read"===this.renderStyle?B`
    `:""}
    @@ -3855,14 +3999,32 @@ pre[class*="language-"] { ${e.xBadges.map((e=>B`${e.label}`))}
    `:""} -
    +
    ${"focused"===this.renderStyle&&"General ⦂"!==t?B`

    ${this.resolvedSpec.info.title} › ${t}

    `:""} - ${this.specUrl&&this.allowSpecFileDownload?B`
    - - -
    `:""} +
    +
    + ${this.specUrl&&this.allowSpecFileDownload?B`
    + + +
    `:""} + ${this.postmanUrl?B`
    + + +
    `:""}

    ${e.shortSummary||`${e.method.toUpperCase()} ${e.path}`}

    ${e.isWebhook?B` WEBHOOK `:B` @@ -3871,13 +4033,13 @@ pre[class*="language-"] { ${e.method}
    - +
    `} `} - ${e.description?B`
    ${Et(Ze(e.description))}
    `:""} - + ${e.description?B`
    ${Et(Ve(e.description))}
    `:""} + ${d}
    - ${e.callbacks?yr.call(this,e.callbacks):""} + ${e.callbacks?$r.call(this,e.callbacks):""}
    - `}function Xr(){return this.resolvedSpec?B` + `}function ln(){return this.resolvedSpec?B` ${this.resolvedSpec.tags.map((e=>B`
    ${e.name}
    - ${Et(`\n
    \n ${Ze(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:Yr(e.elementId)}:void 0)}\n
    `)} + ${Et(`\n
    \n ${Ve(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:on(e.elementId)}:void 0)}\n
    `)}
    - ${e.paths.map((e=>Jr.call(this,e)))} + ${e.paths.map((e=>sn.call(this,e)))}
    `))} -`:""}function Qr(e){return B` +`:""}function cn(e){return B`
    ${e.name} Schema
    ${"table"===this.schemaStyle?B` `:B` `} -
    `}function en(e,t){return-1!==e.id.indexOf("schemas-")?Qr.call(this,e):B` +
    `}function pn(e,t){return-1!==e.id.indexOf("schemas-")?cn.call(this,e):B`
    ${B` @@ -3983,27 +4146,44 @@ pre[class*="language-"] {
    `:""} `} - `}function tn(){return this.resolvedSpec?B` + `}function dn(){return this.resolvedSpec?B` ${this.resolvedSpec.components.map((e=>B`
    ${e.name}
    - ${Et(`
    ${Ze(e.description?e.description:"")}
    `)} + ${Et(`
    ${Ve(e.description?e.description:"")}
    `)}
    - ${e.subComponents.filter((e=>!1!==e.expanded)).map((t=>en.call(this,t,e.name)))} + ${e.subComponents.filter((e=>!1!==e.expanded)).map((t=>pn.call(this,t,e.name)))}
    `))} -`:""}function rn(){const e=new Ze.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}function nn(){var e,t,r;return this.resolvedSpec.info.description=Gr(this.resolvedSpec.info.description),Ze.Renderer.prototype.blockquote=Kr,B` +`:""}function un(){const e=new Ve.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}function hn(){var e,t,r;return this.resolvedSpec.info.description=Qr(this.resolvedSpec.info.description),Ve.Renderer.prototype.blockquote=rn,B`
    ${null!==(e=this.resolvedSpec)&&void 0!==e&&e.info?B` - ${this.specUrl&&"true"===this.allowSpecFileDownload?B` -
    - - -
    `:""} +
    + ${this.specUrl&&this.allowSpecFileDownload?B`
    + + +
    `:""} + ${this.postmanUrl?B`
    + + +
    `:""} +
    ${this.resolvedSpec.info.title} ${this.resolvedSpec.info.version?B` @@ -4022,11 +4202,11 @@ pre[class*="language-"] {
    - ${this.resolvedSpec.info.description?B`${Et(`\n
    \n ${Ze(this.resolvedSpec.info.description,"true"===this.infoDescriptionHeadingsInNavBar?{renderer:rn()}:void 0)}\n
    `)}`:""} + ${this.resolvedSpec.info.description?B`${Et(`\n
    \n ${Ve(this.resolvedSpec.info.description,"true"===this.infoDescriptionHeadingsInNavBar?{renderer:un()}:void 0)}\n
    `)}`:""}
    `:""}
    - `}function an(e,t="toggle"){const r=null==e?void 0:e.closest(".nav-bar-tag-and-paths"),n=null==r?void 0:r.querySelector(".nav-bar-paths-under-tag");if(r){const e=r.classList.contains("expanded");!e||"toggle"!==t&&"collapse"!==t?e||"toggle"!==t&&"expand"!==t||(r.classList.replace("collapsed","expanded"),n.style.maxHeight=`${n.scrollHeight}px`):(n.style.maxHeight=0,r.classList.replace("expanded","collapsed"))}}function on(e){var t,r,n,a;if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const o=e.target;e.stopPropagation(),"navigate"===(null===(t=o.dataset)||void 0===t?void 0:t.action)?this.scrollToEventTarget(e,!1):"expand-all"===(null===(r=o.dataset)||void 0===r?void 0:r.action)||"collapse-all"===(null===(n=o.dataset)||void 0===n?void 0:n.action)?function(e,t="expand-all"){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=[...e.target.closest(".nav-scroll").querySelectorAll(".nav-bar-tag-and-paths")];"expand-all"===t?r.forEach((e=>{const t=e.querySelector(".nav-bar-paths-under-tag");e.classList.replace("collapsed","expanded"),t.style.maxHeight=`${null==t?void 0:t.scrollHeight}px`})):r.forEach((e=>{e.classList.replace("expanded","collapsed"),e.querySelector(".nav-bar-paths-under-tag").style.maxHeight=0}))}(e,o.dataset.action):"expand-collapse-tag"===(null===(a=o.dataset)||void 0===a?void 0:a.action)&&an(o,"toggle")}function sn(){var e,t,r,n;return!this.resolvedSpec||this.resolvedSpec.specLoadError?B` + `}function fn(e,t="toggle"){const r=null==e?void 0:e.closest(".nav-bar-tag-and-paths"),n=null==r?void 0:r.querySelector(".nav-bar-paths-under-tag");if(r){const e=r.classList.contains("expanded");!e||"toggle"!==t&&"collapse"!==t?e||"toggle"!==t&&"expand"!==t||(r.classList.replace("collapsed","expanded"),n.style.maxHeight=`${n.scrollHeight}px`):(n.style.maxHeight=0,r.classList.replace("expanded","collapsed"))}}function mn(e){var t,r,n,a;if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const o=e.target;e.stopPropagation(),"navigate"===(null===(t=o.dataset)||void 0===t?void 0:t.action)?this.scrollToEventTarget(e,!1):"expand-all"===(null===(r=o.dataset)||void 0===r?void 0:r.action)||"collapse-all"===(null===(n=o.dataset)||void 0===n?void 0:n.action)?function(e,t="expand-all"){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=[...e.target.closest(".nav-scroll").querySelectorAll(".nav-bar-tag-and-paths")];"expand-all"===t?r.forEach((e=>{const t=e.querySelector(".nav-bar-paths-under-tag");e.classList.replace("collapsed","expanded"),t.style.maxHeight=`${null==t?void 0:t.scrollHeight}px`})):r.forEach((e=>{e.classList.replace("expanded","collapsed"),e.querySelector(".nav-bar-paths-under-tag").style.maxHeight=0}))}(e,o.dataset.action):"expand-collapse-tag"===(null===(a=o.dataset)||void 0===a?void 0:a.action)&&fn(o,"toggle")}function gn(){var e,t,r,n;return!this.resolvedSpec||this.resolvedSpec.specLoadError?B` @@ -4059,7 +4239,7 @@ pre[class*="language-"] { `} `} - ${B` -`}function ln(e){const t=new Ze.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function cn(e){return B` +`}function yn(e){const t=new Ve.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function vn(e){return B`
    ${e} -
    `}function pn(){var e;if("true"===this.showInfo)return cn(nn.call(this));const t=this.resolvedSpec.tags[0],r=null===(e=this.resolvedSpec.tags[0])||void 0===e?void 0:e.paths[0];return cn(t&&r?Jr.call(this,r,t.name):"")}function dn(e){return B` + `}function bn(){var e;if("true"===this.showInfo)return vn(hn.call(this));const t=this.resolvedSpec.tags[0],r=null===(e=this.resolvedSpec.tags[0])||void 0===e?void 0:e.paths[0];return vn(t&&r?sn.call(this,r,t.name):"")}function xn(e){return B`

    ${e.name}

    ${"show-description"===this.onNavTagClick&&e.description?B`
    - ${Et(`\n
    \n ${Ze(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:ln(e.elementId)}:void 0)}\n
    `)} + ${Et(`\n
    \n ${Ve(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:yn(e.elementId)}:void 0)}\n
    `)}
    `:""} - `}function un(){if(!this.focusedElementId||!this.resolvedSpec)return;const e=this.focusedElementId;let t,r=null,n=null,a=0;if(e.startsWith("overview")&&"true"===this.showInfo)t=nn.call(this);else if("auth"===e&&"true"===this.allowAuthentication)t=hr.call(this);else if("servers"===e&&"true"===this.allowServerSelection)t=Ur.call(this);else if("operations-top"===e)t=B` + `}function wn(){if(!this.focusedElementId||!this.resolvedSpec)return;const e=this.focusedElementId;let t,r=null,n=null,a=0;if(e.startsWith("overview")&&"true"===this.showInfo)t=hn.call(this);else if("auth"===e&&"true"===this.allowAuthentication)t=vr.call(this);else if("servers"===e&&"true"===this.allowServerSelection)t=Wr.call(this);else if("operations-top"===e)t=B`
    -
    `;else if(e.startsWith("cmp--")&&"true"===this.showComponents)t=tn.call(this);else if(e.startsWith("tag--")){const r=e.indexOf("--",4)>0?e.substring(0,e.indexOf("--",5)):e;n=this.resolvedSpec.tags.find((e=>e.elementId===r)),t=n?cn.call(this,dn.call(this,n)):pn.call(this)}else{for(a=0;a`${t.elementId}`===e)),!r);a+=1);if(r){an(this.shadowRoot.getElementById(`link-${e}`),"expand"),t=cn.call(this,Jr.call(this,r,n.name||"",n.description||""))}else t=pn.call(this)}return t}function hn(e){if(e.expanded)e.expanded=!1,"true"===this.updateRoute&&this.replaceHistoryState("");else if(e.expanded=!0,"true"===this.updateRoute){const t=`${this.routePrefix||"#"}${e.elementId}`;window.location.hash!==t&&this.replaceHistoryState(e.elementId)}this.requestUpdate()}function fn(e,t="expand-all"){const r=[...e.querySelectorAll(".section-tag")];"expand-all"===t?r.map((e=>{e.classList.replace("collapsed","expanded")})):r.map((e=>{e.classList.replace("expanded","collapsed")}))}function mn(e,t="expand-all"){fn.call(this,e.target.closest(".operations-root"),t)}function gn(e,t=!1){return B` - + `;else if(e.startsWith("cmp--")&&"true"===this.showComponents)t=dn.call(this);else if(e.startsWith("tag--")){const r=e.indexOf("--",4)>0?e.substring(0,e.indexOf("--",5)):e;n=this.resolvedSpec.tags.find((e=>e.elementId===r)),t=n?vn.call(this,xn.call(this,n)):bn.call(this)}else{for(a=0;a`${t.elementId}`===e)),!r);a+=1);if(r){r.servers&&r.servers.length>0&&Br.call(this,r.servers[0].url);fn(this.shadowRoot.getElementById(`link-${e}`),"expand"),t=vn.call(this,sn.call(this,r,n.name||"",n.description||""))}else t=bn.call(this)}return t}function $n(e){if(e.expanded)e.expanded=!1,"true"===this.updateRoute&&this.replaceHistoryState("");else if(e.expanded=!0,"true"===this.updateRoute){const t=`${this.routePrefix||"#"}${e.elementId}`;window.location.hash!==t&&this.replaceHistoryState(e.elementId)}this.requestUpdate()}function Sn(e,t="expand-all"){const r=[...e.querySelectorAll(".section-tag")];"expand-all"===t?r.map((e=>{e.classList.replace("collapsed","expanded")})):r.map((e=>{e.classList.replace("expanded","collapsed")}))}function En(e,t="expand-all"){Sn.call(this,e.target.closest(".operations-root"),t)}function kn(e,t=!1){return B` +
    ${e.method}
    ${e.path} @@ -4203,7 +4383,7 @@ pre[class*="language-"] {
    ${e.summary||e.shortSummary}
    `:""}
    - `}function yn(e){var t;const r=new Set;for(const t in e.responses)for(const a in null===(n=e.responses[t])||void 0===n?void 0:n.content){var n;r.add(a.trim())}const a=[...r].join(", "),o=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],i=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));i&&o.push(i);const s=e.xCodeSamples?gr(e.xCodeSamples):"";return e.description=Gr(e.description),B` + `}function An(e){var t;const r=new Set;for(const t in e.responses)for(const a in null===(n=e.responses[t])||void 0===n?void 0:n.content){var n;r.add(a.trim())}const a=[...r].join(", "),o=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],i=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));i&&o.push(i);const s=e.xCodeSamples?wr(e.xCodeSamples):"";return e.description=Qr(e.description),B` `}function kn(e=!1,t=!0,r=!0,n=!1){if(!this.resolvedSpec)return"";"true"===this.persistAuth&&ar.call(this);const a={bg1:Sn(this.bgColor)?this.bgColor:"",fg1:Sn(this.textColor)?this.textColor:"",headerColor:Sn(this.headerColor)?this.headerColor:"",primaryColor:Sn(this.primaryColor)?this.primaryColor:"",navBgColor:Sn(this.navBgColor)?this.navBgColor:"",navTextColor:Sn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Sn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Sn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Sn(this.navAccentColor)?this.navAccentColor:"",navAccentTextColor:Sn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + `}function In(e=!1,t=!0,r=!0,n=!1){if(!this.resolvedSpec)return"";"true"===this.persistAuth&&ir.call(this);const a={bg1:Cn(this.bgColor)?this.bgColor:"",fg1:Cn(this.textColor)?this.textColor:"",headerColor:Cn(this.headerColor)?this.headerColor:"",primaryColor:Cn(this.primaryColor)?this.primaryColor:"",navBgColor:Cn(this.navBgColor)?this.navBgColor:"",navTextColor:Cn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Cn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Cn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Cn(this.navAccentColor)?this.navAccentColor:"",navAccentTextColor:Cn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)}
    ${this.resolvedSpec.info.description}
    `:B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)} - ${bn.call(this)} + ${On.call(this)}
    @@ -4699,7 +4879,7 @@ pre[class*="language-"] {
    `:this.resolvedSpec.isSpecLoading?B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)}
    @@ -4707,17 +4887,17 @@ pre[class*="language-"] {
    `:B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)} - ${"false"===this.showHeader?"":bn.call(this)} + ${"false"===this.showHeader?"":On.call(this)} - ${"false"===this.allowAdvancedSearch?"":wn.call(this)} + ${"false"===this.allowAdvancedSearch?"":Tn.call(this)}
    - ${"read"!==this.renderStyle&&"focused"!==this.renderStyle||"true"!==this.showSideNav||!this.resolvedSpec?"":sn.call(this)} + ${"read"!==this.renderStyle&&"focused"!==this.renderStyle||"true"!==this.showSideNav||!this.resolvedSpec?"":gn.call(this)}
    @@ -4726,12 +4906,12 @@ pre[class*="language-"] { ${!0===this.loading?B`
    `:B` ${!0===this.loadFailed?B`
    Unable to load the Spec
    `:B`
    - ${"focused"===this.renderStyle?B`${un.call(this)}`:B` - ${"true"===this.showInfo?nn.call(this):""} + ${"focused"===this.renderStyle?B`${wn.call(this)}`:B` + ${"true"===this.showInfo?hn.call(this):""}
    - ${"read"===this.renderStyle?Xr.call(this):vn.call(this,t,r,n)} + ${"read"===this.renderStyle?ln.call(this):_n.call(this,t,r,n)} `}
    `}`} @@ -4739,7 +4919,7 @@ pre[class*="language-"] {
    - `}var An=r(5108);class _n extends se{constructor(){super(),this.isIntersectionObserverActive=!1}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},updateRoute:{type:String,attribute:"update-route"},routePrefix:{type:String,attribute:"route-prefix"},specUrl:{type:String,attribute:"spec-url"},spec:{type:String,attribute:"spec"},sortTags:{type:String,attribute:"sort-tags"},generateMissingTags:{type:String,attribute:"generate-missing-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},onNavTagClick:{type:String,attribute:"on-nav-tag-click"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},allowAdvancedSearch:{type:String,attribute:"allow-advanced-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showComponents:{type:String,attribute:"show-components"},pageDirection:{type:String,attribute:"page-direction"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},cssFile:{type:String,attribute:"css-file"},cssClasses:{type:String,attribute:"css-classes"},navBgColor:{type:String,attribute:"nav-bg-color"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navAccentTextColor:{type:String,attribute:"nav-accent-text-color"},navActiveItemMarker:{type:String,attribute:"nav-active-item-marker"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},showMethodInNavBar:{type:String,attribute:"show-method-in-nav-bar"},usePathInNavBar:{type:String,attribute:"use-path-in-nav-bar"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean},focusedElementId:{type:String},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + `}var Dn=r(5108);class Ln extends se{constructor(){super(),this.isIntersectionObserverActive=!1}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},updateRoute:{type:String,attribute:"update-route"},routePrefix:{type:String,attribute:"route-prefix"},specUrl:{type:String,attribute:"spec-url"},spec:{type:String,attribute:"spec"},sortTags:{type:String,attribute:"sort-tags"},generateMissingTags:{type:String,attribute:"generate-missing-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},postmanUrl:{type:String,attribute:"postman-url"},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},onNavTagClick:{type:String,attribute:"on-nav-tag-click"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},allowAdvancedSearch:{type:String,attribute:"allow-advanced-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showComponents:{type:String,attribute:"show-components"},pageDirection:{type:String,attribute:"page-direction"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},cssFile:{type:String,attribute:"css-file"},cssClasses:{type:String,attribute:"css-classes"},navBgColor:{type:String,attribute:"nav-bg-color"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navAccentTextColor:{type:String,attribute:"nav-accent-text-color"},navActiveItemMarker:{type:String,attribute:"nav-active-item-marker"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},showMethodInNavBar:{type:String,attribute:"show-method-in-nav-bar"},usePathInNavBar:{type:String,attribute:"use-path-in-nav-bar"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean},focusedElementId:{type:String},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -4999,7 +5179,7 @@ pre[class*="language-"] { .section-gap--read-mode { padding: 24px 80px 12px 80px; } - }`,ot]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0")),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.renderStyle&&"read, view, focused,".includes(`${this.renderStyle},`)||(this.renderStyle="focused"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"default, never,".includes(`${this.schemaHideReadOnly},`)||(this.schemaHideReadOnly="default"),this.schemaHideWriteOnly&&"default, never,".includes(`${this.schemaHideWriteOnly},`)||(this.schemaHideWriteOnly="default"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="400px"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),this.allowAdvancedSearch&&"true, false,".includes(`${this.allowAdvancedSearch},`)||(this.allowAdvancedSearch="true"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.updateRoute&&"true, false,".includes(`${this.updateRoute},`)||(this.updateRoute="true"),this.routePrefix||(this.routePrefix="#"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.generateMissingTags&&"true, false,".includes(`${this.generateMissingTags},`)||(this.generateMissingTags="false"),this.sortEndpointsBy&&"method, path, summary, none,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.onNavTagClick&&"expand-collapse, show-description,".includes(`${this.onNavTagClick},`)||(this.onNavTagClick="expand-collapse"),this.navItemSpacing&&"compact, relaxed, default,".includes(`${this.navItemSpacing},`)||(this.navItemSpacing="default"),this.showMethodInNavBar&&"false, as-plain-text, as-colored-text, as-colored-block,".includes(`${this.showMethodInNavBar},`)||(this.showMethodInNavBar="false"),this.usePathInNavBar&&"true, false,".includes(`${this.usePathInNavBar},`)||(this.usePathInNavBar="false"),this.navActiveItemMarker&&"left-bar, colored-block".includes(`${this.navActiveItemMarker},`)||(this.navActiveItemMarker="left-bar"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.allowServerSelection&&"true, false,".includes(`${this.allowServerSelection},`)||(this.allowServerSelection="true"),this.allowAuthentication&&"true, false,".includes(`${this.allowAuthentication},`)||(this.allowAuthentication="true"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes(`${this.infoDescriptionHeadingsInNavBar},`)||(this.infoDescriptionHeadingsInNavBar="false"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),this.cssFile||(this.cssFile=null),this.cssClasses||(this.cssClasses=""),Ke().languages.node=Ke().languages.javascript,Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)}),window.addEventListener("hashchange",(()=>{this.scrollToPath(this.getElementIDFromURL())}),!0)}disconnectedCallback(){super.disconnectedCallback()}infoDescriptionHeadingRenderer(){const e=new Ze.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}render(){return kn.call(this)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.gotoPath&&!window.location.hash&&this.scrollToPath(this.gotoPath)}),0),"render-style"===e&&"read"===r&&window.setTimeout((()=>{this.observeExpandedContent()}),100),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSpecFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);const t=e.target.files[0],r=new FileReader;r.onload=()=>{try{const e=JSON.parse(r.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){An.error("RapiDoc: Unable to read or parse json")}},r.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value,this.resolvedSpec.tags.forEach((e=>e.paths.filter((t=>{this.matchPaths&&dt(this.matchPaths,t,this.matchType)&&(e.expanded=!0)})))),this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!1,this.matchPaths&&!function(e,t){return t.name.toLowerCase().includes(e.toLowerCase())}(this.matchPaths,e)||(e.expanded=!0)})))),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths="",this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!0}))))}onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0}async onOpenSearchDialog(e){const t=e.detail.querySelector("input");await ct(0),t&&t.focus()}async loadSpec(e){if(e){this.matchPaths="";try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1;const t=await vt.call(this,e,this.spec,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,An.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t),"read"===this.renderStyle&&(await ct(100),this.observeExpandedContent()),this.isIntersectionObserverActive=!0;const r=this.getElementIDFromURL();if(r)"view"===this.renderStyle?this.expandAndGotoOperation(r,!0,!0):this.scrollToPath(r);else if("focused"===this.renderStyle&&!this.gotoPath){var n;const e=this.showInfo?"overview":null===(n=this.resolvedSpec.tags[0])||void 0===n?void 0:n.paths[0];this.scrollToPath(e)}}getComponentBaseURL(){const{href:e}=window.location,t=this.routePrefix.replace(/(#|\/)$/,"");if(!t)return e.split("#")[0];const r=e.lastIndexOf(t);return-1===r?e:e.slice(0,r)}getElementIDFromURL(){const e=this.getComponentBaseURL();return window.location.href.replace(e+this.routePrefix,"")}replaceHistoryState(e){const t=this.getComponentBaseURL();window.history.replaceState(null,null,`${t}${this.routePrefix||"#"}${e}`)}expandAndGotoOperation(e,t=!0){if(!this.resolvedSpec)return;let r=!0;const n=-1===e.indexOf("#")?e:e.substring(1);if(n.startsWith("overview")||"servers"===n||"auth"===n)r=!1;else for(let t=0;t<(null===(a=this.resolvedSpec.tags)||void 0===a?void 0:a.length);t++){var a,o;const n=this.resolvedSpec.tags[t],i=null===(o=n.paths)||void 0===o?void 0:o.find((t=>t.elementId===e));i&&(i.expanded&&n.expanded?r=!1:(i.expanded=!0,n.expanded=!0))}t&&(r&&this.requestUpdate(),window.setTimeout((()=>{const e=this.shadowRoot.getElementById(n);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),"true"===this.updateRoute&&this.replaceHistoryState(n))}),r?150:0))}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){var t,r,n,a;return!("overview"!==e||!this.showInfo)||(!("servers"!==e||!this.allowServerSelection)||(!("auth"!==e||!this.allowAuthentication)||(e.startsWith("tag--")?null===(n=this.resolvedSpec)||void 0===n||null===(a=n.tags)||void 0===a?void 0:a.find((t=>t.elementId===e)):null===(t=this.resolvedSpec)||void 0===t||null===(r=t.tags)||void 0===r?void 0:r.find((t=>t.paths.find((t=>t.elementId===e)))))))}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>0){const t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&("true"===this.updateRoute&&this.replaceHistoryState(e.target.id),r.classList.add("active"),r.part.add("section-navbar-active-item")),t&&t!==r&&(t.classList.remove("active"),t.part.remove("section-navbar-active-item"))}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}async scrollToEventTarget(e,t=!0){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=e.target;if(r.dataset.contentId){if(this.isIntersectionObserverActive=!1,"focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.beforeNavigationFocusedMode()}this.scrollToPath(r.dataset.contentId,!0,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}}async scrollToPath(e,t=!0,r=!0){if("focused"===this.renderStyle&&(this.focusedElementId=e,await ct(0)),"view"===this.renderStyle)this.expandAndGotoOperation(e,t,!0);else{let t=!1;const n=this.shadowRoot.getElementById(e);if(n?(t=!0,n.scrollIntoView({behavior:"auto",block:"start"})):t=!1,t){if("focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.afterNavigationFocusedMode();const t=this.shadowRoot.querySelector("api-response");t&&t.resetSelection()}"true"===this.updateRoute&&this.replaceHistoryState(e);const t=this.shadowRoot.getElementById(`link-${e}`);if(t){r&&t.scrollIntoView({behavior:"auto",block:"center"}),await ct(0);const e=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active");e&&(e.classList.remove("active"),e.part.remove("active"),e.part.remove("section-navbar-active-item")),t.classList.add("active"),t.part.add("section-navbar-active-item")}}}}setHttpUserNameAndPassword(e,t,r){return er.call(this,e,t,r)}setApiKey(e,t){return er.call(this,e,"","",t)}removeAllSecurityKeys(){return tr.call(this)}setApiServer(e){return Lr.call(this,e)}onAdvancedSearch(e,t){const r=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===r.type?r:r.closest(".advanced-search-options").querySelector("input[type=text]");const t=[...r.closest(".advanced-search-options").querySelectorAll("input:checked")].map((e=>e.id));this.advancedSearchMatches=function(e,t,r=[]){if(!e.trim()||0===r.length)return;const n=[];return t.forEach((t=>{t.paths.forEach((t=>{let a="";var o;if(r.includes("search-api-path")&&(a=t.path),r.includes("search-api-descr")&&(a=`${a} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(a=`${a} ${(null===(o=t.parameters)||void 0===o?void 0:o.map((e=>e.name)).join(" "))||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in null===(i=t.requestBody)||void 0===i?void 0:i.content){var i,s,l;null!==(s=t.requestBody.content[r].schema)&&void 0!==s&&s.properties&&(e=ut(null===(l=t.requestBody.content[r].schema)||void 0===l?void 0:l.properties)),a=`${a} ${[...e].join(" ")}`}}r.includes("search-api-resp-descr")&&(a=`${a} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),a.toLowerCase().includes(e.trim().toLowerCase())&&n.push({elementId:t.elementId,method:t.method,path:t.path,summary:t.summary||t.description||"",deprecated:t.deprecated})}))})),n}(e.value,this.resolvedSpec.tags,t)}),t)}}customElements.get("rapi-doc")||customElements.define("rapi-doc",_n);var On=r(5108);customElements.get("rapi-doc-mini")||customElements.define("rapi-doc-mini",class extends se{constructor(){super(),this.isMini=!0,this.updateRoute="false",this.renderStyle="view",this.showHeader="false",this.allowAdvancedSearch="false"}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},layout:{type:String},pathsExpanded:{type:String,attribute:"paths-expanded"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},showSummaryWhenCollapsed:{type:String,attribute:"show-summary-when-collapsed"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},allowTry:{type:String,attribute:"allow-try"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + }`,ot]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0")),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.renderStyle&&"read, view, focused,".includes(`${this.renderStyle},`)||(this.renderStyle="focused"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"default, never,".includes(`${this.schemaHideReadOnly},`)||(this.schemaHideReadOnly="default"),this.schemaHideWriteOnly&&"default, never,".includes(`${this.schemaHideWriteOnly},`)||(this.schemaHideWriteOnly="default"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="400px"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),this.allowAdvancedSearch&&"true, false,".includes(`${this.allowAdvancedSearch},`)||(this.allowAdvancedSearch="true"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.updateRoute&&"true, false,".includes(`${this.updateRoute},`)||(this.updateRoute="true"),this.routePrefix||(this.routePrefix=window.location.href.indexOf("#")>-1?"#":"?endpoint="),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.generateMissingTags&&"true, false,".includes(`${this.generateMissingTags},`)||(this.generateMissingTags="false"),this.sortEndpointsBy&&"method, path, summary, none,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.onNavTagClick&&"expand-collapse, show-description,".includes(`${this.onNavTagClick},`)||(this.onNavTagClick="expand-collapse"),this.navItemSpacing&&"compact, relaxed, default,".includes(`${this.navItemSpacing},`)||(this.navItemSpacing="default"),this.showMethodInNavBar&&"false, as-plain-text, as-colored-text, as-colored-block,".includes(`${this.showMethodInNavBar},`)||(this.showMethodInNavBar="false"),this.usePathInNavBar&&"true, false,".includes(`${this.usePathInNavBar},`)||(this.usePathInNavBar="false"),this.navActiveItemMarker&&"left-bar, colored-block".includes(`${this.navActiveItemMarker},`)||(this.navActiveItemMarker="left-bar"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.allowServerSelection&&"true, false,".includes(`${this.allowServerSelection},`)||(this.allowServerSelection="true"),this.allowAuthentication&&"true, false,".includes(`${this.allowAuthentication},`)||(this.allowAuthentication="true"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes(`${this.infoDescriptionHeadingsInNavBar},`)||(this.infoDescriptionHeadingsInNavBar="false"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),this.cssFile||(this.cssFile=null),this.cssClasses||(this.cssClasses=""),Ge().languages.node=Ge().languages.javascript,Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)}),window.addEventListener("hashchange",(()=>{this.scrollToPath(this.getElementIDFromURL())}),!0)}disconnectedCallback(){super.disconnectedCallback()}infoDescriptionHeadingRenderer(){const e=new Ve.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}render(){return In.call(this)}attributeChangedCallback(e,t,r){if("spec-url"!==e&&"spec"!==e||t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.gotoPath&&!window.location.hash&&this.scrollToPath(this.gotoPath)}),0),"render-style"===e&&"read"===r&&window.setTimeout((()=>{this.observeExpandedContent()}),100),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSpecFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);const t=e.target.files[0],r=new FileReader;r.onload=()=>{try{const e=JSON.parse(r.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){Dn.error("RapiDoc: Unable to read or parse json")}},r.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value,this.resolvedSpec.tags.forEach((e=>e.paths.filter((t=>{this.matchPaths&&dt(this.matchPaths,t,this.matchType)&&(e.expanded=!0)})))),this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!1,this.matchPaths&&!function(e,t){return t.name.toLowerCase().includes(e.toLowerCase())}(this.matchPaths,e)||(e.expanded=!0)})))),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths="",this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!0}))))}onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0}async onOpenSearchDialog(e){const t=e.detail.querySelector("input");await ct(0),t&&t.focus()}async loadSpec(e){if(e){this.matchPaths="";try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1;const t=await vt.call(this,e,this.spec,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Dn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t),"read"===this.renderStyle&&(await ct(100),this.observeExpandedContent()),this.isIntersectionObserverActive=!0;const r=this.getElementIDFromURL();if(r)"view"===this.renderStyle?this.expandAndGotoOperation(r,!0,!0):this.scrollToPath(r);else if("focused"===this.renderStyle&&!this.gotoPath){var n;const e=this.showInfo?"overview":null===(n=this.resolvedSpec.tags[0])||void 0===n?void 0:n.paths[0];this.scrollToPath(e)}}getComponentBaseURL(){const{href:e}=window.location,t=this.routePrefix.replace(/(#|\/)$/,"");if(!t)return e.split("#")[0];const r=e.split(t);return r.length<=0?e:r[0]}getElementIDFromURL(){const{href:e}=window.location,t=this.getComponentBaseURL(),r=`${t}${this.routePrefix}`;return e.startsWith(r)&&e!==t?e.slice(r.length):""}replaceHistoryState(e){const t=this.getComponentBaseURL();window.history.replaceState(null,null,`${t}${this.routePrefix||"#"}${e}`)}expandAndGotoOperation(e,t=!0){if(!this.resolvedSpec)return;let r=!0;const n=-1===e.indexOf("#")?e:e.substring(1);if(n.startsWith("overview")||"servers"===n||"auth"===n)r=!1;else for(let t=0;t<(null===(a=this.resolvedSpec.tags)||void 0===a?void 0:a.length);t++){var a,o;const n=this.resolvedSpec.tags[t],i=null===(o=n.paths)||void 0===o?void 0:o.find((t=>t.elementId===e));i&&(i.expanded&&n.expanded?r=!1:(i.expanded=!0,n.expanded=!0))}t&&(r&&this.requestUpdate(),window.setTimeout((()=>{const e=this.shadowRoot.getElementById(n);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),"true"===this.updateRoute&&this.replaceHistoryState(n))}),r?150:0))}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){var t,r,n,a;return!("overview"!==e||!this.showInfo)||(!("servers"!==e||!this.allowServerSelection)||(!("auth"!==e||!this.allowAuthentication)||(e.startsWith("tag--")?null===(n=this.resolvedSpec)||void 0===n||null===(a=n.tags)||void 0===a?void 0:a.find((t=>t.elementId===e)):null===(t=this.resolvedSpec)||void 0===t||null===(r=t.tags)||void 0===r?void 0:r.find((t=>t.paths.find((t=>t.elementId===e)))))))}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>0){const t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&("true"===this.updateRoute&&this.replaceHistoryState(e.target.id),r.classList.add("active"),r.part.add("section-navbar-active-item")),t&&t!==r&&(t.classList.remove("active"),t.part.remove("section-navbar-active-item"))}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}async scrollToEventTarget(e,t=!0){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=e.target;if(r.dataset.contentId){if(this.isIntersectionObserverActive=!1,"focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.beforeNavigationFocusedMode()}this.scrollToPath(r.dataset.contentId,!0,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}}async scrollToPath(e,t=!0,r=!0){if("focused"===this.renderStyle&&(this.focusedElementId=e,await ct(0)),"view"===this.renderStyle)this.expandAndGotoOperation(e,t,!0);else{let t=!1;const n=this.shadowRoot.getElementById(e);if(n?(t=!0,n.scrollIntoView({behavior:"auto",block:"start"})):t=!1,t){if("focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.afterNavigationFocusedMode();const t=this.shadowRoot.querySelector("api-response");t&&t.resetSelection()}"true"===this.updateRoute&&this.replaceHistoryState(e);const t=this.shadowRoot.getElementById(`link-${e}`);if(t){r&&t.scrollIntoView({behavior:"auto",block:"center"}),await ct(0);const e=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active");e&&(e.classList.remove("active"),e.part.remove("active"),e.part.remove("section-navbar-active-item")),t.classList.add("active"),t.part.add("section-navbar-active-item")}}}}setHttpUserNameAndPassword(e,t,r){return rr.call(this,e,t,r)}setApiKey(e,t){return rr.call(this,e,"","",t)}removeAllSecurityKeys(){return nr.call(this)}setApiServer(e){return Br.call(this,e)}onAdvancedSearch(e,t){const r=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===r.type?r:r.closest(".advanced-search-options").querySelector("input[type=text]");const t=[...r.closest(".advanced-search-options").querySelectorAll("input:checked")].map((e=>e.id));this.advancedSearchMatches=function(e,t,r=[]){if(!e.trim()||0===r.length)return;const n=[];return t.forEach((t=>{t.paths.forEach((t=>{let a="";var o;if(r.includes("search-api-path")&&(a=t.path),r.includes("search-api-descr")&&(a=`${a} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(a=`${a} ${(null===(o=t.parameters)||void 0===o?void 0:o.map((e=>e.name)).join(" "))||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in null===(i=t.requestBody)||void 0===i?void 0:i.content){var i,s,l;null!==(s=t.requestBody.content[r].schema)&&void 0!==s&&s.properties&&(e=ut(null===(l=t.requestBody.content[r].schema)||void 0===l?void 0:l.properties)),a=`${a} ${[...e].join(" ")}`}}r.includes("search-api-resp-descr")&&(a=`${a} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),a.toLowerCase().includes(e.trim().toLowerCase())&&n.push({elementId:t.elementId,method:t.method,path:t.path,summary:t.summary||t.description||"",deprecated:t.deprecated})}))})),n}(e.value,this.resolvedSpec.tags,t)}),t)}}customElements.get("rapi-doc")||customElements.define("rapi-doc",Ln);var Mn=r(5108);customElements.get("rapi-doc-mini")||customElements.define("rapi-doc-mini",class extends se{constructor(){super(),this.isMini=!0,this.updateRoute="false",this.renderStyle="view",this.showHeader="false",this.allowAdvancedSearch="false"}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},layout:{type:String},pathsExpanded:{type:String,attribute:"paths-expanded"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},showSummaryWhenCollapsed:{type:String,attribute:"show-summary-when-collapsed"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},allowTry:{type:String,attribute:"allow-try"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -5022,7 +5202,7 @@ pre[class*="language-"] { .only-large-screen-flex{ display:flex; } - }`]}connectedCallback(){if(super.connectedCallback(),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.showSummaryWhenCollapsed&&"true, false,".includes(`${this.showSummaryWhenCollapsed},`)||(this.showSummaryWhenCollapsed="true"),this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",this.pathsExpanded="true"===this.pathsExpanded,(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.sortEndpointsBy&&"method, path, summary,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)})}render(){return kn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({apiKeyId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,On.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}setHttpUserNameAndPassword(e,t,r){return er.call(this,e,t,r)}setApiKey(e,t){return er.call(this,e,"","",t)}removeAllSecurityKeys(){return tr.call(this)}setApiServer(e){return Lr.call(this,e)}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}});class Pn extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",(e=>this.receiveStorage(e)),!0)}receiveAuthParms(){let e={};if(document.location.search){const t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){const t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){const r=e.split("&");for(let e=0;e{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.showSummaryWhenCollapsed&&"true, false,".includes(`${this.showSummaryWhenCollapsed},`)||(this.showSummaryWhenCollapsed="true"),this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",this.pathsExpanded="true"===this.pathsExpanded,(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.sortEndpointsBy&&"method, path, summary,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)})}render(){return In.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({apiKeyId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Mn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}setHttpUserNameAndPassword(e,t,r){return rr.call(this,e,t,r)}setApiKey(e,t){return rr.call(this,e,"","",t)}removeAllSecurityKeys(){return nr.call(this)}setApiServer(e){return Br.call(this,e)}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}});class Nn extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",(e=>this.receiveStorage(e)),!0)}receiveAuthParms(){let e={};if(document.location.search){const t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){const t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){const r=e.split("&");for(let e=0;e
    @@ -5045,19 +5225,19 @@ pre[class*="language-"] {
    `))} - `}function jn(){return B` - ${"true"===this.showInfo?nn.call(this):""} + `}function Un(){return B` + ${"true"===this.showInfo?hn.call(this):""}
    - ${this.resolvedSpec.schemaAndExamples.map((e=>{var t;const r=Ut(e.schema,"json",e.examples,e.example,!0,!1,"json",!0);return e.selectedExample=null===(t=r[0])||void 0===t?void 0:t.exampleId,B` + ${this.resolvedSpec.schemaAndExamples.map((e=>{var t;const r=qt(e.schema,"json",e.examples,e.example,!0,!1,"json",!0);return e.selectedExample=null===(t=r[0])||void 0===t?void 0:t.exampleId,B`
    ${e.name}
    - ${Et(Ze(e.description||""))} + ${Et(Ve(e.description||""))}
    `}))}
    - `}function Rn(e=!1){if(!this.resolvedSpec)return"";const t={bg1:Sn(this.bgColor)?this.bgColor:"",fg1:Sn(this.textColor)?this.textColor:"",headerColor:Sn(this.headerColor)?this.headerColor:"",primaryColor:Sn(this.primaryColor)?this.primaryColor:"",navBgColor:Sn(this.navBgColor)?this.navBgColor:"",navTextColor:Sn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Sn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Sn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Sn(this.navAccentColor)?this.navAccentColor:"",navAccenttextColor:Sn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + `}function qn(e=!1){if(!this.resolvedSpec)return"";const t={bg1:Cn(this.bgColor)?this.bgColor:"",fg1:Cn(this.textColor)?this.textColor:"",headerColor:Cn(this.headerColor)?this.headerColor:"",primaryColor:Cn(this.primaryColor)?this.primaryColor:"",navBgColor:Cn(this.navBgColor)?this.navBgColor:"",navTextColor:Cn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Cn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Cn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Cn(this.navAccentColor)?this.navAccentColor:"",navAccenttextColor:Cn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)}
    ${this.resolvedSpec.info.description}
    `:B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)} - ${bn.call(this)} + ${On.call(this)}

    Header

    @@ -5099,7 +5279,7 @@ pre[class*="language-"] {
    `:this.resolvedSpec.isSpecLoading?B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)}
    @@ -5107,15 +5287,15 @@ pre[class*="language-"] {
    `:B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)} - ${"false"===this.showHeader?"":bn.call(this)} + ${"false"===this.showHeader?"":On.call(this)}
    - ${Tn.call(this)} + ${Fn.call(this)}
    @@ -5124,14 +5304,14 @@ pre[class*="language-"] { ${!0===this.loading?B`
    `:B` ${!0===this.loadFailed?B`
    Unable to load the Spec
    `:B`
    - ${jn.call(this)} + ${Un.call(this)}
    `}`}
    - `}customElements.get("oauth-receiver")||customElements.define("oauth-receiver",Pn);var Cn=r(5108);customElements.get("json-schema-viewer")||customElements.define("json-schema-viewer",class extends se{constructor(){super(),this.isMini=!1,this.updateRoute="false",this.renderStyle="focused",this.showHeader="true",this.allowAdvancedSearch="false",this.selectedExampleForEachSchema={}}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + `}customElements.get("oauth-receiver")||customElements.define("oauth-receiver",Nn);var Bn=r(5108);customElements.get("json-schema-viewer")||customElements.define("json-schema-viewer",class extends se{constructor(){super(),this.isMini=!1,this.updateRoute="false",this.renderStyle="focused",this.showHeader="true",this.allowAdvancedSearch="false",this.selectedExampleForEachSchema={}}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -5217,5 +5397,5 @@ pre[class*="language-"] { .only-large-screen-flex{ display:flex; } - }`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)})}render(){return Rn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Cn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),i=o[0],l=o[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,i,l)),p=0,d=l>0?i-4:i;for(r=0;r>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=16383,s=0,c=n-a;sc?c:s+i));1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var a,o,i=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";var n=r(5108);const a=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=l(r);const a=n.write(e,t);a!==r&&(n=n.slice(0,a));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const a=function(e){if(c.isBuffer(e)){const t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?l(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=l(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(a)return n?-1:Z(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){let o,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;na&&(n=a):n=a;const o=t.length;let i;for(n>o/2&&(n=o/2),i=0;i>8,a=r%256,o.push(a),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);const n=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+i<=r){let r,n,s,l;switch(i){case 1:t<128&&(o=t);break;case 2:r=e[a+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[a+1],n=e[a+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=i}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(o,i),l=this.slice(n,a),p=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function P(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;an)&&(r=n);let a="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function M(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function L(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],a=1,o=0;for(;++o>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(a)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let n=t,a=1,o=this[e+--n];for(;n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||C(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=0,o=1,i=0;for(this[t]=255&e;++a>0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=r-1,o=1,i=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/o>>0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,a,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,a,o)}function z(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>2**32?a=B(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=B(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let r;t=t||1/0;const n=e.length;let a=null;const o=[];for(let i=0;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},584:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(e,t,r)=>{"use strict";var n=r(210),a=r(5559),o=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),a=r(210),o=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(i,o),l=a("%Object.getOwnPropertyDescriptor%",!0),c=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,i,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},472:(e,t,r)=>{"use strict";var n=r(4663);e.exports=function(e,t){return e?void t.then((function(t){n((function(){e(null,t)}))}),(function(t){n((function(){e(t)}))})):t}},4663:(e,t,r)=>{"use strict";var n=r(4155);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},5108:(e,t,r)=>{var n=r(9539),a=r(9282);function o(){return(new Date).getTime()}var i,s=Array.prototype.slice,l={};i=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=o()-t;i.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);a.ok(!1,n.format.apply(null,t))}},"assert"]],p=0;p{"use strict";var n=r(2215),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,l=r(1044)(),c=s&&l,p=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(a=n)||"[object Function]"!==o.call(a)||!n())return;var a;c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{var n=r(2830),a=["write","end","destroy"],o=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function l(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n{var n=r(4155),a=r(5108),o=r(8764).Buffer,i=r(2830).Stream,s=t,l=r(6547),c=r(4404),p=r(5122),d=r(2508),u=r(7549),h=r(4563),f=r(1815),m=r.g.setImmediate||n.nextTick;s.Stream=i,s.through=l,s.from=c,s.duplex=p,s.map=d,s.pause=u,s.split=h,s.pipeline=s.connect=s.pipe=f,s.concat=s.merge=function(){var e=[].slice.call(arguments);1===e.length&&e[0]instanceof Array&&(e=e[0]);var t=new i;t.setMaxListeners(0);var r=0;return t.writable=t.readable=!0,e.length?e.forEach((function(n){n.pipe(t,{end:!1});var a=!1;n.on("end",(function(){a||(a=!0,++r==e.length&&t.emit("end"))}))})):n.nextTick((function(){t.emit("end")})),t.write=function(e){this.emit("data",e)},t.destroy=function(){e.forEach((function(e){e.destroy&&e.destroy()}))},t},s.writeArray=function(e){if("function"!=typeof e)throw new Error("function writeArray (done): done must be function");var t=new i,r=[],n=!1;return t.write=function(e){r.push(e)},t.end=function(){n=!0,e(null,r)},t.writable=!0,t.readable=!1,t.destroy=function(){t.writable=t.readable=!1,n||e(new Error("destroyed before end"),r)},t},s.readArray=function(e){var t=new i,r=0,a=!1,o=!1;if(t.readable=!0,t.writable=!1,!Array.isArray(e))throw new Error("event-stream.read expects an array");return t.resume=function(){if(!o){a=!1;for(var n=e.length;r1&&r.emit("data",i),m((function(){if(!(s||o||l))try{l=!0,e.call(r,a++,(function(){l=!1,c.apply(null,arguments)}))}catch(e){r.emit("error",e)}}))}return r.on("end",(function(){s=!0})),r.resume=function(){o=!1,c()},n.nextTick(c),r.pause=function(){o=!0},r.destroy=function(){r.emit("end"),r.emit("close"),s=!0},r},s.mapSync=function(e){return s.through((function(t){var r;try{r=e(t)}catch(e){return this.emit("error",e)}void 0!==r&&this.emit("data",r)}))},s.log=function(e){return s.through((function(t){[].slice.call(arguments);e?a.error(e,t):a.error(t),this.emit("data",t)}))},s.child=function(e){return s.duplex(e.stdin,e.stdout)},s.parse=function(e){var t=!(!e||!e.error);return s.through((function(e){var r;try{e&&(r=JSON.parse(e.toString()))}catch(r){return t?this.emit("error",r):a.error(r,"attempting to parse:",e)}void 0!==r&&this.emit("data",r)}))},s.stringify=function(){var e=r(8764).Buffer;return s.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))},s.replace=function(e,t){return s.pipeline(s.split(e),s.join(t))},s.join=function(e){if("function"==typeof e)return s.wait(e);var t=!0;return s.through((function(r){return t||this.emit("data",e),t=!1,this.emit("data",r),!0}))},s.wait=function(e){var t=[];return s.through((function(e){t.push(e)}),(function(){var r=o.isBuffer(t[0])?o.concat(t):t.join("");this.emit("data",r),this.emit("end"),e&&e(null,r)}))},s.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},7187:(e,t,r)=>{"use strict";var n,a=r(5108),o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,a,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function p(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,s,l;if(p(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=d(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,a&&a.warn&&a.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=h.bind(n);return a.listener=r,n.wrapFn=a,a}function m(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,p=y(l,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!=a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,a=t.cmp&&(r=t.cmp,function(e){return function(t,n){var a={key:t,value:e[t]},o={key:n,value:e[n]};return r(a,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,i;if(Array.isArray(t)){for(i="[",r=0;r{"use strict";var n=r(5320),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===a.call(e)?function(e,t,r){for(var n=0,a=e.length;n{e.exports="object"==typeof self?self.FormData:window.FormData},4404:(e,t,r)=>{"use strict";var n=r(4155),a=r(2830);e.exports=function e(t){if(Array.isArray(t)){var r=0,o=t.length;return e((function(e){return r{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var a,o=t.call(arguments,1),i=Math.max(0,n.length-o.length),s=[],l=0;l{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new i},p=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(1405)(),u=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?n:u(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?u([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?u(u([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?u((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?u((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?u(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":p,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var g=u(u(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=u(a.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),x=r(7642),w=b.call(Function.call,Array.prototype.concat),$=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,O=function(e,t){var r,n=e;if(x(v,n)&&(n="%"+(r=v[n])[0]+"%"),x(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,A,(function(e,t,r,a){n[n.length]=r?S(a,_,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,p=!1,d=o.alias;d&&(n=d[0],$(r,w([0,1],d)));for(var u=1,h=!0;u=r.length){var v=l(c,f);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else h=x(c,f),c=c[f];h&&!p&&(m[s]=c)}}return c}},6841:(e,t)=>{"use strict";t.Z=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))},7296:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8023:(e,t,r)=>{"use strict";e.exports={afterRequest:r(3932),beforeRequest:r(6136),browser:r(805),cache:r(1632),content:r(1567),cookie:r(5725),creator:r(7218),entry:r(4560),har:r(5579),header:r(5147),log:r(3013),page:r(4777),pageTimings:r(5538),postData:r(2096),query:r(1251),request:r(9646),response:r(9103),timings:r(2007)}},3784:(e,t,r)=>{var n,a=r(5096),o=r(8300),i=r(8023);function s(e,t,s){t=t||{};var l=(n=n||function(){var e=new a({allErrors:!0});return e.addMetaSchema(r(6273)),e.addSchema(i),e}()).getSchema(e+".json"),c=l(t);return"function"==typeof s?s(c?null:new o(l.errors),c):c}t.afterRequest=function(e,t){return s("afterRequest",e,t)},t.beforeRequest=function(e,t){return s("beforeRequest",e,t)},t.browser=function(e,t){return s("browser",e,t)},t.cache=function(e,t){return s("cache",e,t)},t.content=function(e,t){return s("content",e,t)},t.cookie=function(e,t){return s("cookie",e,t)},t.creator=function(e,t){return s("creator",e,t)},t.entry=function(e,t){return s("entry",e,t)},t.har=function(e,t){return s("har",e,t)},t.header=function(e,t){return s("header",e,t)},t.log=function(e,t){return s("log",e,t)},t.page=function(e,t){return s("page",e,t)},t.pageTimings=function(e,t){return s("pageTimings",e,t)},t.postData=function(e,t){return s("postData",e,t)},t.query=function(e,t){return s("query",e,t)},t.request=function(e,t){return s("request",e,t)},t.response=function(e,t){return s("response",e,t)},t.timings=function(e,t){return s("timings",e,t)}},8300:e=>{function t(e){var t="validation failed";this.name="HARError",this.message=t,this.errors=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}t.prototype=Error.prototype,e.exports=t},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),a=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9267:(e,t,r)=>{var n=r(8501),a=r(8575),o=e.exports;for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);function s(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},3503:(e,t,r)=>{var n=r(5108),a=r(4155);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=r(2212)).log=function(){return"object"==typeof n&&n.log&&Function.prototype.apply.call(n.log,n,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},2212:(e,t,r)=>{var n,a=r(5108);function o(e){function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),l=0;l{var t=1e3,r=60*t,n=60*r,a=24*n,o=365.25*a;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?i(l=e,a,"day")||i(l,n,"hour")||i(l,r,"minute")||i(l,t,"second")||l+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9544:(e,t,r)=>{"use strict";const n=r(9539),a=function(e,t){this.code=[],this.indentation=e,this.lineJoin=t||"\n"};a.prototype.buildLine=function(e,t){let r="",a=2;if("[object String]"===Object.prototype.toString.call(e))a=1,t=e,e=0;else if(null===e)return null;for(;e;)r+=this.indentation,e--;const o=Array.prototype.slice.call(arguments,a,arguments.length);return o.unshift(r+t),n.format.apply(this,o)},a.prototype.unshift=function(){return this.code.unshift(this.buildLine.apply(this,arguments)),this},a.prototype.push=function(){return this.code.push(this.buildLine.apply(this,arguments)),this},a.prototype.blank=function(){return this.code.push(null),this},a.prototype.join=function(){return this.code.join(this.lineJoin)},e.exports=a},1747:e=>{const t="\r\n",r="-".repeat(2),n=Symbol.toStringTag,a=e=>"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[n]);function o(e,n,o){let i="";return i+=`${r}${e}${t}`,i+=`Content-Disposition: form-data; name="${n}"`,a(o)&&(i+=`; filename="${o.name}"${t}`,i+=`Content-Type: ${o.type||"application/octet-stream"}`),`${i}${t.repeat(2)}`}e.exports.getBoundary=()=>{let e="--------------------------";for(let t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);return e},e.exports.formDataIterator=function*(e,n){for(const[r,i]of e)yield o(n,r,i),a(i)?yield*i.stream():yield i,yield t;yield(e=>`${r}${e}${r}${t.repeat(2)}`)(n)},e.exports.isBlob=a},174:e=>{e.exports={getHeader:(e,t)=>e[Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()))],getHeaderName:(e,t)=>Object.keys(e).find((e=>{if(e.toLowerCase()===t.toLowerCase())return e})),hasHeader:(e,t)=>Boolean(Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())))}},4411:e=>{"use strict";e.exports=function(e,t){if(void 0===e[t.name])return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const r=[e[t.name],t.value];return e[t.name]=r,e}},9426:(e,t,r)=>{"use strict";const n=r(9539);e.exports={quote:function(e){return/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:n.format("'%s'",e.replace(/'/g,"'\\''"))},escape:function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}}},212:(e,t,r)=>{"use strict";const n=r(3503)("httpsnippet"),a=r(2704),o=r(6230),i=r(7673),s=r(4411),l=r(174),c=r(9245),p=r(8575),d=r(3784),{formDataIterator:u,isBlob:h}=r(1747),f=function(e){let t;const r=this,n=Object.assign({},e);r.requests=[],t=n.log&&n.log.entries?n.log.entries:[{request:n}],t.forEach((function(e){e.request.httpVersion=e.request.httpVersion||"HTTP/1.1",e.request.queryString=e.request.queryString||[],e.request.headers=e.request.headers||[],e.request.cookies=e.request.cookies||[],e.request.postData=e.request.postData||{},e.request.postData.mimeType=e.request.postData.mimeType||"application/octet-stream",e.request.bodySize=0,e.request.headersSize=0,e.request.postData.size=0,d.request(e.request,(function(t,n){if(!n)throw t;r.requests.push(r.prepare(e.request))}))}))};f.prototype.prepare=function(e){if(e.queryObj={},e.headersObj={},e.cookiesObj={},e.allHeaders={},e.postData.jsonObj=!1,e.postData.paramsObj=!1,e.queryString&&e.queryString.length&&(n("queryString found, constructing queryString pair map"),e.queryObj=e.queryString.reduce(s,{})),e.headers&&e.headers.length){const t=/^HTTP\/2/;e.headersObj=e.headers.reduce((function(r,n){let a=n.name;return e.httpVersion.match(t)&&(a=a.toLowerCase()),r[a]=n.value,r}),{})}e.cookies&&e.cookies.length&&(e.cookiesObj=e.cookies.reduceRight((function(e,t){return e[t.name]=t.value,e}),{}));const t=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));switch(t.length&&(e.allHeaders.cookie=t.join("; ")),e.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(e.postData.text="",e.postData.mimeType="multipart/form-data",e.postData.params){const t=new o,r="function"==typeof t[Symbol.iterator],n="---011000010111000001101001";if(r||(t._boundary=n),e.postData.params.forEach((function(e){const n=e.name,a=e.value||"",o=e.fileName||null;r?h(a)?t.append(n,a,o):t.append(n,a):t.append(n,a,{filename:o,contentType:e.contentType||null})})),r)for(const r of u(t,n))e.postData.text+=r;else t.pipe(a.map((function(t,r){e.postData.text+=t})));e.postData.boundary=n;const i=l.hasHeader(e.headersObj,"content-type")?l.getHeaderName(e.headersObj,"content-type"):"content-type";e.headersObj[i]="multipart/form-data; boundary="+n}break;case"application/x-www-form-urlencoded":e.postData.params?(e.postData.paramsObj=e.postData.params.reduce(s,{}),e.postData.text=i.stringify(e.postData.paramsObj)):e.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(e.postData.mimeType="application/json",e.postData.text)try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){n(t),e.postData.mimeType="text/plain"}}return e.allHeaders=Object.assign(e.allHeaders,e.headersObj),e.uriObj=p.parse(e.url,!0,!0),e.queryObj=Object.assign(e.queryObj,e.uriObj.query),e.uriObj.query=null,e.uriObj.search=null,e.uriObj.path=e.uriObj.pathname,e.url=p.format(e.uriObj),e.uriObj.query=e.queryObj,e.uriObj.search=i.stringify(e.queryObj),e.uriObj.search&&(e.uriObj.path=e.uriObj.pathname+"?"+e.uriObj.search),e.fullUrl=p.format(e.uriObj),e},f.prototype.convert=function(e,t,r){!r&&t&&(r=t);const n=this._matchTarget(e,t);if(n){const e=this.requests.map((function(e){return n(e,r)}));return 1===e.length?e[0]:e}return!1},f.prototype._matchTarget=function(e,t){return!!c.hasOwnProperty(e)&&("string"==typeof t&&"function"==typeof c[e][t]?c[e][t]:c[e][c[e].info.default])},e.exports=f,e.exports.addTarget=function(e){if(!("info"in e))throw new Error("The supplied custom target must contain an `info` object.");if(!("key"in e.info&&"title"in e.info&&"extname"in e.info&&"default"in e.info))throw new Error("The supplied custom target must have an `info` object with a `key`, `title`, `extname`, and `default` property.");if(c.hasOwnProperty(e.info.key))throw new Error("The supplied custom target already exists.");if(1===Object.keys(e).length)throw new Error("A custom target must have a client defined on it.");c[e.info.key]=e},e.exports.addTargetClient=function(e,t){if(!c.hasOwnProperty(e))throw new Error(`Sorry, but no ${e} target exists to add clients to.`);if(!("info"in t))throw new Error("The supplied custom target client must contain an `info` object.");if(!("key"in t.info)||!("title"in t.info))throw new Error("The supplied custom target client must have an `info` object with a `key` and `title` property.");if(c[e].hasOwnProperty(t.info.key))throw new Error("The supplied custom target client already exists, please use a different key");c[e][t.info.key]=t},e.exports.availableTargets=function(){return Object.keys(c).map((function(e){const t=Object.assign({},c[e].info),r=Object.keys(c[e]).filter((function(e){return!~["info","index"].indexOf(e)})).map((function(t){return c[e][t].info}));return r.length&&(t.clients=r),t}))},e.exports.extname=function(e){return c[e]?c[e].info.extname:""}},5767:(e,t,r)=>{"use strict";e.exports={info:{key:"c",title:"C",extname:".c",default:"libcurl"},libcurl:r(9897)}},9897:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("CURL *hnd = curl_easy_init();").blank().push('curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "%s");',e.method.toUpperCase()).push('curl_easy_setopt(hnd, CURLOPT_URL, "%s");',e.fullUrl);const a=Object.keys(e.headersObj);return a.length&&(r.blank().push("struct curl_slist *headers = NULL;"),a.forEach((function(t){r.push('headers = curl_slist_append(headers, "%s: %s");',t,e.headersObj[t])})),r.push("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),e.allHeaders.cookie&&r.blank().push('curl_easy_setopt(hnd, CURLOPT_COOKIE, "%s");',e.allHeaders.cookie),e.postData.text&&r.blank().push("curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, %s);",JSON.stringify(e.postData.text)),r.blank().push("CURLcode ret = curl_easy_perform(hnd);"),r.join()},e.exports.info={key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl/",description:"Simple REST and HTTP API Client for C"}},1972:(e,t,r)=>{"use strict";const n=r(9544),a=r(174),o=function(e){this.name=e};o.prototype.toString=function(){return":"+this.name};const i=function(e){this.path=e};i.prototype.toString=function(){return'(clojure.java.io/file "'+this.path+'")'};const s=function(e){return void 0!==e?e.constructor.name.toLowerCase():null},l=function(e){return"object"===s(e)&&0===Object.keys(e).length},c=function(e){return Object.keys(e).filter((function(t){return l(e[t])})).forEach((function(t){delete e[t]})),e},p=function(e,t){const r=Array.apply(null,Array(e)).map((function(e){return" "})).join("");return t.replace(/\n/g,"\n"+r)},d=function(e){switch(s(e)){case"string":return'"'+e.replace(/"/g,'\\"')+'"';case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return'#"'+e.source+'"';case"object":{const t=Object.keys(e).reduce((function(t,r){return t+":"+r+" "+p(r.length+2,d(e[r]))+"\n "}),"").trim();return"{"+p(1,t)+"}"}case"array":{const t=e.reduce((function(e,t){return e+" "+d(t)}),"").trim();return"["+p(1,t)+"]"}}};e.exports=function(e,t){const r=new n(t);if(-1===["get","post","put","delete","patch","head","options"].indexOf(e.method.toLowerCase()))return r.push("Method not supported").join();const s={headers:e.allHeaders,"query-params":e.queryObj};switch(e.postData.mimeType){case"application/json":s["content-type"]=new o("json"),s["form-params"]=e.postData.jsonObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"application/x-www-form-urlencoded":s["form-params"]=e.postData.paramsObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"text/plain":s.body=e.postData.text,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"multipart/form-data":s.multipart=e.postData.params.map((function(e){return e.fileName&&!e.value?{name:e.name,content:new i(e.fileName)}:{name:e.name,content:e.value}})),delete s.headers[a.getHeaderName(s.headers,"content-type")]}if("application/json"===a.getHeader(s.headers,"accept"))s.accept=new o("json"),delete s.headers[a.getHeaderName(s.headers,"accept")];return r.push("(require '[clj-http.client :as client])\n"),l(c(s))?r.push('(client/%s "%s")',e.method.toLowerCase(),e.url):r.push('(client/%s "%s" %s)',e.method.toLowerCase(),e.url,p(11+e.method.length+e.url.length,d(c(s)))),r.join()},e.exports.info={key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."}},3686:(e,t,r)=>{"use strict";e.exports={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clj_http:r(1972)}},4681:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent);let i="";const s=!!e.allHeaders.cookie,l=function(e){const t=a.getHeader(e.allHeaders,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return t.split(",").forEach((function(e){const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}})),n}(e);(s||l.length)&&(i="clientHandler",o.push("var clientHandler = new HttpClientHandler"),o.push("{"),s&&o.push(1,"UseCookies = false,"),l.length&&o.push(1,"AutomaticDecompression = %s,",l.join(" | ")),o.push("};")),o.push("var client = new HttpClient(%s);",i),o.push("var request = new HttpRequestMessage"),o.push("{");let c=e.method.toUpperCase();c=c&&-1!==["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].indexOf(c)?`HttpMethod.${c[0]}${c.substring(1).toLowerCase()}`:`new HttpMethod("${c}")`,o.push(1,"Method = %s,",c),o.push(1,'RequestUri = new Uri("%s"),',e.fullUrl);const p=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(p.length&&(o.push(1,"Headers ="),o.push(1,"{"),p.forEach((function(t){o.push(2,'{ "%s", "%s" },',t,e.allHeaders[t])})),o.push(1,"},")),e.postData.text){const t=e.postData.mimeType;switch(t){case"application/x-www-form-urlencoded":o.push(1,"Content = new FormUrlEncodedContent(new Dictionary"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,'{ "%s", "%s" },',e.name,e.value)})),o.push(1,"}),");break;case"multipart/form-data":o.push(1,"Content = new MultipartFormDataContent"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,"new StringContent(%s)",JSON.stringify(e.value||"")),o.push(2,"{"),o.push(3,"Headers ="),o.push(3,"{"),e.contentType&&o.push(4,'ContentType = new MediaTypeHeaderValue("%s"),',e.contentType),o.push(4,'ContentDisposition = new ContentDispositionHeaderValue("form-data")'),o.push(4,"{"),o.push(5,'Name = "%s",',e.name),e.fileName&&o.push(5,'FileName = "%s",',e.fileName),o.push(4,"}"),o.push(3,"}"),o.push(2,"},")})),o.push(1,"},");break;default:o.push(1,"Content = new StringContent(%s)",JSON.stringify(e.postData.text||"")),o.push(1,"{"),o.push(2,"Headers ="),o.push(2,"{"),o.push(3,'ContentType = new MediaTypeHeaderValue("%s")',t),o.push(2,"}"),o.push(1,"}")}}return o.push("};"),o.push("using (var response = await client.SendAsync(request))"),o.push("{"),o.push(1,"response.EnsureSuccessStatusCode();"),o.push(1,"var body = await response.Content.ReadAsStringAsync();"),o.push(1,"Console.WriteLine(body);"),o.push("}"),o.join()},e.exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"}},7838:(e,t,r)=>{"use strict";e.exports={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},restsharp:r(3764),httpclient:r(4681)}},3764:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase()))return"Method not supported";r.push('var client = new RestClient("%s");',e.fullUrl),r.push("var request = new RestRequest(Method.%s);",e.method.toUpperCase());const o=Object.keys(e.headersObj);return o.length&&o.forEach((function(t){r.push('request.AddHeader("%s", "%s");',t,e.headersObj[t])})),e.cookies.length&&e.cookies.forEach((function(e){r.push('request.AddCookie("%s", "%s");',e.name,e.value)})),e.postData.text&&r.push('request.AddParameter("%s", %s, ParameterType.RequestBody);',a.getHeader(e.allHeaders,"content-type"),JSON.stringify(e.postData.text)),r.push("IRestResponse response = client.Execute(request);"),r.join()},e.exports.info={key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"}},786:(e,t,r)=>{"use strict";e.exports={info:{key:"go",title:"Go",extname:".go",default:"native"},native:r(4398)}},4398:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n("\t"),a=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,timeout:-1},t),o=a.checkErrors?"err":"_",i=a.showBoilerplate?1:0,s=function(){a.checkErrors&&r.push(i,"if err != nil {").push(i+1,"panic(err)").push(i,"}")};let l;return a.showBoilerplate&&(r.push("package main").blank().push("import (").push(i,'"fmt"'),a.timeout>0&&r.push(i,'"time"'),e.postData.text&&r.push(i,'"strings"'),r.push(i,'"net/http"'),a.printBody&&r.push(i,'"io/ioutil"'),r.push(")").blank().push("func main() {").blank()),a.timeout>0?(l="client",r.push(i,"client := http.Client{").push(i+1,"Timeout: time.Duration(%s * time.Second),",a.timeout).push(i,"}").blank()):l="http.DefaultClient",r.push(i,'url := "%s"',e.fullUrl).blank(),e.postData.text?r.push(i,"payload := strings.NewReader(%s)",JSON.stringify(e.postData.text)).blank().push(i,'req, %s := http.NewRequest("%s", url, payload)',o,e.method).blank():r.push(i,'req, %s := http.NewRequest("%s", url, nil)',o,e.method).blank(),s(),Object.keys(e.allHeaders).length&&(Object.keys(e.allHeaders).forEach((function(t){r.push(i,'req.Header.Add("%s", "%s")',t,e.allHeaders[t])})),r.blank()),r.push(i,"res, %s := %s.Do(req)",o,l),s(),a.printBody&&(r.blank().push(i,"defer res.Body.Close()").push(i,"body, %s := ioutil.ReadAll(res.Body)",o),s()),r.blank().push(i,"fmt.Println(res)"),a.printBody&&r.push(i,"fmt.Println(string(body))"),a.showBoilerplate&&r.blank().push("}"),r.join()},e.exports.info={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"}},7659:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(9544),o=r(9539);e.exports=function(e,t){const r=Object.assign({absoluteURI:!1,autoContentLength:!0,autoHost:!0},t),i=new a("","\r\n"),s=r.absoluteURI?e.fullUrl:e.uriObj.path;i.push("%s %s %s",e.method,s,e.httpVersion),Object.keys(e.allHeaders).forEach((function(t){const r=t.toLowerCase().replace(/(^|-)(\w)/g,(function(e){return e.toUpperCase()}));i.push("%s",o.format("%s: %s",r,e.allHeaders[t]))})),r.autoHost&&-1===Object.keys(e.allHeaders).indexOf("host")&&i.push("Host: %s",e.uriObj.host),r.autoContentLength&&e.postData.text&&-1===Object.keys(e.allHeaders).indexOf("content-length")&&i.push("Content-Length: %d",n.byteLength(e.postData.text,"ascii")),i.blank();const l=i.join();let c="";return e.postData.text&&(c=e.postData.text),l+"\r\n"+c},e.exports.info={key:"1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"}},8322:(e,t,r)=>{"use strict";e.exports={info:{key:"http",title:"HTTP",extname:"",default:"1.1"},1.1:r(7659)}},9245:(e,t,r)=>{"use strict";e.exports={c:r(5767),clojure:r(3686),csharp:r(7838),go:r(786),http:r(8322),java:r(3625),javascript:r(5100),kotlin:r(3217),node:r(3095),objc:r(6629),ocaml:r(4955),php:r(8663),powershell:r(3218),python:r(3979),r:r(2817),ruby:r(2682),shell:r(869),swift:r(4484)}},9868:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("AsyncHttpClient client = new DefaultAsyncHttpClient();"),a.push(`client.prepare("${e.method.toUpperCase()}", "${e.fullUrl}")`);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.setHeader("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".setBody(%s)",JSON.stringify(e.postData.text)),a.push(1,".execute()"),a.push(1,".toCompletableFuture()"),a.push(1,".thenAccept(System.out::println)"),a.push(1,".join();"),a.blank(),a.push("client.close();"),a.join()},e.exports.info={key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"}},3625:(e,t,r)=>{"use strict";e.exports={info:{key:"java",title:"Java",extname:".java",default:"unirest"},okhttp:r(6870),unirest:r(5492),asynchttp:r(9868),nethttp:r(7423)}},7423:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("HttpRequest request = HttpRequest.newBuilder()"),a.push(2,'.uri(URI.create("%s"))',e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(2,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text?a.push(2,'.method("%s", HttpRequest.BodyPublishers.ofString(%s))',e.method.toUpperCase(),JSON.stringify(e.postData.text)):a.push(2,'.method("%s", HttpRequest.BodyPublishers.noBody())',e.method.toUpperCase()),a.push(2,".build();"),a.push("HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),a.push("System.out.println(response.body());"),a.join()},e.exports.info={key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"}},6870:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("OkHttpClient client = new OkHttpClient();").blank(),e.postData.text&&(e.postData.boundary?a.push('MediaType mediaType = MediaType.parse("%s; boundary=%s");',e.postData.mimeType,e.postData.boundary):a.push('MediaType mediaType = MediaType.parse("%s");',e.postData.mimeType),a.push("RequestBody body = RequestBody.create(mediaType, %s);",JSON.stringify(e.postData.text))),a.push("Request request = new Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build();").blank().push("Response response = client.newCall(request).execute();"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},5492:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase())?a.push('HttpResponse response = Unirest.customMethod("%s","%s")',e.method.toUpperCase(),e.fullUrl):a.push('HttpResponse response = Unirest.%s("%s")',e.method.toLowerCase(),e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".body(%s)",JSON.stringify(e.postData.text)),a.push(1,".asString();"),a.join()},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"}},7355:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('import axios from "axios";').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank(),s.data="[form]";break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("const options = %s;",a(s,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form")).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},2690:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const a=Object.assign({indent:" ",credentials:null},t),o=r(4110),i=new n(a.indent);switch(t={method:e.method},Object.keys(e.allHeaders).length&&(t.headers=e.allHeaders),null!==a.credentials&&(t.credentials=a.credentials),e.postData.mimeType){case"application/x-www-form-urlencoded":t.body=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":t.body=JSON.stringify(e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank();break;default:e.postData.text&&(t.body=e.postData.text)}return i.push("const options = %s;",o(t,{indent:a.indent,inlineCharacterLimit:80,transform:(t,r,n)=>"body"===r&&"application/x-www-form-urlencoded"===e.postData.mimeType?`new URLSearchParams(${n})`:n})).blank(),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = form;").blank(),i.push("fetch('%s', options)",e.fullUrl).push(1,".then(response => response.json())").push(1,".then(response => console.log(response))").push(1,".catch(err => console.error(err));"),i.join()},e.exports.info={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"}},5100:(e,t,r)=>{"use strict";e.exports={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},jquery:r(354),fetch:r(2690),xhr:r(9936),axios:r(7355)}},354:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent),i={async:!0,crossDomain:!0,url:e.fullUrl,method:e.method,headers:e.allHeaders};switch(e.postData.mimeType){case"application/x-www-form-urlencoded":i.data=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":i.processData=!1,i.data=e.postData.text;break;case"multipart/form-data":o.push("const form = new FormData();"),e.postData.params.forEach((function(e){o.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.processData=!1,i.contentType=!1,i.mimeType="multipart/form-data",i.data="[form]",a.hasHeader(i.headers,"content-type")&&a.getHeader(i.headers,"content-type").indexOf("boundary")&&delete i.headers[a.getHeaderName(i.headers,"content-type")],o.blank();break;default:e.postData.text&&(i.data=e.postData.text)}return o.push("const settings = "+JSON.stringify(i,null,r.indent).replace('"[form]"',"form")+";").blank().push("$.ajax(settings).done(function (response) {").push(1,"console.log(response);").push("});"),o.join()},e.exports.info={key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"}},9936:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" ",cors:!0},t),o=new n(r.indent);switch(e.postData.mimeType){case"application/json":o.push("const data = JSON.stringify(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).push(null);break;case"multipart/form-data":o.push("const data = new FormData();"),e.postData.params.forEach((function(e){o.push("data.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),a.hasHeader(e.allHeaders,"content-type")&&a.getHeader(e.allHeaders,"content-type").indexOf("boundary")&&delete e.allHeaders[a.getHeaderName(e.allHeaders,"content-type")],o.blank();break;default:o.push("const data = %s;",JSON.stringify(e.postData.text||null)).blank()}return o.push("const xhr = new XMLHttpRequest();"),r.cors&&o.push("xhr.withCredentials = true;"),o.blank().push('xhr.addEventListener("readystatechange", function () {').push(1,"if (this.readyState === this.DONE) {").push(2,"console.log(this.responseText);").push(1,"}").push("});").blank().push("xhr.open(%s, %s);",JSON.stringify(e.method),JSON.stringify(e.fullUrl)),Object.keys(e.allHeaders).forEach((function(t){o.push("xhr.setRequestHeader(%s, %s);",JSON.stringify(t),JSON.stringify(e.allHeaders[t]))})),o.blank().push("xhr.send(data);"),o.join()},e.exports.info={key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"}},3217:(e,t,r)=>{"use strict";e.exports={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},okhttp:r(9173)}},9173:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("val client = OkHttpClient()").blank(),e.postData.text&&(e.postData.boundary?a.push('val mediaType = MediaType.parse("%s; boundary=%s")',e.postData.mimeType,e.postData.boundary):a.push('val mediaType = MediaType.parse("%s")',e.postData.mimeType),a.push("val body = RequestBody.create(mediaType, %s)",JSON.stringify(e.postData.text))),a.push("val request = Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build()").blank().push("val response = client.newCall(request).execute()"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},1256:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('var axios = require("axios").default;').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("var options = %s;",a(s,{indent:" ",inlineCharacterLimit:80})).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},7911:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let o=!1;const i=new a(r.indent);i.push("const fetch = require('node-fetch');");const s=e.fullUrl,l={method:e.method};switch(Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":i.unshift("const { URLSearchParams } = require('url');"),i.push("const encodedParams = new URLSearchParams();"),i.blank(),e.postData.params.forEach((function(e){i.push("encodedParams.set('"+e.name+"', '"+e.value+"');")})),l.body="encodedParams";break;case"application/json":e.postData.jsonObj&&(l.body=JSON.stringify(e.postData.jsonObj));break;case"multipart/form-data":i.unshift("const FormData = require('form-data');"),i.push("const formData = new FormData();"),i.blank(),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(o=!0,i.push("formData.append('"+e.name+"', fs.createReadStream('"+e.fileName+"'));")):i.push("formData.append('"+e.name+"', '"+e.value+"');")}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){let t="";e.cookies.forEach((function(e){t=t+encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)+"; "})),l.headers||(l.headers={}),l.headers.cookie=t}return i.blank(),i.push("let url = '"+s+"';").blank(),i.push("let options = %s;",n(l,{indent:" ",inlineCharacterLimit:80})).blank(),o&&i.unshift("const fs = require('fs');"),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = formData;").blank(),i.push("fetch(url, options)").push(1,".then(res => res.json())").push(1,".then(json => console.log(json))").push(1,".catch(err => console.error('error:' + err));"),i.join().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"}},3095:(e,t,r)=>{"use strict";e.exports={info:{key:"node",title:"Node.js",extname:".js",default:"native"},native:r(5965),request:r(4213),unirest:r(9314),axios:r(1256),fetch:r(7911)}},5965:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new a(r.indent),i={method:e.method,hostname:e.uriObj.hostname,port:e.uriObj.port,path:e.uriObj.path,headers:e.allHeaders};switch(o.push('const http = require("%s");',e.uriObj.protocol.replace(":","")),o.blank().push("const options = %s;",JSON.stringify(i,null,r.indent)).blank().push("const req = http.request(options, function (res) {").push(1,"const chunks = [];").blank().push(1,'res.on("data", function (chunk) {').push(2,"chunks.push(chunk);").push(1,"});").blank().push(1,'res.on("end", function () {').push(2,"const body = Buffer.concat(chunks);").push(2,"console.log(body.toString());").push(1,"});").push("});").blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&(o.unshift('const qs = require("querystring");'),o.push("req.write(qs.stringify(%s));",n(e.postData.paramsObj,{indent:" ",inlineCharacterLimit:80})));break;case"application/json":e.postData.jsonObj&&o.push("req.write(JSON.stringify(%s));",n(e.postData.jsonObj,{indent:" ",inlineCharacterLimit:80}));break;default:e.postData.text&&o.push("req.write(%s);",JSON.stringify(e.postData.text,null,r.indent))}return o.push("req.end();"),o.join()},e.exports.info={key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"}},4213:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let i=!1;const s=new o(r.indent);s.push("const request = require('request');").blank();const l={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(l.qs=e.queryObj),Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":l.form=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(l.body=e.postData.jsonObj,l.json=!0);break;case"multipart/form-data":l.formData={},e.postData.params.forEach((function(e){const t={};e.fileName||e.fileName||e.contentType?(e.fileName?(i=!0,t.value='fs.createReadStream("'+e.fileName+'")'):e.value&&(t.value=e.value),e.fileName&&(t.options={filename:e.fileName,contentType:e.contentType?e.contentType:null}),l.formData[e.name]=t):l.formData[e.name]=e.value}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){l.jar="JAR",s.push("const jar = request.jar();");const t=e.url;e.cookies.forEach((function(e){s.push("jar.setCookie(request.cookie('%s=%s'), '%s');",encodeURIComponent(e.name),encodeURIComponent(e.value),t)})),s.blank()}return i&&s.unshift("const fs = require('fs');"),s.push("const options = %s;",a(l,{indent:" ",inlineCharacterLimit:80})).blank(),s.push(n.format("request(options, %s","function (error, response, body) {")).push(1,"if (error) throw new Error(error);").blank().push(1,"console.log(body);").push("});").blank(),s.join().replace('"JAR"',"jar").replace(/'fs\.createReadStream\("(.+)"\)'/g,"fs.createReadStream('$1')")},e.exports.info={key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"}},9314:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let a=!1;const o=new n(r.indent);switch(o.push('const unirest = require("unirest");').blank().push('const req = unirest("%s", "%s");',e.method,e.url).blank(),e.cookies.length&&(o.push("const CookieJar = unirest.jar();"),e.cookies.forEach((function(t){o.push('CookieJar.add("%s=%s","%s");',encodeURIComponent(t.name),encodeURIComponent(t.value),e.url)})),o.push("req.jar(CookieJar);").blank()),Object.keys(e.queryObj).length&&o.push("req.query(%s);",JSON.stringify(e.queryObj,null,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("req.headers(%s);",JSON.stringify(e.headersObj,null,r.indent)).blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&o.push("req.form(%s);",JSON.stringify(e.postData.paramsObj,null,r.indent)).blank();break;case"application/json":e.postData.jsonObj&&o.push('req.type("json");').push("req.send(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).blank();break;case"multipart/form-data":{const t=[];e.postData.params.forEach((function(e){const r={};e.fileName&&!e.value?(a=!0,r.body='fs.createReadStream("'+e.fileName+'")'):e.value&&(r.body=e.value),r.body&&(e.contentType&&(r["content-type"]=e.contentType),t.push(r))})),o.push("req.multipart(%s);",JSON.stringify(t,null,r.indent)).blank();break}default:e.postData.text&&o.push("req.send(%s);",JSON.stringify(e.postData.text,null,r.indent)).blank()}return a&&o.unshift('const fs = require("fs");'),o.push("req.end(function (res) {").push(1,"if (res.error) throw new Error(res.error);").blank().push(1,"console.log(res.body);").push("});").blank(),o.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"}},6714:(e,t,r)=>{"use strict";const n=r(9539);e.exports={blankString:function(e){return Array.apply(null,new Array(e)).map(String.prototype.valueOf," ").join("")},nsDeclaration:function(e,t,r,n){const a=e+" *"+t+" = ";return a+this.literalRepresentation(r,n?a.length:void 0)+";"},literalRepresentation:function(e,t){const r=void 0===t?", ":",\n "+this.blankString(t);switch(Object.prototype.toString.call(e)){case"[object Number]":return"@"+e;case"[object Array]":return"@[ "+e.map(function(e){return this.literalRepresentation(e)}.bind(this)).join(r)+" ]";case"[object Object]":{const t=[];for(const r in e)t.push(n.format('@"%s": %s',r,this.literalRepresentation(e[r])));return"@{ "+t.join(r)+" }"}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":'@"'+e.toString().replace(/"/g,'\\"')+'"'}}}},6629:(e,t,r)=>{"use strict";e.exports={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},nsurlsession:r(3743)}},3743:(e,t,r)=>{"use strict";const n=r(6714),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("#import "),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.nsDeclaration("NSDictionary","headers",e.allHeaders,r.pretty))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"%s=%s" dataUsingEncoding:NSUTF8StringEncoding]];',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("open Cohttp_lwt_unix").push("open Cohttp").push("open Lwt").blank().push('let uri = Uri.of_string "%s" in',e.fullUrl);const o=Object.keys(e.allHeaders);return 1===o.length?a.push('let headers = Header.add (Header.init ()) "%s" "%s" in',o[0],e.allHeaders[o[0]]):o.length>1&&(a.push("let headers = Header.add_list (Header.init ()) ["),o.forEach((function(t){a.push(1,'("%s", "%s");',t,e.allHeaders[t])})),a.push("] in")),e.postData.text&&a.push("let body = Cohttp_lwt_body.of_string %s in",JSON.stringify(e.postData.text)),a.blank(),a.push("Client.call %s%s%s uri",o.length?"~headers ":"",e.postData.text?"~body ":"",["get","post","head","delete","patch","put","options"].indexOf(e.method.toLowerCase())>=0?"`"+e.method.toUpperCase():'(Code.method_of_string "'+e.method+'")'),a.push(">>= fun (res, body_stream) ->").push(1,"(* Do stuff with the result *)"),a.join()},e.exports.info={key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"}},4955:(e,t,r)=>{"use strict";e.exports={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},cohttp:r(1501)}},7149:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",maxRedirects:10,namedErrors:!1,noTags:!1,shortTags:!1,timeout:30},t),o=new a(r.indent);r.noTags||o.push(r.shortTags?" %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const l=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));l.length&&s.push(n.format('CURLOPT_COOKIE => "%s",',l.join("; ")));const c=Object.keys(e.headersObj).sort().map((function(t){return n.format('"%s: %s"',t,e.headersObj[t])}));return c.length&&s.push("CURLOPT_HTTPHEADER => [").push(1,c.join(",\n"+r.indent+r.indent)).push("],"),o.push(1,s.join()).push("]);").blank().push("$response = curl_exec($curl);").push("$err = curl_error($curl);").blank().push("curl_close($curl);").blank().push("if ($err) {"),r.namedErrors?o.push(1,'echo array_flip(get_defined_constants(true)["curl"])[$err];'):o.push(1,'echo "cURL Error #:" . $err;'),o.push("} else {").push(1,"echo $response;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"}},8865:e=>{"use strict";const t=function(e,r,n){let a,o;switch(n||(n=""),Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:o="null";break;case"[object String]":o="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"'")+"'";break;case"[object Number]":o=e.toString();break;case"[object Array]":o=[],e.forEach((function(e){o.push(t(e,r+r,r))})),o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]";break;case"[object Object]":for(a in o=[],e)e.hasOwnProperty(a)&&o.push(t(a,r)+" => "+t(e[a],r+r,r));o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]"}return o};e.exports={convert:t,methods:["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"]}},6611:(e,t,r)=>{"use strict";const n=r(8865),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),o=new a(r.indent);if(r.noTags||o.push(r.shortTags?"setUrl(%s);",n.convert(e.url)),~n.methods.indexOf(e.method.toUpperCase())?o.push("$request->setMethod(HTTP_METH_%s);",e.method.toUpperCase()):o.push("$request->setMethod(HttpRequest::HTTP_METH_%s);",e.method.toUpperCase()),o.blank(),Object.keys(e.queryObj).length&&o.push("$request->setQueryData(%s);",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&o.push("$request->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),"application/x-www-form-urlencoded"===e.postData.mimeType)o.push("$request->setContentType(%s);",n.convert(e.postData.mimeType)).push("$request->setPostFields(%s);",n.convert(e.postData.paramsObj,r.indent)).blank();else e.postData.text&&o.push("$request->setBody(%s);",n.convert(e.postData.text)).blank();return o.push("try {").push(1,"$response = $request->send();").blank().push(1,"echo $response->getBody();").push("} catch (HttpException $ex) {").push(1,"echo $ex;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"}},2316:(e,t,r)=>{"use strict";const n=r(8865),a=r(174),o=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),i=new o(r.indent);let s=!1;switch(r.noTags||i.push(r.shortTags?"append(new http\\QueryString(%s));",n.convert(e.postData.paramsObj,r.indent)).blank(),s=!0;break;case"multipart/form-data":{const t=[],o={};e.postData.params.forEach((function(e){e.fileName?t.push({name:e.name,type:e.contentType,file:e.fileName,data:e.value}):e.value&&(o[e.name]=e.value)})),i.push("$body = new http\\Message\\Body;").push("$body->addForm(%s, %s);",Object.keys(o).length?n.convert(o,r.indent):"null",t.length?n.convert(t,r.indent):"null"),a.hasHeader(e.headersObj,"content-type")&&a.getHeader(e.headersObj,"content-type").indexOf("boundary")&&delete e.headersObj[a.getHeaderName(e.headersObj,"content-type")],i.blank(),s=!0;break}default:e.postData.text&&(i.push("$body = new http\\Message\\Body;").push("$body->append(%s);",n.convert(e.postData.text)).blank(),s=!0)}return i.push("$request->setRequestUrl(%s);",n.convert(e.url)).push("$request->setRequestMethod(%s);",n.convert(e.method)),s&&i.push("$request->setBody($body);").blank(),Object.keys(e.queryObj).length&&i.push("$request->setQuery(new http\\QueryString(%s));",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&i.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&i.blank().push("$client->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),i.push("$client->enqueue($request)->send();").push("$response = $client->getResponse();").blank().push("echo $response->getBody();"),!r.noTags&&r.closingTag&&i.blank().push("?>"),i.join()},e.exports.info={key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"}},8663:(e,t,r)=>{"use strict";e.exports={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:r(7149),http1:r(6611),http2:r(2316)}},3147:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e){return function(t,r){const o=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(t.method.toUpperCase()))return"Method not supported";const i=[],s=Object.keys(t.headersObj);return s.length&&(o.push("$headers=@{}"),s.forEach((function(e){"connection"!==e&&o.push('$headers.Add("%s", "%s")',e,t.headersObj[e])})),i.push("-Headers $headers")),t.cookies.length&&(o.push("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),t.cookies.forEach((function(e){o.push("$cookie = New-Object System.Net.Cookie"),o.push("$cookie.Name = '%s'",e.name),o.push("$cookie.Value = '%s'",e.value),o.push("$cookie.Domain = '%s'",t.uriObj.host),o.push("$session.Cookies.Add($cookie)")})),i.push("-WebSession $session")),t.postData.text&&(i.push("-ContentType '"+a.getHeader(t.allHeaders,"content-type")+"'"),i.push("-Body '"+t.postData.text+"'")),o.push("$response = %s -Uri '%s' -Method %s %s",e,t.fullUrl,t.method,i.join(" ")),o.join()}}},3218:(e,t,r)=>{"use strict";e.exports={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},webrequest:r(3699),restmethod:r(775)}},775:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-RestMethod"),e.exports.info={key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"}},3699:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-WebRequest"),e.exports.info={key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"}},246:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n,o){const i=a(o,n),s=a(o-1,n),l=r?",\n"+i:", ",c="object"===e?"{":"[",p="object"===e?"}":"]";return r?c+"\n"+i+t.join(l)+"\n"+s+p:c+t.join(l)+p}e.exports={literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o("array",e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o("object",a,t.pretty&&a.length>1,t.indent,r)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},3979:(e,t,r)=>{"use strict";e.exports={info:{key:"python",title:"Python",extname:".py",default:"python3"},python3:r(5887),requests:r(8493)}},5887:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("import http.client").blank();"https:"===e.uriObj.protocol?r.push('conn = http.client.HTTPSConnection("%s")',e.uriObj.host).blank():r.push('conn = http.client.HTTPConnection("%s")',e.uriObj.host).blank();const a=JSON.stringify(e.postData.text);a&&r.push("payload = %s",a).blank();const o=e.allHeaders,i=Object.keys(o).length;if(1===i)for(const e in o)r.push("headers = { '%s': \"%s\" }",e,o[e]).blank();else if(i>1){let e=1;r.push("headers = {");for(const t in o)e++!==i?r.push(" '%s': \"%s\",",t,o[t]):r.push(" '%s': \"%s\"",t,o[t]);r.push(" }").blank()}const s=e.method,l=e.uriObj.path;return a&&i?r.push('conn.request("%s", "%s", payload, headers)',s,l):a&&!i?r.push('conn.request("%s", "%s", payload)',s,l):!a&&i?r.push('conn.request("%s", "%s", headers=headers)',s,l):r.push('conn.request("%s", "%s")',s,l),r.blank().push("res = conn.getresponse()").push("data = res.read()").blank().push('print(data.decode("utf-8"))'),r.join()},e.exports.info={key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"}},8493:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544),o=r(246);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0},t),i=new a(r.indent);let s;i.push("import requests").blank(),i.push('url = "%s"',e.url).blank(),Object.keys(e.queryObj).length&&(s="querystring = "+JSON.stringify(e.queryObj),i.push(s).blank());let l=!1,c=!1;if("application/json"===e.postData.mimeType)e.postData.jsonObj&&(i.push("payload = %s",o.literalRepresentation(e.postData.jsonObj,r)),c=!0,l=!0);else{const t=JSON.stringify(e.postData.text);t&&(i.push("payload = %s",t),l=!0)}const p=e.allHeaders,d=Object.keys(p).length;if(1===d)for(const e in p)i.push('headers = {"%s": "%s"}',e,p[e]).blank();else if(d>1){let e=1;i.push("headers = {");for(const t in p)e++!==d?i.push(1,'"%s": "%s",',t,p[t]):i.push(1,'"%s": "%s"',t,p[t]);i.push("}").blank()}const u=e.method;let h=n.format('response = requests.request("%s", url',u);return l&&(h+=c?", json=payload":", data=payload"),d>0&&(h+=", headers=headers"),s&&(h+=", params=querystring"),h+=")",i.push(h).blank().push("print(response.text)"),i.join()},e.exports.info={key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"}},6064:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=new a;r.push("library(httr)").blank(),r.push('url <- "%s"',e.url).blank();const o=e.queryObj,i=Object.keys(o).length;if(delete e.queryObj.key,1===e.queryString.length)r.push('queryString <- list(%s = "%s")',Object.keys(o),Object.values(o).toString()).blank();else if(e.queryString.length>1){let e=1;r.push("queryString <- list(");for(const t in o)e++!=i-1?r.push(' %s = "%s",',t,o[t].toString()):r.push(' %s = "%s"',t,o[t].toString());r.push(")").blank()}const s=JSON.stringify(e.postData.text);if(s&&r.push("payload <- %s",s).blank(),e.postData.text||e.postData.jsonObj||e.postData.params)switch(e.postData.mimeType){case"application/x-www-form-urlencoded":r.push('encode <- "form"').blank();break;case"application/json":r.push('encode <- "json"').blank();break;case"multipart/form-data":r.push('encode <- "multipart"').blank();break;default:r.push('encode <- "raw"').blank()}const l=e.allHeaders;let c,p,d=Object.keys(l).length,u="";for(const e in l)"accept"===e.toLowerCase()?(p=', accept("'+l[e]+'")',d-=1):"cookie"===e.toLowerCase()?(c=", set_cookies(`"+l[e].replace(/;/g,'", `').replace(/` /g,"`").replace(/=/g,'` = "')+'")',d-=1):"content-type"!==e.toLowerCase()&&(u=u+e.replace("-","_")+" = '"+l[e],d>1&&(u+="', "));const h=e.method;let f=n.format('response <- VERB("%s", url',h);return s&&(f+=", body = payload"),""!==u&&(f+=", add_headers("+u+"')"),e.queryString.length&&(f+=", query = queryString"),f+=', content_type("'+e.postData.mimeType+'")',void 0!==p&&(f+=p),void 0!==c&&(f+=c),(e.postData.text||e.postData.jsonObj||e.postData.params)&&(f+=", encode = encode"),f+=")",r.push(f).blank().push('content(response, "text")'),r.join()},e.exports.info={key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"}},2817:(e,t,r)=>{"use strict";e.exports={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:r(6064)}},2682:(e,t,r)=>{"use strict";e.exports={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},native:r(5938)}},5938:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("require 'uri'").push("require 'net/http'"),"https:"===e.uriObj.protocol&&r.push("require 'openssl'"),r.blank();const a=e.method.toUpperCase(),o=a.charAt(0)+a.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].indexOf(a)<0&&r.push("class Net::HTTP::%s < Net::HTTPRequest",o).push(" METHOD = '%s'",a.toUpperCase()).push(" REQUEST_HAS_BODY = '%s'",e.postData.text?"true":"false").push(" RESPONSE_HAS_BODY = true").push("end").blank(),r.push('url = URI("%s")',e.fullUrl).blank().push("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.uriObj.protocol&&r.push("http.use_ssl = true").push("http.verify_mode = OpenSSL::SSL::VERIFY_NONE"),r.blank().push("request = Net::HTTP::%s.new(url)",o);const i=Object.keys(e.allHeaders);return i.length&&i.forEach((function(t){r.push("request[\"%s\"] = '%s'",t,e.allHeaders[t])})),e.postData.text&&r.push("request.body = %s",JSON.stringify(e.postData.text)),r.blank().push("response = http.request(request)").push("puts response.read_body"),r.join()},e.exports.info={key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"}},9326:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(174),i=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,binary:!1,globOff:!1},t),s=new i(r.indent,!1!==r.indent?" \\\n"+r.indent:" "),l=r.short?"-g":"--globoff",c=r.short?"-X":"--request";let p=a.quote(e.fullUrl);if(s.push("curl %s %s",c,e.method),r.globOff&&(p=unescape(p),s.push(l)),s.push(n.format("%s%s",r.short?"":"--url ",p)),"HTTP/1.0"===e.httpVersion&&s.push(r.short?"-0":"--http1.0"),"multipart/form-data"===e.postData.mimeType){const t=o.getHeaderName(e.headersObj,"content-type"),r=e.headersObj[t];if(t&&r){const n=r.replace(/; boundary.+?(?=(;|$))/,"");e.headersObj[t]=n,e.allHeaders[t]=n}}switch(Object.keys(e.headersObj).sort().forEach((function(t){const o=n.format("%s: %s",t,e.headersObj[t]);s.push("%s %s",r.short?"-H":"--header",a.quote(o))})),e.allHeaders.cookie&&s.push("%s %s",r.short?"-b":"--cookie",a.quote(e.allHeaders.cookie)),e.postData.mimeType){case"multipart/form-data":e.postData.params.forEach((function(e){let t="";t=e.fileName?n.format("%s=@%s",e.name,e.fileName):n.format("%s=%s",e.name,e.value),s.push("%s %s",r.short?"-F":"--form",a.quote(t))}));break;case"application/x-www-form-urlencoded":e.postData.params?e.postData.params.forEach((function(e){s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(n.format("%s=%s",e.name,e.value)))})):s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text));break;default:e.postData.text&&s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text))}return s.join()},e.exports.info={key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"}},9194:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");let s=!1;const l=[];if(r.headers&&l.push(r.short?"-h":"--headers"),r.body&&l.push(r.short?"-b":"--body"),r.verbose&&l.push(r.short?"-v":"--verbose"),r.print&&l.push(n.format("%s=%s",r.short?"-p":"--print",r.print)),r.verify&&l.push(n.format("--verify=%s",r.verify)),r.cert&&l.push(n.format("--cert=%s",r.cert)),r.pretty&&l.push(n.format("--pretty=%s",r.pretty)),r.style&&l.push(n.format("--style=%s",r.pretty)),r.timeout&&l.push(n.format("--timeout=%s",r.timeout)),r.queryParams){Object.keys(e.queryObj).forEach((function(t){const r=e.queryObj[t];Array.isArray(r)?r.forEach((function(e){i.push("%s==%s",t,a.quote(e))})):i.push("%s==%s",t,a.quote(r))}))}return Object.keys(e.allHeaders).sort().forEach((function(t){i.push("%s:%s",t,a.quote(e.allHeaders[t]))})),"application/x-www-form-urlencoded"===e.postData.mimeType?e.postData.params&&e.postData.params.length&&(l.push(r.short?"-f":"--form"),e.postData.params.forEach((function(e){i.push("%s=%s",e.name,a.quote(e.value))}))):s=!0,i.unshift("http %s%s %s",l.length?l.join(" ")+" ":"",e.method,a.quote(r.queryParams?e.url:e.fullUrl)),s&&e.postData.text&&i.unshift("echo %s | ",a.quote(e.postData.text)),i.join()},e.exports.info={key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"}},869:(e,t,r)=>{"use strict";e.exports={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},curl:r(9326),httpie:r(9194),wget:r(2616)}},2616:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,verbose:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");return r.verbose?i.push("wget %s",r.short?"-v":"--verbose"):i.push("wget %s",r.short?"-q":"--quiet"),i.push("--method %s",a.quote(e.method)),Object.keys(e.allHeaders).forEach((function(t){const r=n.format("%s: %s",t,e.allHeaders[t]);i.push("--header %s",a.quote(r))})),e.postData.text&&i.push("--body-data "+a.escape(a.quote(e.postData.text))),i.push(r.short?"-O":"--output-document").push("- %s",a.quote(e.fullUrl)),i.join()},e.exports.info={key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"}},3780:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n){const o=a(n,r),i=a(n-1,r),s=t?",\n"+o:", ";return t?"[\n"+o+e.join(s)+"\n"+i+"]":"["+e.join(s)+"]"}e.exports={literalDeclaration:function(e,t,r){return n.format("let %s = %s",e,this.literalRepresentation(t,r))},literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o(e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o(a,t.pretty&&a.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},4484:(e,t,r)=>{"use strict";e.exports={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},nsurlsession:r(7606)}},7606:(e,t,r)=>{"use strict";const n=r(3780),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("import Foundation"),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.literalDeclaration("headers",e.allHeaders,r))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('let postData = NSMutableData(data: "%s=%s".data(using: String.Encoding.utf8)!)',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t Void in").push(1,"if (error != nil) {").push(2,"print(error)").push(1,"} else {").push(2,"let httpResponse = response as? HTTPURLResponse").push(2,"print(httpResponse)").push(1,"}").push("})").blank().push("dataTask.resume()"),o.join()},e.exports.info={key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"}},645:(e,t)=>{t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,l=(1<>1,p=-7,d=r?a-1:0,u=r?-1:1,h=e[t+d];for(d+=u,o=h&(1<<-p)-1,h>>=-p,p+=s;p>0;o=256*o+e[t+d],d+=u,p-=8);for(i=o&(1<<-p)-1,o>>=-p,p+=n;p>0;i=256*i+e[t+d],d+=u,p-=8);if(0===o)o=1-c;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),o-=c}return(h?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,l,c=8*o-a-1,p=(1<>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=p?(s=0,i=p):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[r+h]=255&s,h+=f,s/=256,a-=8);for(i=i<0;e[r+h]=255&i,h+=f,i/=256,c-=8);e[r+h-f]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),a=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=s?o:i},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},a((function(){throw 42}),null,t)}catch(e){e!==r&&(a=null)}else a=null;var o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var u=document.all;l.call(u)===l.call(document.all)&&(d=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,r)=>{"use strict";var n,a=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,s=r(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),a=r(4289),o=r(8611),i=r(9415),s=r(3194),l=n(i(),Number);a(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),a=r(9415);e.exports=function(){var e=a();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},4290:e=>{"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},7777:e=>{"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},5692:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=o("Object.prototype.toString"),s=r(6410)(),l=r(7296),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!l&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},3320:(e,t,r)=>{"use strict";var n=r(7990),a=r(3150);function o(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(1364),e.exports.Schema=r(7657),e.exports.FAILSAFE_SCHEMA=r(4795),e.exports.JSON_SCHEMA=r(5966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(6601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=a.dump,e.exports.YAMLException=r(8425),e.exports.types={binary:r(3531),float:r(5215),map:r(945),null:r(151),pairs:r(6879),set:r(4982),timestamp:r(2156),bool:r(8771),int:r(1518),merge:r(7452),omap:r(1605),seq:r(6451),str:r(48)},e.exports.safeLoad=o("safeLoad","load"),e.exports.safeLoadAll=o("safeLoadAll","loadAll"),e.exports.safeDump=o("safeDump","dump")},8347:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r{"use strict";var n=r(8347),a=r(8425),o=r(6601),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l=65279,c=9,p=10,d=13,u=32,h=33,f=34,m=35,g=37,y=38,v=39,b=42,x=44,w=45,$=58,S=61,E=62,k=63,A=64,_=91,O=93,P=96,T=123,j=124,R=125,C={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function M(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new a("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}var L=1,N=2;function F(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,o,i,l,c;if(null===t)return{};for(r={},a=0,o=(n=Object.keys(t)).length;a=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Z(e){return/^\n* /.test(e)}var G=1,K=2,Y=3,J=4,X=5;function Q(e,t,r,n,a,o,i,s){var c,d,u=0,C=null,I=!1,D=!1,M=-1!==n,L=-1,F=H(d=V(e,0))&&d!==l&&!B(d)&&d!==w&&d!==k&&d!==$&&d!==x&&d!==_&&d!==O&&d!==T&&d!==R&&d!==m&&d!==y&&d!==b&&d!==h&&d!==j&&d!==S&&d!==E&&d!==v&&d!==f&&d!==g&&d!==A&&d!==P&&function(e){return!B(e)&&e!==$}(V(e,e.length-1));if(t||i)for(c=0;c=65536?c+=2:c++){if(!H(u=V(e,c)))return X;F=F&&W(u,C,s),C=u}else{for(c=0;c=65536?c+=2:c++){if((u=V(e,c))===p)I=!0,M&&(D=D||c-L-1>n&&" "!==e[L+1],L=c);else if(!H(u))return X;F=F&&W(u,C,s),C=u}D=D||M&&c-L-1>n&&" "!==e[L+1]}return I||D?r>9&&Z(e)?X:i?o===N?X:K:D?J:Y:!F||i||a(e)?o===N?X:K:G}function ee(e,t,r,n,o){e.dump=function(){if(0===t.length)return e.quotingType===N?'""':"''";if(!e.noCompatMode&&(-1!==I.indexOf(t)||D.test(t)))return e.quotingType===N?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Q(t,l,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+te(t,e.indent)+re(U(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,ne(e.slice(0,s),t)),i="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var l=n[1],c=n[2];r=" "===c[0],o+=l+(i||r||""===c?"":"\n")+ne(c,t),i=r}return o}(t,s),i));case X:return'"'+function(e){for(var t,r="",n=0,a=0;a=65536?a+=2:a++)n=V(e,a),!(t=C[n])&&H(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||M(n);return r}(t)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function te(e,t){var r=Z(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function re(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ne(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,o=0,i=0,s=0,l="";r=a.exec(e);)(s=r.index)-o>t&&(n=i>o?i:s,l+="\n"+e.slice(o,n),o=n+1),i=s;return l+="\n",e.length-o>t&&i>o?l+=e.slice(o,i)+"\n"+e.slice(i+1):l+=e.slice(o),l.slice(1)}function ae(e,t,r,n){var a,o,i,s="",l=e.tag;for(a=0,o=r.length;a tag resolver accepts not "'+d+'" style');n=p.represent[d](t,d)}e.dump=n}return!0}return!1}function ie(e,t,r,n,o,s,l){e.tag=null,e.dump=r,oe(e,r,!1)||oe(e,r,!0);var c,d=i.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var h,f,m="[object Object]"===d||"[object Array]"===d;if(m&&(f=-1!==(h=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(m&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===d)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var o,i,s,l,c,d,u="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=f.length;o1024)&&(e.dump&&p===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,c&&(d+=q(e,t)),ie(e,t+1,l,!0,c)&&(e.dump&&p===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=h,e.dump=u||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i,s,l="",c=e.tag,p=Object.keys(r);for(n=0,a=p.length;n1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ie(e,t,i,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===d)n&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?ae(e,t-1,e.dump,o):ae(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i="",s=e.tag;for(n=0,a=r.length;n",e.dump=c+" "+e.dump)}return!0}function se(e,t){var r,n,a=[],o=[];for(le(e,a,o),r=0,n=o.length;r{"use strict";function t(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},7990:(e,t,r)=>{"use strict";var n=r(8347),a=r(8425),o=r(192),i=r(6601),s=Object.prototype.hasOwnProperty,l=1,c=2,p=3,d=4,u=1,h=2,f=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function w(e){return 10===e||13===e}function $(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function E(e){return 44===e||91===e||93===e||123===e||125===e}function k(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),P=new Array(256),T=0;T<256;T++)O[T]=A(T)?1:0,P[T]=A(T);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function R(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=o(r),new a(t,r)}function C(e,t){throw R(e,t)}function I(e,t){e.onWarning&&e.onWarning.call(null,R(e,t))}var D={YAML:function(e,t,r){var n,a,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==r.length&&C(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&C(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),1!==a&&C(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&I(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&C(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],v.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),b.test(a)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){C(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function M(e,t,r,n){var a,o,i,s;if(t1&&(e.result+=n.repeat("\n",t-1))}function H(e,t){var r,n,a=e.tag,o=e.anchor,i=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),45===n)&&S(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,V(e,t,p,!1,!0),i.push(e.result),U(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)C(e,"bad indentation of a sequence entry");else if(e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt)&&(b&&(i=e.line,s=e.lineStart,l=e.position),V(e,t,d,!0,a)&&(b?y=e.result:v=e.result),b||(N(e,f,m,g,y,v,i,s,l),g=y=v=null),U(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==p)C(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?C(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?C(e,"repeat of an indentation width identifier"):(d=t+o-1,p=!0)}if($(i)){do{i=e.input.charCodeAt(++e.position)}while($(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!w(i)&&0!==i)}for(;0!==i;){for(F(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!p||e.lineIndentd&&(d=e.lineIndent),w(i))m++;else{if(e.lineIndent0){for(a=i,o=0;a>0;a--)(i=k(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+i:C(e,"expected hexadecimal character");e.result+=_(o),e.position++}else C(e,"unknown escape sequence");r=n=e.position}else w(s)?(M(e,r,n,!0),B(e,U(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(e,A)?I=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!E(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),s.call(e.anchorMap,r)||C(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],U(e,!0,-1),!0}(e)?function(e,t,r){var n,a,o,i,s,l,c,p,d=e.kind,u=e.result;if(S(p=e.input.charCodeAt(e.position))||E(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(S(n=e.input.charCodeAt(e.position+1))||r&&E(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,i=!1;0!==p;){if(58===p){if(S(n=e.input.charCodeAt(e.position+1))||r&&E(n))break}else if(35===p){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&E(p))break;if(w(p)){if(s=e.line,l=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}i&&(M(e,a,o,!1),B(e,e.line-s),a=o=e.position,i=!1),$(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return M(e,a,o,!1),!!e.result||(e.kind=d,e.result=u,!1)}(e,A,l===r)&&(I=!0,null===e.tag&&(e.tag="?")):(I=!0,null===e.tag&&null===e.anchor||C(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===j&&(I=g&&H(e,T))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&C(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),y=0,v=e.implicitTypes.length;y"),null!==e.result&&x.kind!==e.kind&&C(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):C(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}function Z(e){var t,r,n,a,o=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(U(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(i=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==a;){for(;$(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!w(a));break}if(w(a))break;for(t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&F(e),s.call(D,r)?D[r](e,r,n):I(e,'unknown document directive "'+r+'"')}U(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,U(e,!0,-1)):i&&C(e,"directives end mark is expected"),V(e,e.lineIndent-1,d,!1,!0),U(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(o,e.position))&&I(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,U(e,!0,-1)):e.position{"use strict";var n=r(8425),a=r(1364);function o(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function i(e){return this.extend(e)}i.prototype.extend=function(e){var t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(i.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=o(s,"implicit"),s.compiledExplicit=o(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";e.exports=r(5966)},6601:(e,t,r)=>{"use strict";e.exports=r(9471).extend({implicit:[r(2156),r(7452)],explicit:[r(3531),r(1605),r(6879),r(4982)]})},4795:(e,t,r)=>{"use strict";var n=r(7657);e.exports=new n({explicit:[r(48),r(6451),r(945)]})},5966:(e,t,r)=>{"use strict";e.exports=r(4795).extend({implicit:[r(151),r(8771),r(1518),r(5215)]})},192:(e,t,r)=>{"use strict";var n=r(8347);function a(e,t,r,n,a){var o="",i="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(i=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function o(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;r=i.exec(e.buffer);)l.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);var p,d,u="",h=Math.min(e.line+t.linesAfter,l.length).toString().length,f=t.maxLength-(t.indent+h+3);for(p=1;p<=t.linesBefore&&!(c-p<0);p++)d=a(e.buffer,s[c-p],l[c-p],e.position-(s[c]-s[c-p]),f),u=n.repeat(" ",t.indent)+o((e.line-p+1).toString(),h)+" | "+d.str+"\n"+u;for(d=a(e.buffer,s[c],l[c],e.position,f),u+=n.repeat(" ",t.indent)+o((e.line+1).toString(),h)+" | "+d.str+"\n",u+=n.repeat("-",t.indent+h+3+d.pos)+"^\n",p=1;p<=t.linesAfter&&!(c+p>=l.length);p++)d=a(e.buffer,s[c+p],l[c+p],e.position-(s[c]-s[c+p]),f),u+=n.repeat(" ",t.indent)+o((e.line+p+1).toString(),h)+" | "+d.str+"\n";return u.replace(/\n$/,"")}},1364:(e,t,r)=>{"use strict";var n=r(8425),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){i[String(t)]=e}))})),i),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3531:(e,t,r)=>{"use strict";var n=r(1364),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length,i=a;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=a,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(255&s)),s=s<<6|i.indexOf(n.charAt(t));return 0===(r=o%4*6)?(l.push(s>>16&255),l.push(s>>8&255),l.push(255&s)):18===r?(l.push(s>>10&255),l.push(s>>2&255)):12===r&&l.push(s>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length,s=a;for(t=0;t>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]),o=(o<<8)+e[t];return 0===(r=i%3)?(n+=s[o>>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]):2===r?(n+=s[o>>10&63],n+=s[o>>4&63],n+=s[o<<2&63],n+=s[64]):1===r&&(n+=s[o>>2&63],n+=s[o<<4&63],n+=s[64],n+=s[64]),n}})},8771:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5215:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364),o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var i=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},1518:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364);function o(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}e.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,s=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},945:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},7452:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},151:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},1605:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,s,l=[],c=e;for(t=0,r=c.length;t{"use strict";var n=r(1364),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4982:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(a.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},48:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},2156:(e,t,r)=>{"use strict";var n=r(1364),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==o.exec(e))},construct:function(e){var t,r,n,i,s,l,c,p,d=0,u=null;if(null===(t=a.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],l=+t[5],c=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(r,n,i,s,l,c,d)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},9461:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,a,o,i,s,l,c,p,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in n(o,i,s,l,c,p,d),o){var h=o[u];if(Array.isArray(h)){if(u in t.arrayKeywords)for(var f=0;f{var n="__lodash_hash_undefined__",a=1/0,o="[object Function]",i="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=f||m||Function("return this")();var y,v=Array.prototype,b=Function.prototype,x=Object.prototype,w=g["__core-js_shared__"],$=(y=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",S=b.toString,E=x.hasOwnProperty,k=x.toString,A=RegExp("^"+S.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=g.Symbol,O=v.splice,P=U(g,"Map"),T=U(Object,"create"),j=_?_.prototype:void 0,R=j?j.toString:void 0;function C(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=M(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new C,map:new(P||I),string:new C}},D.prototype.delete=function(e){return F(this,e).delete(e)},D.prototype.get=function(e){return F(this,e).get(e)},D.prototype.has=function(e){return F(this,e).has(e)},D.prototype.set=function(e,t){return F(this,e).set(e,t),this};var q=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return R?R.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var r=[];return p.test(e)&&r.push(""),e.replace(d,(function(e,t,n,a){r.push(n?a.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(H.Cache||D),r}H.Cache=D;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==s}e.exports=function(e,t,r){var n=null==e?void 0:L(e,t);return void 0===n?r:n}},2307:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",a=1,o=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",d="[object Date]",u="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",v="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",$="[object Set]",S="[object String]",E="[object Symbol]",k="[object Undefined]",A="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",P=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[l]=j[_]=j[p]=j[O]=j[d]=j[u]=j[h]=j[m]=j[g]=j[v]=j[w]=j[$]=j[S]=j[A]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,C="object"==typeof self&&self&&self.Object===Object&&self,I=R||C||Function("return this")(),D=t&&!t.nodeType&&t,M=D&&e&&!e.nodeType&&e,L=M&&M.exports===D,N=L&&R.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function q(e,t){for(var r=-1,n=null==e?0:e.length;++rc))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var u=-1,h=!0,f=r&o?new _e:void 0;for(s.set(e,t),s.set(t,e);++u-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(ue||ke),string:new Ee}},Ae.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Ne(this,e).get(e)},Ae.prototype.has=function(e){return Ne(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Ne(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,n),this},_e.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new ke,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!ue||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ae(n)}return r.set(e,t),this.size=r.size,this};var Ue=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Xe=U?function(e){return function(t){return e(t)}}(U):function(e){return Je(e)&&Ke(e.length)&&!!j[je(e)]};function Qe(e){return null!=(t=e)&&Ke(t.length)&&!Ge(t)?Pe(e):De(e);var t}e.exports=function(e,t){return Ce(e,t)}},2508:(e,t,r)=>{var n=r(4155),a=r(2830).Stream;e.exports=function(e,t){var r=new a,o=this,i=0,s=0,l=!1,c=!1,p=!1,d=0,u=!1;this.opts=t||{};var h=this.opts.failures?"failure":"error",f={};function m(e,t){var n=d+1;if(t===n?(void 0!==e&&r.emit.apply(r,["data",e]),d++,n++):f[t]=e,f.hasOwnProperty(n)){var a=f[n];return delete f[n],m(a,n)}s++,i===s&&(c&&(c=!1,r.emit("drain")),l&&y())}function g(e,t,n){p||(u=!0,e&&!o.opts.failures||m(t,n),e&&r.emit.apply(r,[h,e]),u=!1)}function y(e){if(l=!0,r.writable=!1,void 0!==e)return m(e,i);i==s&&(r.readable=!1,r.emit("end"),r.destroy())}return r.writable=!0,r.readable=!0,r.write=function(t){if(l)throw new Error("map stream is not writable");u=!1,i++;try{var r=(n=t,a=i,o=g,e.call(null,n,(function(e,t){o(e,t,a)})));return!(c=!1===r)}catch(e){if(u)throw e;return g(e),!c}var n,a,o},r.end=function(e){l||y()},r.destroy=function(){l=p=!0,r.writable=r.readable=c=!1,n.nextTick((function(){r.emit("close")}))},r.pause=function(){c=!0},r.resume=function(){c=!1},r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),a=r(5559),o=r(4244),i=r(5624),s=r(2281),l=a(i(),Object);n(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),a=r(4289);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=r(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=i(e),s=t&&"[object String]"===o.call(e),u=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!a.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var n=Array.prototype.slice,a=r(1414),o=Object.keys,i=o?function(e){return o(e)}:r(8987),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7549:(e,t,r)=>{e.exports=r(6547)},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},8325:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof o)){var k,A=1;if(v){if(!(k=i(w,S,e,y))||k.index>=e.length)break;var _=k.index,O=k.index+k[0].length,P=S;for(P+=$.value.length;_>=P;)P+=($=$.next).value.length;if(S=P-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(Pd.reach&&(d.reach=I);var D=$.prev;if(R&&(D=c(t,D,R),S+=R.length),p(t,D,A),$=c(t,D,new o(u,g?a.tokenize(j,g):j,b,j)),C&&c(t,$,C),A>1){var M={cause:u+","+f,reach:I};s(e,t,r,$.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function p(e,t,r){for(var n=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,o=r.code,i=r.immediateClose;e.postMessage(a.highlight(o,a.languages[n],n)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==r.g&&(r.g.Prism=n)},9016:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,n){return RegExp(t(e,r),n||"")}function n(e,t){for(var r=0;r>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(o),p=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),u=l(a+" "+o+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=n(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,u,m]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,$,p.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=k+"|"+E,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,C=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,R]),D=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function L(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,C)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:L(M,D)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},5251:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},7046:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},57:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,n=e.languages,a={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in a)if(a[s]){r=r||{};var l=o[s]?i(s):s;r[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},2503:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},9980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,n,a,o){if(r.language===n){var i=r.tokenStack=[];r.code=r.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==r.code.indexOf(a=t(n,s));)++s;return i[s]=e,a})),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,n){if(r.language===n&&r.tokenStack){r.grammar=e.languages[n];var a=0,o=Object.keys(r.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var p=o[a],d=r.tokenStack[p],u="string"==typeof c?c:c.content,h=t(n,p),f=u.indexOf(h);if(f>-1){++a;var m=u.substring(0,f),g=new e.Token(n,e.tokenize(d,r.grammar),"language-"+n,d),y=u.substring(f+h.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),y&&v.push.apply(v,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&i(c.content)}return s}(r.tokens)}}}})}(Prism)},4335:()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9945:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:a,punctuation:o};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},366:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},9385:()=>{!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)},3358:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},5712:()=>{!function(){if("undefined"!=typeof Prism){var e,t,r="";Prism.plugins.customClass={add:function(t){e=t},map:function(e){t="function"==typeof e?e:function(t){return e[t]||t}},prefix:function(e){r=e||""},apply:n},Prism.hooks.add("wrap",(function(a){if(e){var o=e({content:a.content,type:a.type,language:a.language});Array.isArray(o)?a.classes.push.apply(a.classes,o):o&&a.classes.push(o)}(t||r)&&(a.classes=a.classes.map((function(e){return n(e,a.language)})))}))}function n(e,n){return r+(t?t(e,n):e)}}()},4155:e=>{var t,r,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],c=!1,p=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):p=-1,l.length&&u())}function u(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++p1)for(var r=1;r{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(p=f.substr(0,m),d=f.substr(m+1)):(p=f,d=""),u=decodeURIComponent(p),h=decodeURIComponent(d),t(o,u)?Array.isArray(o[u])?o[u].push(h):o[u]=[o[u],h]:o[u]=h}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,a){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[a]))})).join(r):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},4281:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var a,o,i,s;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,r)=>{"use strict";var n=r(4155),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(9481),i=r(4229);r(5717)(p,o);for(var s=a(i.prototype),l=0;l{"use strict";e.exports=a;var n=r(4605);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(5717)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n,a=r(4155);e.exports=k,k.ReadableState=E;r(7187).EventEmitter;var o=function(e,t){return e.listeners(t).length},i=r(222),s=r(8764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,p=r(4616);c=p&&p.debuglog?p.debuglog("stream"):function(){};var d,u,h,f=r(7327),m=r(1195),g=r(2457).getHighWaterMark,y=r(4281).q,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,x=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(k,i);var $=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,a){n=n||r(6753),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",a),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(6753),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var o,i=e._readableState;if(null===t)i.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,i);else if(a||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(i,t)),o)$(e,o);else if(i.objectMode||t&&t.length>0)if("string"==typeof t||i.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)i.endEmitted?$(e,new w):_(e,i,t,!0);else if(i.ended)$(e,new b);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):R(e,i)):_(e,i,t,!1)}else n||(i.reading=!1,R(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function M(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){$(this,new x("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==a.stdout&&e!==a.stderr?l:g;function s(t,a){c("onunpipe"),t===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",u),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){c("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",s);var p=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",p);var d=!1;function u(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!d&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===o(e,"error")&&$(e,t)}function f(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||a.nextTick(D,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(I,this),r},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(M,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o{"use strict";e.exports=p;var n=r(4281).q,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(6753);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";var n,a=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=E;var i={deprecate:r(4927)},s=r(222),l=r(8764).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,d=r(1195),u=r(2457).getHighWaterMark,h=r(4281).q,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,x=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,$=d.errorOrDestroy;function S(){}function E(e,t,i){n=n||r(6753),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(a.nextTick(o,n),a.nextTick(j,e,t),e._writableState.errorEmitted=!0,$(e,n)):(o(n),e._writableState.errorEmitted=!0,$(e,n),j(e,t))}(e,r,n,t,o);else{var i=P(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?a.nextTick(_,e,r,i,o):_(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(6753));if(!t&&!p.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,a,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,p=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,p,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===k&&(e&&e._writableState instanceof E)}})):p=function(e){return e instanceof this},k.prototype.pipe=function(){$(this,new y)},k.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,s=!o.objectMode&&(n=e,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new x;$(e,r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||($(e,o),a.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,a,o){if(!r){var i=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,a);n!==i&&(r=!0,a="buffer",n=i)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,r)=>{"use strict";var n,a=r(4155);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(8610),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),p=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){a.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){a.nextTick((function(){e[c]?r(e[c]):t(f(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[p]?r(f(void 0,!0)):t[u](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[u])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,p,{value:e._readableState.endEmitted,writable:!0}),o(t,u,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[p]=!0})),e.on("readable",g.bind(null,r)),r}},7327:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,a=l.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=a,n=i,l.prototype.copy.call(t,r,n),i+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,o),0==(e-=o)){o===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return c(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1195:(e,t,r)=>{"use strict";var n=r(4155);function a(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,r)=>{"use strict";var n;var a=r(4281).q,o=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a0,(function(e){p||(p=e),e&&u.forEach(l),o||(u.forEach(l),d(p))}))}));return t.reduce(c)}},2457:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,a){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},222:(e,t,r)=>{e.exports=r(7187).EventEmitter},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725),t.finished=r(8610),t.pipeline=r(9946)},6464:e=>{"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var a=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=a)return r.substr(0,a);for(;a>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,a)}},9509:(e,t,r)=>{var n=r(8764),a=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(a.prototype),o(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},4563:(e,t,r)=>{var n=r(6547),a=r(2553).s;e.exports=function(e,t,r){var o=new a,i="",s=r&&r.maxLength;"function"==typeof e&&(t=e,e=null);e||(e=/\r?\n/);function l(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}void 0!==r&&e.queue(r)}else e.queue(r)}function c(t,r){var n=((null!=i?i:"")+r).split(e);i=n.pop(),s&&i.length>s&&t.emit("error",new Error("maximum buffer reached"));for(var a=0;a{e.exports=a;var n=r(7187).EventEmitter;function a(){n.call(this)}r(5717)(a,n),a.Readable=r(9481),a.Writable=r(4229),a.Duplex=r(6753),a.Transform=r(4605),a.PassThrough=r(2725),a.finished=r(8610),a.pipeline=r(9946),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(p(),0===n.listenerCount(this,"error"))throw e}function p(){r.removeListener("data",a),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",p),r.removeListener("close",p),e.removeListener("close",p)}return r.on("error",c),e.on("error",c),r.on("end",p),r.on("close",p),e.on("close",p),e.emit("pipe",r),e}},1815:(e,t,r)=>{var n=r(5122);e.exports=function(){var e=[].slice.call(arguments),t=e[0],r=e[e.length-1],a=n(t,r);if(1==e.length)return e[0];if(!e.length)throw new Error("connect called with empty args");function o(){var e=[].slice.call(arguments);e.unshift("error"),a.emit.apply(a,e)}!function e(t){t.length<2||(t[0].pipe(t[1]),e(t.slice(1)))}(e);for(var i=1;i{var n=r(1989),a=r(5676),o=r(7529),i=r(584),s=r(8575),l=t;l.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var a=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||a,l=e.hostname||e.host,c=e.port,p=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?i+"//"+l:"")+(c?":"+c:"")+p,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=a.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=i,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(e,t,r)=>{var n;function a(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=a();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(r.g.fetch)&&i(r.g.ReadableStream),t.writableStream=i(r.g.WritableStream),t.abortController=i(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!a()&&i(a().overrideMimeType),n=null},1989:(e,t,r)=>{var n=r(8764).Buffer,a=r(4155),o=r(8725),i=r(5717),s=r(5676),l=r(8473),c=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var a=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)a=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,a),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(d,l.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===u.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var l=null;if(o.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new r.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(i)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},d.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},d.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(e,t,r)=>{var n=r(4155),a=r(8764).Buffer,o=r(8725),i=r(5717),s=r(8473),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,i){var l=this;if(s.Readable.call(l),l._mode=r,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){n.nextTick((function(){l.emit("close")}))})),"fetch"===r){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){l._destroyed?r():l.push(a.from(e))?t():l._resumeFetch=t}))},close:function(){i(!0),l._destroyed||l.push(null)},abort:function(e){i(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}catch(e){}}var p=t.body.getReader();!function e(){p.read().then((function(t){l._destroyed||(i(t.done),t.done?l.push(null):(l.push(a.from(t.value)),e()))})).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var u=d.match(/;\s*charset=([^;])(;|$)/);u&&(l._charset=u[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=a.alloc(i.length),c=0;ct._pos&&(t.push(a.from(new Uint8Array(p.result.slice(t._pos)))),t._pos=p.result.byteLength)},p.onload=function(){e(!0),t.push(null)},p.readAsArrayBuffer(o)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},2553:(e,t,r)=>{"use strict";var n=r(9509).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=p,this.end=d,t=3;break;default:return this.write=u,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4110:(e,t,r)=>{"use strict";const n=r(7777),a=r(4290),o=r(6841).Z;e.exports=(e,t,r)=>{const i=[];return function e(t,r,s){let l;(r=r||{}).indent=r.indent||"\t",s=s||"",l=void 0===r.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:s,indent:s+r.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const c=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),"\n").replace(new RegExp(l.pad,"g"),s).replace(new RegExp(l.indent,"g"),s+r.indent)};if(-1!==i.indexOf(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||n(t))return String(t);if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";i.push(t);const n="["+l.newLine+t.map(((n,a)=>{const o=t.length-1===a?l.newLine:","+l.newLineOrSpace;let i=e(n,r,s+r.indent);return r.transform&&(i=r.transform(t,a,i)),l.indent+i+o})).join("")+l.pad+"]";return i.pop(),c(n)}if(a(t)){let n=Object.keys(t).concat(o(t));if(r.filter&&(n=n.filter((e=>r.filter(t,e)))),0===n.length)return"{}";i.push(t);const a="{"+l.newLine+n.map(((a,o)=>{const i=n.length-1===o?l.newLine:","+l.newLineOrSpace,c="symbol"==typeof a,p=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(a),d=c||p?a:e(a,r);let u=e(t[a],r,s+r.indent);return r.transform&&(u=r.transform(t,a,u)),l.indent+String(d)+": "+u+i})).join("")+l.pad+"}";return i.pop(),c(a)}return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`}(e,t,r)}},9682:(e,t,r)=>{"use strict";e.exports=r(7325)},6547:(e,t,r)=>{var n=r(4155),a=r(2830);function o(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,i=!1,s=[],l=!1,c=new a;function p(){for(;s.length&&!c.paused;){var e=s.shift();if(null===e)return c.emit("end");c.emit("data",e)}}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&!1===r.autoDestroy),c.write=function(t){return e.call(this,t),!c.paused},c.queue=c.push=function(e){return l||(null===e&&(l=!0),s.push(e),p()),c},c.on("end",(function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick((function(){c.destroy()}))})),c.end=function(e){if(!o)return o=!0,arguments.length&&c.write(e),c.writable=!1,t.call(c),!c.readable&&c.autoDestroy&&c.destroy(),c},c.destroy=function(){if(!i)return i=!0,o=!0,s.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),p(),c.paused||c.emit("drain"),c},c}e.exports=o,o.through=o},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=h-f,A=Math.floor,_=String.fromCharCode;function O(e){throw new RangeError(E[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function T(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function j(e){for(var t=[],r=0,n=e.length;r=55296&&a<=56319&&r>1,e+=A(e/t);e>k*m>>1;n+=h)e=A(e/k);return A(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,a=b,o=v,i=e.lastIndexOf(x);i<0&&(i=0);for(var s=0;s=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l=r&&O("invalid-input");var g=R(e.charCodeAt(l++));(g>=h||g>A((u-n)/p))&&O("overflow"),n+=g*p;var y=d<=o?f:d>=o+m?m:d-o;if(gA(u/w)&&O("overflow"),p*=w}var $=t.length+1;o=I(n-c,$,0==c),A(n/$)>u-a&&O("overflow"),a+=A(n/$),n%=$,t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=j(e)).length,n=b,a=0,o=v,i=!0,s=!1,l=void 0;try{for(var c,p=e[Symbol.iterator]();!(i=(c=p.next()).done);i=!0){var d=c.value;d<128&&t.push(_(d))}}catch(e){s=!0,l=e}finally{try{!i&&p.return&&p.return()}finally{if(s)throw l}}var g=t.length,y=g;for(g&&t.push(x);y=n&&TA((u-a)/R)&&O("overflow"),a+=(w-n)*R,n=w;var D=!0,M=!1,L=void 0;try{for(var N,F=e[Symbol.iterator]();!(D=(N=F.next()).done);D=!0){var U=N.value;if(Uu&&O("overflow"),U==n){for(var q=a,B=h;;B+=h){var H=B<=o?f:B>=o+m?m:B-o;if(q>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r=194&&a<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&a)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(a>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function H(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,a)),e}function z(e){return e.replace(/^0*(.*)/,"$1")||"0"}function W(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=p(r,2)[1];return n?n.split(".").map(z).join("."):e}function V(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=p(r,3),a=n[1],o=n[2];if(a){for(var i=a.toLowerCase().split("::").reverse(),s=p(i,2),l=s[0],c=s[1],d=c?c.split(":").map(z):[],u=l.split(":").map(z),h=t.IPV4ADDRESS.test(u[u.length-1]),f=h?7:8,m=u.length-f,g=Array(f),y=0;y1){var x=g.slice(0,v.index),w=g.slice(v.index+v.length);b=x.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var Z=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(Z);if(a){G?(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5])):(r.scheme=a[1]||void 0,r.userinfo=-1!==e.indexOf("@")?a[3]:void 0,r.host=-1!==e.indexOf("//")?a[4]:void 0,r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=-1!==e.indexOf("?")?a[7]:void 0,r.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),r.host&&(r.host=V(W(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)H(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=F.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}H(r,l)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(V(W(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Q=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Q))e=e.replace(Q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],a=U[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?F.toUnicode(e.host):F.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}H(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||a&&a.absolutePath||(i=te(i)),void 0===o&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ae(e,t,r){var n=i({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,q)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var ue={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=p(r,2),a=n[0],o=n[1];e.path=a&&"/"!==a?a:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize},fe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),$e=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ee=new RegExp(t("[^]",me,xe),"g"),ke=Ee;function Ae(e){var t=B(e);return t.match(we)?t:e}var _e={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var a=!1,o={},i=r.query.split("&"),s=0,l=i.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,w=Math.floor,$=String.fromCharCode;function S(e){throw RangeError(b[e])}function E(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+E((e=e.replace(v,".")).split("."),t).join(".")}function A(e){for(var t,r,n=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=$((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=$(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?w(e/u):e>>1,e+=w(e/t);e>x*p>>1;n+=l)e=w(e/x);return w(n+(x+1)*e/(e+d))}function T(e){var t,r,n,a,o,i,d,u,g,y,v,b=[],x=e.length,$=0,E=f,k=h;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n=128&&S("not-basic"),b.push(e.charCodeAt(n));for(a=r>0?r+1:0;a=x&&S("invalid-input"),((u=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||u>w((s-$)/i))&&S("overflow"),$+=u*i,!(u<(g=d<=k?c:d>=k+p?p:d-k));d+=l)i>w(s/(y=l-g))&&S("overflow"),i*=y;k=P($-o,t=b.length+1,0==o),w($/t)>s-E&&S("overflow"),E+=w($/t),$%=t,b.splice($++,0,E)}return _(b)}function j(e){var t,r,n,a,o,i,d,u,g,y,v,b,x,E,k,_=[];for(b=(e=A(e)).length,t=f,r=0,o=h,i=0;i=t&&vw((s-r)/(x=n+1))&&S("overflow"),r+=(d-t)*x,t=d,i=0;is&&S("overflow"),v==t){for(u=r,g=l;!(u<(y=g<=o?c:g>=o+p?p:g-o));g+=l)k=u-y,E=l-y,_.push($(O(y+k%E,0))),u=w(k/E);_.push($(O(u,0))),o=P(r,x,n==a),r=0,++n}++r,++t}return _.join("")}i={version:"1.3.2",ucs2:{decode:A,encode:_},decode:T,encode:j,toASCII:function(e){return k(e,(function(e){return y.test(e)?"xn--"+j(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),a=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),d=["%","/","?",";","#"].concat(p),u=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function b(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?C+="x":C+=R[I];if(!C.match(h)){var M=T.slice(0,_),L=T.slice(_+1),N=R.match(f);N&&(M.push(N[1]),L.unshift(N[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[$])for(_=0,j=p.length;_0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,_=0,O=S.length;O>=0;O--)"."===(k=S[O])?S.splice(O,1):".."===k?(S.splice(O,1),_++):_&&(S.splice(O,1),_--);if(!w&&!$)for(;_--;_)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var P,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(r.hostname=r.host=T?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function a(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(a("noDeprecation"))return e;var r=!1;return function(){if(!r){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),a=r(8662),o=r(6430),i=r(5692);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,p=s(Object.prototype.toString),d=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function b(e){return"[object WeakMap]"===p(e)}function x(e){return"[object WeakSet]"===p(e)}function w(e){return"[object ArrayBuffer]"===p(e)}function $(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===p(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=a,t.isTypedArray=i,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=$,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function _(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function O(e){return g(e,d)}function P(e){return g(e,u)}function T(e){return g(e,h)}function j(e){return l&&g(e,f)}function R(e){return c&&g(e,m)}t.isSharedArrayBuffer=_,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=O,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=j,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return O(e)||P(e)||T(e)||j(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&($(e)||_(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),a=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var r=p.styles[t];return r?"["+p.colors[r][0]+"m"+e+"["+p.colors[r][1]+"m":e}function u(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return x(a)||(a=h(e,a,n)),a}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var i=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),k(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return f(r);if(0===i.length){if(A(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,p="",d=!1,u=["{","}"];(g(r)&&(d=!0,u=["[","]"]),A(r))&&(p=" [Function"+(r.name?": "+r.name:"")+"]");return $(r)&&(p=" "+RegExp.prototype.toString.call(r)),E(r)&&(p=" "+Date.prototype.toUTCString.call(r)),k(r)&&(p=" "+f(r)),0!==i.length||d&&0!=r.length?n<0?$(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=d?function(e,t,r,n,a){for(var o=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,p,u)):u[0]+p+u[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,o){var i,s,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(n,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(i)){if(o&&a.match(/^\d+$/))return s;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function x(e){return"string"==typeof e}function w(e){return void 0===e}function $(e){return S(e)&&"[object RegExp]"===_(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===_(e)}function k(e){return S(e)&&("[object Error]"===_(e)||e instanceof Error)}function A(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);a.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=$,t.types.isRegExp=$,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;a.log("%s - %s",(e=new Date,r=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),a=[],o=0;o{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=Ge(r(8469)),o=Ge(r(7536)),i=Ge(r(1359)),s=Ge(r(557)),l=Ge(r(2315)),c=Ge(r(9466)),p=Ge(r(661)),d=Ge(r(3868)),u=Ge(r(2492)),h=Ge(r(8999)),f=Ge(r(1028)),m=Ge(r(7795)),g=Ge(r(221)),y=Ge(r(2549)),v=Ge(r(3494)),b=Ge(r(9493)),x=Ge(r(7380)),w=Ze(r(9234)),$=Ze(r(4583)),S=Ge(r(4986)),E=Ge(r(1513)),k=Ge(r(4595)),A=Ge(r(3928)),_=Ge(r(7245)),O=Ge(r(5566)),P=Ge(r(4094)),T=Ge(r(7146)),j=Ge(r(2941)),R=Ge(r(9019)),C=Ge(r(3590)),I=Ge(r(6826)),D=Ge(r(2828)),M=Ge(r(937)),L=Ze(r(9146)),N=Ge(r(5218)),F=Ge(r(7117)),U=Ge(r(6090)),q=Ge(r(8335)),B=Ge(r(6298)),H=Ge(r(6454)),z=Ge(r(6648)),W=Ge(r(4339)),V=Ze(r(8177)),Z=Ge(r(2438)),G=Ge(r(368)),K=Ge(r(8874)),Y=Ge(r(4979)),J=Ge(r(1008)),X=Ge(r(4069)),Q=Ge(r(4958)),ee=Ge(r(3235)),te=Ge(r(7278)),re=Ge(r(9131)),ne=Ge(r(3315)),ae=Ge(r(1464)),oe=Ge(r(7228)),ie=Ge(r(1592)),se=Ge(r(682)),le=Ge(r(9396)),ce=Ge(r(5807)),pe=Ge(r(7148)),de=Ge(r(7612)),ue=Ge(r(9887)),he=Ge(r(3058)),fe=Ze(r(8355)),me=Ge(r(2129)),ge=Ge(r(94)),ye=Ge(r(8021)),ve=Ge(r(9211)),be=Ge(r(5061)),xe=Ge(r(4611)),we=Ge(r(1727)),$e=Ge(r(6776)),Se=Ge(r(9963)),Ee=Ge(r(2782)),ke=Ge(r(5008)),Ae=Ge(r(2689)),_e=Ge(r(8983)),Oe=Ge(r(2776)),Pe=Ge(r(4554)),Te=Ge(r(478)),je=Ze(r(8140)),Re=Ge(r(4959)),Ce=Ge(r(9778)),Ie=Ge(r(4790)),De=Ge(r(5152)),Me=Ge(r(4816)),Le=Ge(r(8035)),Ne=Ge(r(4714)),Fe=Ge(r(4928)),Ue=Ge(r(8346)),qe=Ge(r(2900)),Be=Ge(r(8220)),He=Ge(r(2786)),ze=Ge(r(7633)),We=Ge(r(5977));function Ve(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ve=function(){return e},e}function Ze(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ve();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function Ge(e){return e&&e.__esModule?e:{default:e}}var Ke={version:"13.9.0",toDate:a.default,toFloat:o.default,toInt:i.default,toBoolean:s.default,equals:l.default,contains:c.default,matches:p.default,isEmail:d.default,isURL:u.default,isMACAddress:h.default,isIP:f.default,isIPRange:m.default,isFQDN:g.default,isBoolean:b.default,isIBAN:V.default,isBIC:Z.default,isAlpha:w.default,isAlphaLocales:w.locales,isAlphanumeric:$.default,isAlphanumericLocales:$.locales,isNumeric:S.default,isPassportNumber:E.default,isPort:k.default,isLowercase:A.default,isUppercase:_.default,isAscii:P.default,isFullWidth:T.default,isHalfWidth:j.default,isVariableWidth:R.default,isMultibyte:C.default,isSemVer:I.default,isSurrogatePair:D.default,isInt:M.default,isIMEI:O.default,isFloat:L.default,isFloatLocales:L.locales,isDecimal:N.default,isHexadecimal:F.default,isOctal:U.default,isDivisibleBy:q.default,isHexColor:B.default,isRgbColor:H.default,isHSL:z.default,isISRC:W.default,isMD5:G.default,isHash:K.default,isJWT:Y.default,isJSON:J.default,isEmpty:X.default,isLength:Q.default,isLocale:x.default,isByteLength:ee.default,isUUID:te.default,isMongoId:re.default,isAfter:ne.default,isBefore:ae.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:se.default,isIdentityCard:le.default,isEAN:ce.default,isISIN:pe.default,isISBN:de.default,isISSN:ue.default,isMobilePhone:fe.default,isMobilePhoneLocales:fe.locales,isPostalCode:je.default,isPostalCodeLocales:je.locales,isEthereumAddress:me.default,isCurrency:ge.default,isBtcAddress:ye.default,isISO6391:ve.default,isISO8601:be.default,isRFC3339:xe.default,isISO31661Alpha2:we.default,isISO31661Alpha3:$e.default,isISO4217:Se.default,isBase32:Ee.default,isBase58:ke.default,isBase64:Ae.default,isDataURI:_e.default,isMagnetURI:Oe.default,isMimeType:Pe.default,isLatLong:Te.default,ltrim:Re.default,rtrim:Ce.default,trim:Ie.default,escape:De.default,unescape:Me.default,stripLow:Le.default,whitelist:Ne.default,blacklist:Fe.default,isWhitelisted:Ue.default,normalizeEmail:qe.default,toString,isSlug:Be.default,isStrongPassword:ze.default,isTaxID:he.default,isDate:y.default,isTime:v.default,isLicensePlate:He.default,isVAT:We.default,ibanLocales:V.locales};t.default=Ke,e.exports=t.default,e.exports.default=t.default},79:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.bengaliLocales=t.farsiLocales=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var r={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};t.alpha=r;var n={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};t.alphanumeric=n;var a={"en-US":".",ar:"٫"};t.decimal=a;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=o;for(var i,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,n.default)(e),(r=(0,o.default)(r,s)).ignoreCase)return e.toLowerCase().split((0,a.default)(t).toLowerCase()).length>r.minOccurrences;return e.split((0,a.default)(t)).length>r.minOccurrences};var n=i(r(5571)),a=i(r(1913)),o=i(r(4808));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},2315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),n=(0,a.default)(r),o=(0,a.default)(e);return!!(o&&n&&o>n)};var n,a=(n=r(8469))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alpha)return o.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alpha);t.locales=i},4583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alphanumeric)return o.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alphanumeric);t.locales=i},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},2438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.slice(4,6).toUpperCase();if(!o.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(1727);var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},2782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,l)).crockford)return s.test(e);if(e.length%8==0&&i.test(e))return!0;return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,s=/^[A-HJKMNP-TV-Z0-9]+$/,l={crockford:!1};e.exports=t.default,e.exports.default=t.default},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),o.test(e))return!0;return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},2689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,a.default)(t,l);var r=e.length;if(t.urlSafe)return s.test(e);if(r%4!=0||i.test(e))return!1;var o=e.indexOf("=");return-1===o||o===r-1||o===r-2&&"="===e[r-1]};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,l={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,a.default)(t),o=(0,a.default)(e);return!!(o&&r&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,a.default)(e),t.loose)return s.includes(e.toLowerCase());return i.includes(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={loose:!1},i=["true","false","1","0"],s=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},8021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},3235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===n||i<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var r=t.provider,o=e.replace(/[- ]+/g,"");if(r&&r.toLowerCase()in i){if(!i[r.toLowerCase()].test(o))return!1}else{if(r&&!(r.toLowerCase()in i))throw new Error("".concat(r," is not a valid credit card provider."));if(!s.test(o))return!1}return(0,a.default)(e)};var n=o(r(5571)),a=o(r(1592));function o(e){return e&&e.__esModule?e:{default:e}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},s=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",a="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",a].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t=(0,n.default)(t,i)).test(e)};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},8983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.split(",");if(t.length<2)return!1;var r=t.shift().trim().split(";"),n=r.shift();if("data:"!==n.slice(0,5))return!1;var l=n.slice(5);if(""!==l&&!o.test(l))return!1;for(var c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,a.default)({format:t},s):(0,a.default)(t,s);if("string"==typeof e&&(g=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g))){var r,n=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),i=t.strictMode?n:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),l=function(e,t){for(var r=[],n=Math.min(e.length,t.length),a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(l);try{for(p.s();!(r=p.n()).done;){var d=(f=r.value,m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(f,m)||o(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],h=d[1];if(u.length!==h.length)return!1;c[h.charAt(0)]=u}}catch(e){p.e(e)}finally{p.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var f,m;var g;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,l)).locale in i.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(4808)),a=s(r(5571)),o=s(r(8343)),i=r(79);function s(e){return e&&e.__esModule?e:{default:e}}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},8335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,a.default)(e)%parseInt(t,10)==0};var n=o(r(5571)),a=o(r(7536));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},5807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=Number(e.slice(-1));return s.test(e)&&t===(r=e,n=10-r.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===o||e===i?t%2==0?3:1:t%2==0?1:3}(r.length,t)})).reduce((function(e,t){return e+t}),0)%10,n<10?n:0);var r,n};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=8,i=14,s=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(p);if(r){var l=r[1];if(e=e.replace(l,"").replace(/(^<|>$)/g,""),l.endsWith(" ")&&(l=l.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(l))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var x=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var w=(x=x.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var $=w.split("."),S=0;S<$.length;S++)if(!u.test($[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(x,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.slice(1,-1);if(0===E.length||!(0,s.default)(E))return!1}}if('"'===x[0])return x=x.slice(1,x.length-1),t.allow_utf8_local_part?m.test(x):h.test(x);for(var k=t.allow_utf8_local_part?f:d,A=x.split("."),_=0;_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,a.default)(t,i)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,a.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.decimal);t.locales=i},7146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.fullWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},6648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return o.test(t);return i.test(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},2941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.halfWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},8874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-fA-F0-9]{".concat(o[t],"}$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},8177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in o&&o[r].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var i=Object.keys(o);t.locales=i},5566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o;(t=t||{}).allow_hyphens&&(r=i);if(!r.test(e))return!1;e=e.replace(/-/g,"");for(var n=0,s=2,l=0;l<14;l++){var c=e.substring(14-l-1,14-l),p=parseInt(c,10)*s;n+=p>=10?p%10+1:p,1===s?s+=1:s-=1}if((10-n%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},1028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,a.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return s.test(t);if("6"===r)return c.test(t);return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(o,"[.]){3}").concat(o),s=new RegExp("^".concat(i,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(i,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(i,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(i,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(i,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(i,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(i,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(i,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},7795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var r=e.split("/");if(2!==r.length)return!1;if(!i.test(r[1]))return!1;if(r[1].length>1&&r[1].startsWith("0"))return!1;if(!(0,a.default)(r[0],t))return!1;var o=null;switch(String(t)){case"4":o=s;break;case"6":o=l;break;default:o=(0,a.default)(r[0],"6")?l:s}return r[1]<=o&&r[1]>=0};var n=o(r(5571)),a=o(r(1028));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,s=32,l=128;e.exports=t.default,e.exports.default=t.default},7612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t);var n=String((null==r?void 0:r.version)||r);if(!(null!=r&&r.version||r))return e(t,{version:10})||e(t,{version:13});var l=t.replace(/[\s-]+/g,""),c=0;if("10"===n){if(!o.test(l))return!1;for(var p=0;p{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=!0,r=0,n=e.length-2;n>=0;n--)if(e[n]>="A"&&e[n]<="Z")for(var i=e[n].charCodeAt(0)-55,s=0,l=[i%10,Math.trunc(i/10)];s=5?1+2*(c-5):2*c:c,t=!t}else{var p=e[n].charCodeAt(0)-"0".charCodeAt(0);r+=t?p>=5?1+2*(p-5):2*p:p,t=!t}var d=10*Math.trunc((r+9)/10)-r;return+e[e.length-1]===d};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},1727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CountryCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var i=o;t.CountryCodes=i},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},9963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CurrencyCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var i=o;t.CurrencyCodes=i},9211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},5061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=t.strictSeparator?i.test(e):o.test(e);return r&&t.strict?s(e):r};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var a=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=a[1],i=a[2],s=a[3],l=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,p=new Date("".concat(o,"-").concat(l||"01","-").concat(c||"01"));return!i||!s||p.getUTCFullYear()===o&&p.getUTCMonth()+1===i&&p.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default},4339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},9887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),i=0,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in i)return i[t](e);if("any"===t){for(var r in i){if(i.hasOwnProperty(r))if((0,i[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=o(r(5571)),a=o(r(937));function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,a.default)(e,{allow_leading_zeroes:!0})){var r=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0)%10,o=Number(e.charAt(e.length-1));if(0===r&&0===o||o===10-r)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var a=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][a%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var a=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){a=t[a][r[n%8][e]]})),0===a},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,a=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&a===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,a=0,o=0;o9?r-9:r;return a%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],a=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),a=new Date(t,r-1,n);return!(a>new Date)&&(a.getFullYear()===t&&a.getMonth()===r-1&&a.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return a[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=i(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var a=t[r];return a%10*9+Math.floor(a/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default},7228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(r in t)({}).hasOwnProperty.call(t,r)&&(o[r]=(0,a.default)(t[r]));return o.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(5571)),a=o(r(1913));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:i,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,l=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&l&&c};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},1008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,a.default)(t,s);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var o=JSON.parse(e);return r.includes(o)||!!o&&"object"===i(o)}catch(e){}return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},4979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),r=t.length;if(r>3||r<2)return!1;return t.reduce((function(e,t){return e&&(0,a.default)(t,{urlSafe:!0})}),!0)};var n=o(r(5571)),a=o(r(2689));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,a.default)(t,p),!e.includes(","))return!1;var r=e.split(",");if(r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("("))return!1;if(t.checkDMS)return l.test(r[0])&&c.test(r[1]);return i.test(r[0])&&s.test(r[1])};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},4958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1]||0,n=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-i.length-s.length;return l>=r&&(void 0===n||l<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},2786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o){if((0,o[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},7380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default},3928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);for(var t,r,n,o=e.replace(/[- ]+/g,""),i=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),r=parseInt(t,10),i+=n&&(r*=2)>=10?r%10+1:r,n=!n;return!(i%10!=0||!o)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t),null!=r&&r.eui&&(r.eui=String(r.eui));if(null!=r&&r.no_colons||null!=r&&r.no_separators)return"48"===r.eui?i.test(t):"64"===r.eui?c.test(t):i.test(t)||c.test(t);if("48"===(null==r?void 0:r.eui))return o.test(t)||s.test(t);if("64"===(null==r?void 0:r.eui))return l.test(t)||p.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,c=/^([0-9a-fA-F]){16}$/,p=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),0!==e.indexOf("magnet:?"))return!1;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},4554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)||s.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},8355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,a.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(o.hasOwnProperty(t)&&o[t].test(e))return!0;return!1}));if(t in o)return o[t].test(e);if(!t||"any"===t){for(var n in o){if(o.hasOwnProperty(n))if(o[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};o["en-CA"]=o["en-US"],o["fr-CA"]=o["en-CA"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],o["zh-MO"]=o["en-MO"],o["ga-IE"]=o["en-IE"],o["fr-CH"]=o["de-CH"],o["it-CH"]=o["fr-CH"];var i=Object.keys(o);t.locales=i},9131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,a.default)(e)&&24===e.length};var n=o(r(5571)),a=o(r(7117));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},3590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?o.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},6090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},1513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in o&&o[t].test(r)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},4595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var n,a=(n=r(937))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^\d{3}$/,i=/^\d{4}$/,s=/^\d{5}$/,l=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:i,DO:s,DZ:s,EE:s,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:s,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:o,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:s,MG:o,MX:s,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:s,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:s,TN:i,TW:/^\d{3}(\d{2})?$/,UA:s,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:s},p=Object.keys(c);t.locales=p},4611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),u.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,s=new RegExp("[-+]".concat(o.source,":").concat(i.source)),l=new RegExp("([zZ]|".concat(s.source,")")),c=new RegExp("".concat(o.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),p=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(c.source).concat(l.source)),u=new RegExp("^".concat(p.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},6454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,a.default)(e),!t)return o.test(e)||i.test(e);return o.test(e)||i.test(e)||s.test(e)||l.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,l=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},6826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),o.test(e)};var n=a(r(5571));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,a(r(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},7633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,a.default)(e);var r=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:s.test(e)?r.lowercaseCount+=t[e]:l.test(e)?r.numberCount+=t[e]:c.test(e)&&(r.symbolCount+=t[e])})),r}(e);if((t=(0,n.default)(t||{},p)).returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(r,t);return r.length>=t.minLength&&r.lowercaseCount>=t.minLowercase&&r.uppercaseCount>=t.minUppercase&&r.numberCount>=t.minNumbers&&r.symbolCount>=t.minSymbols};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,s=/^[a-z]$/,l=/^[0-9]$/,c=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},2828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},3058:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,a.default)(e);var r=e.slice(0);if(t in h)return t in g&&(r=r.replace(g[t],"")),!!h[t].test(r)&&(!(t in f)||f[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var a=l(r(5571)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672)),i=l(r(2549));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var h={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var f={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,l=0;l50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var a=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===a))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,l=0;l58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=4,s=0;s<9;s++)a+=n[s]*o,1===(o-=1)&&(o=7);return 1!==(a%=11)&&(0===a?0===n[9]:n[9]===11-a)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,c(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=1,s=0;s<10;s++)a+=n[s]*o,10===(o+=1)&&(o=1);if(a%11==10){a=0,o=3;for(var l=0;l<10;l++)a+=n[l]*o,10===(o+=1)&&(o=1);if(a%11==10)return 0===n[10]}return a%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!u(t.slice(0,3)))return!1;if(!u(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,a=[6,7,9,10,12,13,14];n40&&(l-=40),l<10&&(l="0".concat(l));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(l);if(!(0,i.default)(c,"YY/MM/DD"))return!1;for(var p=0,d=1;d4&&(g+=2)}p+=g}return String.fromCharCode(65+p%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var a=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n80?(a="18".concat(a),o-=80):o>60?(a="22".concat(a),o-=60):o>40?(a="21".concat(a),o-=40):o>20?(a="20".concat(a),o-=20):a="19".concat(a),o<10&&(o="0".concat(o));var s="".concat(a,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,i.default)(s,"YYYY/MM/DD"))return!1;for(var l=0,c=1,p=0;p10?c=1:5===c&&(c+=2);return(l=10-l%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var a=1;a<=10;a++)t+=parseInt(e.substring(a-1,a),10)*(12-a);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,i=e.substring(0,o),s=e.substring(o),l=0,c=o-7,p=o;p>=1;p--)l+=i.charAt(o-p)*c,(c-=1)<2&&(c=9);var d=l%11<2?0:11-l%11;if(d!==parseInt(s.charAt(0),10))return!1;o+=1,i=e.substring(0,o),l=0,c=o-7;for(var u=o;u>=1;u--)l+=i.charAt(o-u)*c,(c-=1)<2&&(c=9);return(d=l%11<2?0:11-l%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),l=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(l).concat(r),10)>s?"".concat(l-1).concat(r):"".concat(l).concat(r);else if(r="".concat(l-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.luhnCheck(e.replace(/\W/,""))}};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var m=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":m,"de-DE":/[\/\\]/g,"fr-BE":m};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},3494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,a.default)(t,o),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,i.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,s,u,h,f,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(r=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}($=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}($,S)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}($,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var $,S;h=g.join("@"),m=null,y=null;var E=h.match(p);E?(u="",y=E[1],m=E[2]||null):(u=(g=h.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(f=parseInt(m,10),!/^[0-9]+$/.test(m)||f<=0||f>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(u,t.host_whitelist);if(""===u&&!t.require_host)return!0;if(!((0,o.default)(u)||(0,a.default)(u,t)||y&&(0,o.default)(y,6)))return!1;if(u=u||y,t.host_blacklist&&d(u,t.host_blacklist))return!1;return!0};var n=s(r(5571)),a=s(r(221)),o=s(r(1028)),i=s(r(4808));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o[[void 0,null].includes(t)?"all":t];return!!r&&r.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5977:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(0,o.default)(t),t in l)return l[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var a,o=(a=r(5571))&&a.__esModule?a:{default:a},i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-i.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=l},9019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&i.halfWidth.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(7146),i=r(2941);e.exports=t.default,e.exports.default=t.default},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},2900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var r=e.split("@"),n=r.pop(),d=[r.join("@"),n];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,p)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(i.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(l.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var u=d[0].split("-");d[0]=u.length>1?u.slice(0,-1).join("-"):u[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else c.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],l=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},9778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var n=e.length-1;for(;/\s/.test(e.charAt(n));)n-=1;return e.slice(0,n+1)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(e,r)};var n=o(r(5571)),a=o(r(4928));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},7536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e)?parseFloat(e):NaN};var n,a=(n=r(9146))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,a.default)(e,t),t)};var n=o(r(9778)),a=o(r(4959));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},4816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,r=0;r=0;n--){if(r){var a=2*parseInt(e[n],10);t+=a>9?a.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):a}else t+=parseInt(e[n],10);r=!r}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},8343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},4808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default},1913:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},4714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},6430:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=r(7296),s=o("Object.prototype.toString"),l=r(6410)(),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("String.prototype.slice"),u={},h=Object.getPrototypeOf;l&&i&&h&&n(p,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=i(r,Symbol.toStringTag);if(!n){var a=h(r);n=i(a,Symbol.toStringTag)}u[e]=n.get}}}));var f=r(5692);e.exports=function(e){return!!f(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(u,(function(r,n){if(!t)try{var a=r.call(e);a===n&&(t=a)}catch(e){}})),t}(e):d(s(e),8,-1))}},3131:(e,t,r)=>{"use strict";var n=r(6464),a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},i=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!a(e)&&!o(e)};function s(e){return a(e)?"ClosingTag":i(e)?"OpeningTag":o(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,a=t.textNodesOnSameLine,o=0,i=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:s(e)}}))).map((function(e,t,s){var l=e.value,c=e.type;"ClosingTag"===c&&o--;var p=n(r,o),d=p+l;if("OpeningTag"===c&&o++,a){var u=s[t-1],h=s[t-2];"ClosingTag"===c&&"Text"===u.type&&"OpeningTag"===h.type&&(d=""+p+h.value+u.value+l,i.push(t-2,t-1))}return d}));return i.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}},7529:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";e.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ENUM_CASE_MISMATCH:"Enum does not match case for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"}},7797:(e,t,r)=>{var n=r(8966),a={date:function(e){if("string"!=typeof e)return!0;var t=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(e);return null!==t&&!(t[2]<"01"||t[2]>"12"||t[3]<"01"||t[3]>"31")},"date-time":function(e){if("string"!=typeof e)return!0;var t=e.toLowerCase().split("t");if(!a.date(t[0]))return!1;var r=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(t[1]);return null!==r&&!(r[1]>"23"||r[2]>"59"||r[3]>"59")},email:function(e){return"string"!=typeof e||n.isEmail(e,{require_tld:!0})},hostname:function(e){if("string"!=typeof e)return!0;var t=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(e);if(t){if(e.length>255)return!1;for(var r=e.split("."),n=0;n63)return!1}return t},"host-name":function(e){return a.hostname.call(this,e)},ipv4:function(e){return"string"!=typeof e||n.isIP(e,4)},ipv6:function(e){return"string"!=typeof e||n.isIP(e,6)},regex:function(e){try{return RegExp(e),!0}catch(e){return!1}},uri:function(e){return this.options.strictUris?a["strict-uri"].apply(this,arguments):"string"!=typeof e||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(e)},"strict-uri":function(e){return"string"!=typeof e||n.isURL(e)}};e.exports=a},4706:(e,t,r)=>{"use strict";var n=r(7797),a=r(9454),o=r(9750),i=function(e,t){return e&&Array.isArray(e.includeErrors)&&e.includeErrors.length>0&&!t.some((function(t){return e.includeErrors.includes(t)}))},s={multipleOf:function(e,t,r){if(!i(this.validateOptions,["MULTIPLE_OF"])&&"number"==typeof r){var n=String(t.multipleOf),a=Math.pow(10,n.length-n.indexOf(".")-1);"integer"!==o.whatIs(r*a/(t.multipleOf*a))&&e.addError("MULTIPLE_OF",[r,t.multipleOf],null,t)}},maximum:function(e,t,r){i(this.validateOptions,["MAXIMUM","MAXIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMaximum?r>t.maximum&&e.addError("MAXIMUM",[r,t.maximum],null,t):r>=t.maximum&&e.addError("MAXIMUM_EXCLUSIVE",[r,t.maximum],null,t))},exclusiveMaximum:function(){},minimum:function(e,t,r){i(this.validateOptions,["MINIMUM","MINIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMinimum?rt.maxLength&&e.addError("MAX_LENGTH",[r.length,t.maxLength],null,t)},minLength:function(e,t,r){i(this.validateOptions,["MIN_LENGTH"])||"string"==typeof r&&o.ucs2decode(r).lengtht.items.length&&e.addError("ARRAY_ADDITIONAL_ITEMS",null,null,t)},items:function(){},maxItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_LONG"])||Array.isArray(r)&&r.length>t.maxItems&&e.addError("ARRAY_LENGTH_LONG",[r.length,t.maxItems],null,t)},minItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_SHORT"])||Array.isArray(r)&&r.lengtht.maxProperties&&e.addError("OBJECT_PROPERTIES_MAXIMUM",[n,t.maxProperties],null,t)}},minProperties:function(e,t,r){if(!i(this.validateOptions,["OBJECT_PROPERTIES_MINIMUM"])&&"object"===o.whatIs(r)){var n=Object.keys(r).length;n0){var h=this.options.assumeAdditional.length;if(h)for(;h--;){var f=s.indexOf(this.options.assumeAdditional[h]);-1!==f&&s.splice(f,1)}var m=s.length;if(m)for(;m--;)e.addError("OBJECT_ADDITIONAL_PROPERTIES",[s[m]],null,t)}}}},dependencies:function(e,r,n){if(!i(this.validateOptions,["OBJECT_DEPENDENCY_KEY"])&&"object"===o.whatIs(n))for(var a=Object.keys(r.dependencies),s=a.length;s--;){var l=a[s];if(n[l]){var c=r.dependencies[l];if("object"===o.whatIs(c))t.validate.call(this,e,c,n);else for(var p=c.length;p--;){var d=c[p];void 0===n[d]&&e.addError("OBJECT_DEPENDENCY_KEY",[d,l],null,r)}}}},enum:function(e,t,r){if(!i(this.validateOptions,["ENUM_CASE_MISMATCH","ENUM_MISMATCH"])){for(var n=!1,a=!1,s=t.enum.length;s--;){if(o.areEqual(r,t.enum[s])){n=!0;break}o.areEqual(r,t.enum[s]),a=!0}if(!1===n){var l=a&&this.options.enumCaseInsensitiveComparison?"ENUM_CASE_MISMATCH":"ENUM_MISMATCH";e.addError(l,[r],null,t)}}},type:function(e,t,r){if(!i(this.validateOptions,["INVALID_TYPE"])){var n=o.whatIs(r);"string"==typeof t.type?n===t.type||"integer"===n&&"number"===t.type||e.addError("INVALID_TYPE",[t.type,n],null,t):-1!==t.type.indexOf(n)||"integer"===n&&-1!==t.type.indexOf("number")||e.addError("INVALID_TYPE",[t.type,n],null,t)}},allOf:function(e,r,n){for(var a=r.allOf.length;a--;){var o=t.validate.call(this,e,r.allOf[a],n);if(this.options.breakOnFirstError&&!1===o)break}},anyOf:function(e,r,n){for(var o=[],i=!1,s=r.anyOf.length;s--&&!1===i;){var l=new a(e);o.push(l),i=t.validate.call(this,l,r.anyOf[s],n)}!1===i&&e.addError("ANY_OF_MISSING",void 0,o,r)},oneOf:function(e,r,n){for(var o=0,i=[],s=r.oneOf.length;s--;){var l=new a(e,{maxErrors:1});i.push(l),!0===t.validate.call(this,l,r.oneOf[s],n)&&o++}0===o?e.addError("ONE_OF_MISSING",void 0,i,r):o>1&&e.addError("ONE_OF_MULTIPLE",null,null,r)},not:function(e,r,n){var o=new a(e);!0===t.validate.call(this,o,r.not,n)&&e.addError("NOT_PASSED",null,null,r)},definitions:function(){},format:function(e,t,r){var a=n[t.format];if("function"==typeof a){if(i(this.validateOptions,["INVALID_FORMAT"]))return;if(2===a.length){var s=o.clone(e.path);e.addAsyncTask(a,[r],(function(n){if(!0!==n){var a=e.path;e.path=s,e.addError("INVALID_FORMAT",[t.format,r],null,t),e.path=a}}))}else!0!==a.call(this,r)&&e.addError("INVALID_FORMAT",[t.format,r],null,t)}else!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format],null,t)}},l=function(e,r,n){var a=n.length;if(Array.isArray(r.items))for(;a--;)a0;){if(!t.__$refResolved){e.addError("REF_UNRESOLVED",[t.$ref],null,t);break}if(t.__$refResolved===t)break;t=t.__$refResolved,a=Object.keys(t),p--}if(0===p)throw new Error("Circular dependency by $ref references!")}var d=o.whatIs(r);if(t.type&&(a.splice(a.indexOf("type"),1),s.type.call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError))return!1;for(var u=a.length;u--&&!(s[a[u]]&&(s[a[u]].call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError)););return 0!==e.errors.length&&!1!==this.options.breakOnFirstError||("array"===d?l.call(this,e,t,r):"object"===d&&c.call(this,e,t,r)),"function"==typeof this.options.customValidator&&this.options.customValidator.call(this,e,t,r),i&&(e.rootSchema=void 0),0===e.errors.length}},2630:()=>{"function"!=typeof Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)})},9454:(e,t,r)=>{"use strict";var n=r(4155),a=r(9208),o=r(3970),i=r(9750);function s(e,t){this.parentReport=e instanceof s?e:void 0,this.options=e instanceof s?e.options:e||{},this.reportOptions=t||{},this.errors=[],this.path=[],this.asyncTasks=[],this.rootSchema=void 0,this.commonErrorMessage=void 0,this.json=void 0}s.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},s.prototype.addAsyncTask=function(e,t,r){this.asyncTasks.push([e,t,r])},s.prototype.getAncestor=function(e){if(this.parentReport)return this.parentReport.getSchemaId()===e?this.parentReport:this.parentReport.getAncestor(e)},s.prototype.processAsyncTasks=function(e,t){var r=e||2e3,a=this.asyncTasks.length,o=a,i=!1,s=this;function l(){n.nextTick((function(){var e=0===s.errors.length,r=e?null:s.errors;t(r,e)}))}function c(e){return function(t){i||(e(t),0==--a&&l())}}if(0===a||this.errors.length>0&&this.options.breakOnFirstError)l();else{for(;o--;){var p=this.asyncTasks[o];p[0].apply(null,p[1].concat(c(p[2])))}setTimeout((function(){a>0&&(i=!0,s.addError("ASYNC_TIMEOUT",[a,r]),t(s.errors,!1))}),r)}},s.prototype.getPath=function(e){var t=[];return this.parentReport&&(t=t.concat(this.parentReport.path)),t=t.concat(this.path),!0!==e&&(t="#/"+t.map((function(e){return e=e.toString(),i.isAbsoluteUri(e)?"uri("+e+")":e.replace(/\~/g,"~0").replace(/\//g,"~1")})).join("/")),t},s.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var e=[];for(this.parentReport&&(e=e.concat(this.parentReport.path)),e=e.concat(this.path);e.length>0;){var t=a(this.rootSchema,e);if(t&&t.id)return t.id;e.pop()}return this.rootSchema.id},s.prototype.hasError=function(e,t){for(var r=this.errors.length;r--;)if(this.errors[r].code===e){for(var n=!0,a=this.errors[r].params.length;a--;)this.errors[r].params[a]!==t[a]&&(n=!1);if(n)return n}return!1},s.prototype.addError=function(e,t,r,n){if(!e)throw new Error("No errorCode passed into addError()");this.addCustomError(e,o[e],t,r,n)},s.prototype.getJson=function(){for(var e=this;void 0===e.json;)if(void 0===(e=e.parentReport))return;return e.json},s.prototype.addCustomError=function(e,t,r,n,a){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!t)throw new Error("No errorMessage known for code "+e);for(var o=(r=r||[]).length;o--;){var s=i.whatIs(r[o]),l="object"===s||"null"===s?JSON.stringify(r[o]):r[o];t=t.replace("{"+o+"}",l)}var c={code:e,params:r,message:t,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(c[i.schemaSymbol]=a,c[i.jsonSymbol]=this.getJson(),a&&"string"==typeof a?c.description=a:a&&"object"==typeof a&&(a.title&&(c.title=a.title),a.description&&(c.description=a.description)),null!=n){for(Array.isArray(n)||(n=[n]),c.inner=[],o=n.length;o--;)for(var p=n[o],d=p.errors.length;d--;)c.inner.push(p.errors[d]);0===c.inner.length&&(c.inner=void 0)}this.errors.push(c)}},e.exports=s},7994:(e,t,r)=>{"use strict";var n=r(2307),a=r(9454),o=r(2765),i=r(2088),s=r(9750);function l(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function c(e,t){if("object"==typeof e&&null!==e){if(!t)return e;if(e.id&&(e.id===t||"#"===e.id[0]&&e.id.substring(1)===t))return e;var r,n;if(Array.isArray(e)){for(r=e.length;r--;)if(n=c(e[r],t))return n}else{var a=Object.keys(e);for(r=a.length;r--;){var o=a[r];if(0!==o.indexOf("__$")&&(n=c(e[o],t)))return n}}}}t.cacheSchemaByUri=function(e,t){var r=l(e);r&&(this.cache[r]=t)},t.removeFromCacheByUri=function(e){var t=l(e);t&&delete this.cache[t]},t.checkCacheForUri=function(e){var t=l(e);return!!t&&null!=this.cache[t]},t.getSchema=function(e,r){return"object"==typeof r&&(r=t.getSchemaByReference.call(this,e,r)),"string"==typeof r&&(r=t.getSchemaByUri.call(this,e,r)),r},t.getSchemaByReference=function(e,t){for(var r=this.referenceCache.length;r--;)if(n(this.referenceCache[r][0],t))return this.referenceCache[r][1];var a=s.cloneDeep(t);return this.referenceCache.push([t,a]),a},t.getSchemaByUri=function(e,t,r){var n,s=l(t),p=function(e){var t=e.indexOf("#");return-1===t?void 0:e.slice(t+1)}(t),d=s?this.cache[s]:r;if(d&&s&&d!==r){var u;e.path.push(s);var h=e.getAncestor(d.id);if(h)u=h;else if(u=new a(e),o.compileSchema.call(this,u,d)){var f=this.options;try{this.options=d.__$validationOptions||this.options,i.validateSchema.call(this,u,d)}finally{this.options=f}}var m=u.isValid();if(m||e.addError("REMOTE_NOT_VALID",[t],u),e.path.pop(),!m)return}if(d&&p)for(var g=p.split("/"),y=0,v=g.length;d&&y{"use strict";var n=r(9454),a=r(7994),o=r(9750);function i(e,t){if(o.isAbsoluteUri(t))return t;var r,n=e.join(""),a=o.isAbsoluteUri(n),i=o.isRelativeUri(n),s=o.isRelativeUri(t);a&&s?(r=n.match(/\/[^\/]*$/))&&(n=n.slice(0,r.index+1)):i&&s?n="":(r=n.match(/[^#/]+$/))&&(n=n.slice(0,r.index));var l=n+t;return l=l.replace(/##/,"#")}function s(e,t,r,n){if(t=t||[],r=r||[],n=n||[],"object"!=typeof e||null===e)return t;var a;if("string"==typeof e.id&&r.push(e.id),"string"==typeof e.$ref&&void 0===e.__$refResolved&&t.push({ref:i(r,e.$ref),key:"$ref",obj:e,path:n.slice(0)}),"string"==typeof e.$schema&&void 0===e.__$schemaResolved&&t.push({ref:i(r,e.$schema),key:"$schema",obj:e,path:n.slice(0)}),Array.isArray(e))for(a=e.length;a--;)n.push(a.toString()),s(e[a],t,r,n),n.pop();else{var o=Object.keys(e);for(a=o.length;a--;)0!==o[a].indexOf("__$")&&(n.push(o[a]),s(e[o[a]],t,r,n),n.pop())}return"string"==typeof e.id&&r.pop(),t}var l=function(e,r){for(var a=r.length,o=0;a--;){var i=new n(e);t.compileSchema.call(this,i,r[a])&&o++,e.errors=e.errors.concat(i.errors)}return o};function c(e,t){for(var r=e.length;r--;)if(e[r].id===t)return e[r];return null}var p=function(e,t){var r,n=0;do{for(var a=e.errors.length;a--;)"UNRESOLVABLE_REFERENCE"===e.errors[a].code&&e.errors.splice(a,1);for(r=n,n=l.call(this,e,t),a=t.length;a--;){var o=t[a];if(o.__$missingReferences){for(var i=o.__$missingReferences.length;i--;){var s=o.__$missingReferences[i],p=c(t,s.ref);p&&(s.obj["__"+s.key+"Resolved"]=p,o.__$missingReferences.splice(i,1))}0===o.__$missingReferences.length&&delete o.__$missingReferences}}}while(n!==t.length&&n!==r);return e.isValid()};t.compileSchema=function(e,r){if(e.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof r){var i=a.getSchemaByUri.call(this,e,r);if(!i)return e.addError("SCHEMA_NOT_REACHABLE",[r]),!1;r=i}if(Array.isArray(r))return p.call(this,e,r);if(r.__$compiled&&r.id&&!1===a.checkCacheForUri.call(this,r.id)&&(r.__$compiled=void 0),r.__$compiled)return!0;r.id&&"string"==typeof r.id&&a.cacheSchemaByUri.call(this,r.id,r);var l=!1;e.rootSchema||(e.rootSchema=r,l=!0);var c=e.isValid();delete r.__$missingReferences;for(var d=s.call(this,r),u=d.length;u--;){var h=d[u],f=a.getSchemaByUri.call(this,e,h.ref,r);if(!f){var m=this.getSchemaReader();if(m){var g=m(h.ref);if(g){g.id=h.ref;var y=new n(e);t.compileSchema.call(this,y,g)?f=a.getSchemaByUri.call(this,e,h.ref,r):e.errors=e.errors.concat(y.errors)}}}if(!f){var v=e.hasError("REMOTE_NOT_VALID",[h.ref]),b=o.isAbsoluteUri(h.ref),x=!1,w=!0===this.options.ignoreUnresolvableReferences;b&&(x=a.checkCacheForUri.call(this,h.ref)),v||w&&b||x||(Array.prototype.push.apply(e.path,h.path),e.addError("UNRESOLVABLE_REFERENCE",[h.ref]),e.path=e.path.slice(0,-h.path.length),c&&(r.__$missingReferences=r.__$missingReferences||[],r.__$missingReferences.push(h)))}h.obj["__"+h.key+"Resolved"]=f}var $=e.isValid();return $?r.__$compiled=!0:r.id&&"string"==typeof r.id&&a.removeFromCacheByUri.call(this,r.id),l&&(e.rootSchema=void 0),$}},2088:(e,t,r)=>{"use strict";var n=r(7797),a=r(4706),o=r(9454),i=r(9750),s={$ref:function(e,t){"string"!=typeof t.$ref&&e.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(e,t){"string"!=typeof t.$schema&&e.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(e,t){"number"!=typeof t.multipleOf?e.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):t.multipleOf<=0&&e.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(e,t){"number"!=typeof t.maximum&&e.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(e,t){"boolean"!=typeof t.exclusiveMaximum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===t.maximum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(e,t){"number"!=typeof t.minimum&&e.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(e,t){"boolean"!=typeof t.exclusiveMinimum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===t.minimum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(e,t){"integer"!==i.whatIs(t.maxLength)?e.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):t.maxLength<0&&e.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(e,t){"integer"!==i.whatIs(t.minLength)?e.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):t.minLength<0&&e.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(e,t){if("string"!=typeof t.pattern)e.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(t.pattern)}catch(r){e.addError("KEYWORD_PATTERN",["pattern",t.pattern])}},additionalItems:function(e,r){var n=i.whatIs(r.additionalItems);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===n&&(e.path.push("additionalItems"),t.validateSchema.call(this,e,r.additionalItems),e.path.pop())},items:function(e,r){var n=i.whatIs(r.items);if("object"===n)e.path.push("items"),t.validateSchema.call(this,e,r.items),e.path.pop();else if("array"===n)for(var a=r.items.length;a--;)e.path.push("items"),e.path.push(a.toString()),t.validateSchema.call(this,e,r.items[a]),e.path.pop(),e.path.pop();else e.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);!0===this.options.forceAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&(r.additionalItems=!1)},maxItems:function(e,t){"number"!=typeof t.maxItems?e.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):t.maxItems<0&&e.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(e,t){"integer"!==i.whatIs(t.minItems)?e.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):t.minItems<0&&e.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(e,t){"boolean"!=typeof t.uniqueItems&&e.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(e,t){"integer"!==i.whatIs(t.maxProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):t.maxProperties<0&&e.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(e,t){"integer"!==i.whatIs(t.minProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):t.minProperties<0&&e.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(e,t){if("array"!==i.whatIs(t.required))e.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===t.required.length)e.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var r=t.required.length;r--;)"string"!=typeof t.required[r]&&e.addError("KEYWORD_VALUE_TYPE",["required","string"]);!1===i.isUniqueArray(t.required)&&e.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(e,r){var n=i.whatIs(r.additionalProperties);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===n&&(e.path.push("additionalProperties"),t.validateSchema.call(this,e,r.additionalProperties),e.path.pop())},properties:function(e,r){if("object"===i.whatIs(r.properties)){for(var n=Object.keys(r.properties),a=n.length;a--;){var o=n[a],s=r.properties[o];e.path.push("properties"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceAdditional&&void 0===r.additionalProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===r.additionalProperties&&(r.additionalProperties=!1),!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["properties","object"])},patternProperties:function(e,r){if("object"===i.whatIs(r.patternProperties)){for(var n=Object.keys(r.patternProperties),a=n.length;a--;){var o=n[a],s=r.patternProperties[o];try{RegExp(o)}catch(t){e.addError("KEYWORD_PATTERN",["patternProperties",o])}e.path.push("patternProperties"),e.path.push(o.toString()),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"])},dependencies:function(e,r){if("object"!==i.whatIs(r.dependencies))e.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var n=Object.keys(r.dependencies),a=n.length;a--;){var o=n[a],s=r.dependencies[o],l=i.whatIs(s);if("object"===l)e.path.push("dependencies"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop();else if("array"===l){var c=s.length;for(0===c&&e.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);c--;)"string"!=typeof s[c]&&e.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);!1===i.isUniqueArray(s)&&e.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else e.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},enum:function(e,t){!1===Array.isArray(t.enum)?e.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===t.enum.length?e.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):!1===i.isUniqueArray(t.enum)&&e.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(e,t){var r=["array","boolean","integer","number","null","object","string"],n=r.join(","),a=Array.isArray(t.type);if(a){for(var o=t.type.length;o--;)-1===r.indexOf(t.type[o])&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]);!1===i.isUniqueArray(t.type)&&e.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof t.type?-1===r.indexOf(t.type)&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]):e.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);!0===this.options.noEmptyStrings&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.enum&&void 0===t.format&&(t.minLength=1),!0===this.options.noEmptyArrays&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&(t.minItems=1),!0===this.options.forceProperties&&("object"===t.type||a&&-1!==t.type.indexOf("object"))&&void 0===t.properties&&void 0===t.patternProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),!0===this.options.forceItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.items&&e.addError("KEYWORD_UNDEFINED_STRICT",["items"]),!0===this.options.forceMinItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),!0===this.options.forceMaxItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.maxItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),!0===this.options.forceMinLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),!0===this.options.forceMaxLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.maxLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(e,r){if(!1===Array.isArray(r.allOf))e.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===r.allOf.length)e.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var n=r.allOf.length;n--;)e.path.push("allOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.allOf[n]),e.path.pop(),e.path.pop()},anyOf:function(e,r){if(!1===Array.isArray(r.anyOf))e.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===r.anyOf.length)e.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var n=r.anyOf.length;n--;)e.path.push("anyOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.anyOf[n]),e.path.pop(),e.path.pop()},oneOf:function(e,r){if(!1===Array.isArray(r.oneOf))e.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===r.oneOf.length)e.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var n=r.oneOf.length;n--;)e.path.push("oneOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.oneOf[n]),e.path.pop(),e.path.pop()},not:function(e,r){"object"!==i.whatIs(r.not)?e.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(e.path.push("not"),t.validateSchema.call(this,e,r.not),e.path.pop())},definitions:function(e,r){if("object"!==i.whatIs(r.definitions))e.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var n=Object.keys(r.definitions),a=n.length;a--;){var o=n[a],s=r.definitions[o];e.path.push("definitions"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}},format:function(e,t){"string"!=typeof t.format?e.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===n[t.format]&&!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format])},id:function(e,t){"string"!=typeof t.id&&e.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(e,t){"string"!=typeof t.title&&e.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(e,t){"string"!=typeof t.description&&e.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},default:function(){}},l=function(e,r){for(var n=r.length;n--;)t.validateSchema.call(this,e,r[n]);return e.isValid()};t.validateSchema=function(e,t){if(e.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(t))return l.call(this,e,t);if(t.__$validated)return!0;var r=t.$schema&&t.id!==t.$schema;if(r)if(t.__$schemaResolved&&t.__$schemaResolved!==t){var n=new o(e);!1===a.validate.call(this,n,t.__$schemaResolved,t)&&e.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,n)}else!0!==this.options.ignoreUnresolvableReferences&&e.addError("REF_UNRESOLVED",[t.$schema]);if(!0===this.options.noTypeless){if(void 0!==t.type){var c=[];Array.isArray(t.anyOf)&&(c=c.concat(t.anyOf)),Array.isArray(t.oneOf)&&(c=c.concat(t.oneOf)),Array.isArray(t.allOf)&&(c=c.concat(t.allOf)),c.forEach((function(e){e.type||(e.type=t.type)}))}void 0===t.enum&&void 0===t.type&&void 0===t.anyOf&&void 0===t.oneOf&&void 0===t.not&&void 0===t.$ref&&e.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var p=Object.keys(t),d=p.length;d--;){var u=p[d];0!==u.indexOf("__")&&(void 0!==s[u]?s[u].call(this,e,t):r||!0===this.options.noExtraKeywords&&e.addError("KEYWORD_UNEXPECTED",[u]))}if(!0===this.options.pedanticCheck){if(t.enum){var h=i.clone(t);for(delete h.enum,delete h.default,e.path.push("enum"),d=t.enum.length;d--;)e.path.push(d.toString()),a.validate.call(this,e,h,t.enum[d]),e.path.pop();e.path.pop()}t.default&&(e.path.push("default"),a.validate.call(this,e,t,t.default),e.path.pop())}var f=e.isValid();return f&&(t.__$validated=!0),f}},9750:(e,t)=>{"use strict";t.jsonSymbol=Symbol.for("z-schema/json"),t.schemaSymbol=Symbol.for("z-schema/schema");var r=t.sortedKeys=function(e){return Object.keys(e).sort()};t.isAbsoluteUri=function(e){return/^https?:\/\//.test(e)},t.isRelativeUri=function(e){return/.+#/.test(e)},t.whatIs=function(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"array":"object":"number"===t?Number.isFinite(e)?e%1==0?"integer":"number":Number.isNaN(e)?"not-a-number":"unknown-number":t},t.areEqual=function e(n,a,o){var i,s,l=(o=o||{}).caseInsensitiveComparison||!1;if(n===a)return!0;if(!0===l&&"string"==typeof n&&"string"==typeof a&&n.toUpperCase()===a.toUpperCase())return!0;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(s=n.length,i=0;i=55296&&t<=56319&&a{"use strict";var n=r(4155);r(2630);var a=r(9208),o=r(9454),i=r(7797),s=r(4706),l=r(7994),c=r(2765),p=r(2088),d=r(9750),u=r(1319),h=r(2619),f={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,enumCaseInsensitiveComparison:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!1,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};function m(e){var t;if("object"==typeof e){for(var r,n=Object.keys(e),a=n.length;a--;)if(r=n[a],void 0===f[r])throw new Error("Unexpected option passed to constructor: "+r);for(a=(n=Object.keys(f)).length;a--;)void 0===e[r=n[a]]&&(e[r]=d.clone(f[r]));t=e}else t=d.clone(f);return!0===t.strictMode&&(t.forceAdditional=!0,t.forceItems=!0,t.forceMaxLength=!0,t.forceProperties=!0,t.noExtraKeywords=!0,t.noTypeless=!0,t.noEmptyStrings=!0,t.noEmptyArrays=!0),t}function g(e){this.cache={},this.referenceCache=[],this.validateOptions={},this.options=m(e);var t=m({});this.setRemoteReference("http://json-schema.org/draft-04/schema",u,t),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",h,t)}g.prototype.compileSchema=function(e){var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validateSchema=function(e){if(Array.isArray(e)&&0===e.length)throw new Error(".validateSchema was called with an empty array");var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e)&&p.validateSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validate=function(e,t,r,i){"function"===d.whatIs(r)&&(i=r,r={}),r||(r={}),this.validateOptions=r;var u=d.whatIs(t);if("string"!==u&&"object"!==u){var h=new Error("Invalid .validate call - schema must be a string or object but "+u+" was passed!");if(i)return void n.nextTick((function(){i(h,!1)}));throw h}var f=!1,m=new o(this.options);if(m.json=e,"string"==typeof t){var g=t;if(!(t=l.getSchema.call(this,m,g)))throw new Error("Schema with id '"+g+"' wasn't found in the validator cache!")}else t=l.getSchema.call(this,m,t);var y=!1;f||(y=c.compileSchema.call(this,m,t)),y||(this.lastReport=m,f=!0);var v=!1;if(f||(v=p.validateSchema.call(this,m,t)),v||(this.lastReport=m,f=!0),r.schemaPath&&(m.rootSchema=t,!(t=a(t,r.schemaPath))))throw new Error("Schema path '"+r.schemaPath+"' wasn't found in the schema!");if(f||s.validate.call(this,m,t,e),!i){if(m.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=m,m.isValid()}m.processAsyncTasks(this.options.asyncTimeout,i)},g.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var e=new Error;return e.name="z-schema validation error",e.message=this.lastReport.commonErrorMessage,e.details=this.lastReport.errors,e},g.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:null},g.prototype.getMissingReferences=function(e){for(var t=[],r=(e=e||this.lastReport.errors).length;r--;){var n=e[r];if("UNRESOLVABLE_REFERENCE"===n.code){var a=n.params[0];-1===t.indexOf(a)&&t.push(a)}n.inner&&(t=t.concat(this.getMissingReferences(n.inner)))}return t},g.prototype.getMissingRemoteReferences=function(){for(var e=this.getMissingReferences(),t=[],r=e.length;r--;){var n=l.getRemotePath(e[r]);n&&-1===t.indexOf(n)&&t.push(n)}return t},g.prototype.setRemoteReference=function(e,t,r){t="string"==typeof t?JSON.parse(t):d.cloneDeep(t),r&&(t.__$validationOptions=m(r)),l.cacheSchemaByUri.call(this,e,t)},g.prototype.getResolvedSchema=function(e){var t=new o(this.options);e=l.getSchema.call(this,t,e),e=d.cloneDeep(e);var r=[],n=function(e){var t,a=d.whatIs(e);if(("object"===a||"array"===a)&&!e.___$visited){if(e.___$visited=!0,r.push(e),e.$ref&&e.__$refResolved){var o=e.__$refResolved,i=e;for(t in delete e.$ref,delete e.__$refResolved,o)o.hasOwnProperty(t)&&(i[t]=o[t])}for(t in e)e.hasOwnProperty(t)&&(0===t.indexOf("__$")?delete e[t]:n(e[t]))}};if(n(e),r.forEach((function(e){delete e.___$visited})),this.lastReport=t,t.isValid())return e;throw this.getLastError()},g.prototype.setSchemaReader=function(e){return g.setSchemaReader(e)},g.prototype.getSchemaReader=function(){return g.schemaReader},g.schemaReader=void 0,g.setSchemaReader=function(e){g.schemaReader=e},g.registerFormat=function(e,t){i[e]=t},g.unregisterFormat=function(e){delete i[e]},g.getRegisteredFormats=function(){return Object.keys(i)},g.getDefaultOptions=function(){return d.cloneDeep(f)},g.schemaSymbol=d.schemaSymbol,g.jsonSymbol=d.jsonSymbol,e.exports=g},3471:()=>{},6214:()=>{},4616:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"id":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swaggerVersion","basePath","apis"],"properties":{"swaggerVersion":{"enum":["1.2"]},"apiVersion":{"type":"string"},"basePath":{"type":"string","format":"uri","pattern":"^https?://"},"resourcePath":{"type":"string","format":"uri","pattern":"^/"},"apis":{"type":"array","items":{"$ref":"#/definitions/apiObject"}},"models":{"type":"object","additionalProperties":{"$ref":"modelsObject.json#"}},"produces":{"$ref":"#/definitions/mimeTypeArray"},"consumes":{"$ref":"#/definitions/mimeTypeArray"},"authorizations":{"$ref":"authorizationObject.json#"}},"additionalProperties":false,"definitions":{"apiObject":{"type":"object","required":["path","operations"],"properties":{"path":{"type":"string","format":"uri-template","pattern":"^/"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"operationObject.json#"}}},"additionalProperties":false},"mimeTypeArray":{"type":"array","items":{"type":"string","format":"mime-type"},"uniqueItems":true}}}')},499:e=>{"use strict";e.exports=JSON.parse('{"title":"A JSON Schema for Swagger 2.0 API.","id":"http://swagger.io/v2/schema.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swagger","info","paths"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"swagger":{"type":"string","enum":["2.0"],"description":"The Swagger version of this document."},"info":{"$ref":"#/definitions/info"},"host":{"type":"string","pattern":"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$","description":"The host (name or ip) of the API. Example: \'swagger.io\'"},"basePath":{"type":"string","pattern":"^/","description":"The base path to the API. Example: \'/api\'."},"schemes":{"$ref":"#/definitions/schemesList"},"consumes":{"description":"A list of MIME types accepted by the API.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"paths":{"$ref":"#/definitions/paths"},"definitions":{"$ref":"#/definitions/definitions"},"parameters":{"$ref":"#/definitions/parameterDefinitions"},"responses":{"$ref":"#/definitions/responseDefinitions"},"security":{"$ref":"#/definitions/security"},"securityDefinitions":{"$ref":"#/definitions/securityDefinitions"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},"termsOfService":{"type":"string","description":"The terms of service for the API."},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"paths":{"type":"object","description":"Relative paths to the individual endpoints. They must be relative to the \'basePath\'.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"},"^/":{"$ref":"#/definitions/pathItem"}},"additionalProperties":false},"definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"One or more JSON objects describing the schemas being consumed and produced by the API."},"parameterDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"One or more JSON representations for parameters"},"responseDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/response"},"description":"One or more JSON representations for responses"},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"examples":{"type":"object","additionalProperties":true},"mimeType":{"type":"string","description":"The MIME type of the HTTP message."},"operation":{"type":"object","required":["responses"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the operation."},"description":{"type":"string","description":"A longer description of the operation, GitHub Flavored Markdown is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string","description":"A unique identifier of the operation."},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"consumes":{"description":"A list of MIME types the API can consume.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"parameters":{"$ref":"#/definitions/parametersList"},"responses":{"$ref":"#/definitions/responses"},"schemes":{"$ref":"#/definitions/schemesList"},"deprecated":{"type":"boolean","default":false},"security":{"$ref":"#/definitions/security"}}},"pathItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"get":{"$ref":"#/definitions/operation"},"put":{"$ref":"#/definitions/operation"},"post":{"$ref":"#/definitions/operation"},"delete":{"$ref":"#/definitions/operation"},"options":{"$ref":"#/definitions/operation"},"head":{"$ref":"#/definitions/operation"},"patch":{"$ref":"#/definitions/operation"},"parameters":{"$ref":"#/definitions/parametersList"}}},"responses":{"type":"object","description":"Response objects names can either be any valid HTTP status code or \'default\'.","minProperties":1,"additionalProperties":false,"patternProperties":{"^([0-9]{3})$|^(default)$":{"$ref":"#/definitions/responseValue"},"^x-":{"$ref":"#/definitions/vendorExtension"}},"not":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}}},"responseValue":{"oneOf":[{"$ref":"#/definitions/response"},{"$ref":"#/definitions/jsonReference"}]},"response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"schema":{"oneOf":[{"$ref":"#/definitions/schema"},{"$ref":"#/definitions/fileSchema"}]},"headers":{"$ref":"#/definitions/headers"},"examples":{"$ref":"#/definitions/examples"}},"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/header"}},"header":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"vendorExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"bodyParameter":{"type":"object","required":["name","in","schema"],"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["body"]},"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"schema":{"$ref":"#/definitions/schema"}},"additionalProperties":false},"headerParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["header"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"queryParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["query"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"formDataParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["formData"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array","file"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"pathParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["required"],"properties":{"required":{"type":"boolean","enum":[true],"description":"Determines whether or not this parameter is required or optional."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["path"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"nonBodyParameter":{"type":"object","required":["name","in","type"],"oneOf":[{"$ref":"#/definitions/headerParameterSubSchema"},{"$ref":"#/definitions/formDataParameterSubSchema"},{"$ref":"#/definitions/queryParameterSubSchema"},{"$ref":"#/definitions/pathParameterSubSchema"}]},"parameter":{"oneOf":[{"$ref":"#/definitions/bodyParameter"},{"$ref":"#/definitions/nonBodyParameter"}]},"schema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/xml"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"fileSchema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["type"],"properties":{"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"type":{"type":"string","enum":["file"]},"readOnly":{"type":"boolean","default":false},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"primitivesItems":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"security":{"type":"array","items":{"$ref":"#/definitions/securityRequirement"},"uniqueItems":true},"securityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"xml":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"securityDefinitions":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/basicAuthenticationSecurity"},{"$ref":"#/definitions/apiKeySecurity"},{"$ref":"#/definitions/oauth2ImplicitSecurity"},{"$ref":"#/definitions/oauth2PasswordSecurity"},{"$ref":"#/definitions/oauth2ApplicationSecurity"},{"$ref":"#/definitions/oauth2AccessCodeSecurity"}]}},"basicAuthenticationSecurity":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["basic"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"apiKeySecurity":{"type":"object","additionalProperties":false,"required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ImplicitSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["implicit"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2PasswordSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["password"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ApplicationSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["application"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2AccessCodeSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["accessCode"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"mediaTypeList":{"type":"array","items":{"$ref":"#/definitions/mimeType"},"uniqueItems":true},"parametersList":{"type":"array","description":"The parameters needed to send a valid API call.","additionalItems":false,"items":{"oneOf":[{"$ref":"#/definitions/parameter"},{"$ref":"#/definitions/jsonReference"}]},"uniqueItems":true},"schemesList":{"type":"array","description":"The transfer protocol of the API.","items":{"type":"string","enum":["http","https","ws","wss"]},"uniqueItems":true},"collectionFormat":{"type":"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},"collectionFormatWithMulti":{"type":"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"jsonReference":{"type":"object","required":["$ref"],"additionalProperties":false,"properties":{"$ref":{"type":"string"}}}}}')},3659:e=>{"use strict";e.exports=JSON.parse('{"id":"https://spec.openapis.org/oas/3.0/schema/2019-04-02","$schema":"http://json-schema.org/draft-04/schema#","description":"Validation schema for OpenAPI Specification 3.0.X.","type":"object","required":["openapi","info","paths"],"properties":{"openapi":{"type":"string","pattern":"^3\\\\.0\\\\.\\\\d(-.+)?$"},"info":{"$ref":"#/definitions/Info"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/Tag"},"uniqueItems":true},"paths":{"$ref":"#/definitions/Paths"},"components":{"$ref":"#/definitions/Components"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"definitions":{"Reference":{"type":"object","required":["$ref"],"patternProperties":{"^\\\\$ref$":{"type":"string","format":"uri-reference"}}},"Info":{"type":"object","required":["title","version"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string","format":"uri-reference"},"contact":{"$ref":"#/definitions/Contact"},"license":{"$ref":"#/definitions/License"},"version":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"},"email":{"type":"string","format":"email"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"License":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Server":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/definitions/ServerVariable"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ServerVariable":{"type":"object","required":["default"],"properties":{"enum":{"type":"array","items":{"type":"string"}},"default":{"type":"string"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Components":{"type":"object","properties":{"schemas":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}}},"responses":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Response"}]}}},"parameters":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Parameter"}]}}},"examples":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Example"}]}}},"requestBodies":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/RequestBody"}]}}},"headers":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Header"}]}}},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"links":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Link"}]}}},"callbacks":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Callback"}]}}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Schema":{"type":"object","properties":{"title":{"type":"string"},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"type":"integer","minimum":0},"minLength":{"type":"integer","minimum":0,"default":0},"pattern":{"type":"string","format":"regex"},"maxItems":{"type":"integer","minimum":0},"minItems":{"type":"integer","minimum":0,"default":0},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"type":"integer","minimum":0},"minProperties":{"type":"integer","minimum":0,"default":0},"required":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"enum":{"type":"array","items":{},"minItems":1,"uniqueItems":false},"type":{"type":"string","enum":["array","boolean","integer","number","object","string"]},"not":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"allOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"oneOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"anyOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"properties":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"},{"type":"boolean"}],"default":true},"description":{"type":"string"},"format":{"type":"string"},"default":{},"nullable":{"type":"boolean","default":false},"discriminator":{"$ref":"#/definitions/Discriminator"},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"example":{},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"deprecated":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/XML"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Discriminator":{"type":"object","required":["propertyName"],"properties":{"propertyName":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}}}},"XML":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string","format":"uri"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Header"},{"$ref":"#/definitions/Reference"}]}},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"links":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Link"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"MediaType":{"type":"object","properties":{"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}},"encoding":{"type":"object","additionalProperties":{"$ref":"#/definitions/Encoding"}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"}]},"Example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":{},"externalValue":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Header":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string","enum":["simple"],"default":"simple"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"}]},"Paths":{"type":"object","patternProperties":{"^\\\\/":{"$ref":"#/definitions/PathItem"},"^x-":{}},"additionalProperties":false},"PathItem":{"type":"object","properties":{"$ref":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/definitions/Operation"},"^x-":{}},"additionalProperties":false},"Operation":{"type":"object","required":["responses"],"properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true},"requestBody":{"oneOf":[{"$ref":"#/definitions/RequestBody"},{"$ref":"#/definitions/Reference"}]},"responses":{"$ref":"#/definitions/Responses"},"callbacks":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Callback"},{"$ref":"#/definitions/Reference"}]}},"deprecated":{"type":"boolean","default":false},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Responses":{"type":"object","properties":{"default":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]}},"patternProperties":{"^[1-5](?:\\\\d{2}|XX)$":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]},"^x-":{}},"minProperties":1,"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Tag":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExternalDocumentation":{"type":"object","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExampleXORExamples":{"description":"Example and examples are mutually exclusive","not":{"required":["example","examples"]}},"SchemaXORContent":{"description":"Schema and content are mutually exclusive, at least one is required","not":{"required":["schema","content"]},"oneOf":[{"required":["schema"]},{"required":["content"],"description":"Some properties are not allowed if content is present","allOf":[{"not":{"required":["style"]}},{"not":{"required":["explode"]}},{"not":{"required":["allowReserved"]}},{"not":{"required":["example"]}},{"not":{"required":["examples"]}}]}]},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"required":["name","in"],"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"},{"$ref":"#/definitions/ParameterLocation"}]},"ParameterLocation":{"description":"Parameter location","oneOf":[{"description":"Parameter in path","required":["required"],"properties":{"in":{"enum":["path"]},"style":{"enum":["matrix","label","simple"],"default":"simple"},"required":{"enum":[true]}}},{"description":"Parameter in query","properties":{"in":{"enum":["query"]},"style":{"enum":["form","spaceDelimited","pipeDelimited","deepObject"],"default":"form"}}},{"description":"Parameter in header","properties":{"in":{"enum":["header"]},"style":{"enum":["simple"],"default":"simple"}}},{"description":"Parameter in cookie","properties":{"in":{"enum":["cookie"]},"style":{"enum":["form"],"default":"form"}}}]},"RequestBody":{"type":"object","required":["content"],"properties":{"description":{"type":"string"},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"required":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/APIKeySecurityScheme"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/OAuth2SecurityScheme"},{"$ref":"#/definitions/OpenIdConnectSecurityScheme"}]},"APIKeySecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"HTTPSecurityScheme":{"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"bearerFormat":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false,"oneOf":[{"description":"Bearer","properties":{"scheme":{"enum":["bearer"]}}},{"description":"Non Bearer","not":{"required":["bearerFormat"]},"properties":{"scheme":{"not":{"enum":["bearer"]}}}}]},"OAuth2SecurityScheme":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flows":{"$ref":"#/definitions/OAuthFlows"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OpenIdConnectSecurityScheme":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"openIdConnectUrl":{"type":"string","format":"uri-reference"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OAuthFlows":{"type":"object","properties":{"implicit":{"$ref":"#/definitions/ImplicitOAuthFlow"},"password":{"$ref":"#/definitions/PasswordOAuthFlow"},"clientCredentials":{"$ref":"#/definitions/ClientCredentialsFlow"},"authorizationCode":{"$ref":"#/definitions/AuthorizationCodeOAuthFlow"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ImplicitOAuthFlow":{"type":"object","required":["authorizationUrl","scopes"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"PasswordOAuthFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ClientCredentialsFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"AuthorizationCodeOAuthFlow":{"type":"object","required":["authorizationUrl","tokenUrl"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Link":{"type":"object","properties":{"operationId":{"type":"string"},"operationRef":{"type":"string","format":"uri-reference"},"parameters":{"type":"object","additionalProperties":{}},"requestBody":{},"description":{"type":"string"},"server":{"$ref":"#/definitions/Server"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"not":{"description":"Operation Id and Operation Ref are mutually exclusive","required":["operationId","operationRef"]}},"Callback":{"type":"object","additionalProperties":{"$ref":"#/definitions/PathItem"},"patternProperties":{"^x-":{}}},"Encoding":{"type":"object","properties":{"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/Header"}},"style":{"type":"string","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false}},"additionalProperties":false}}}')},1201:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://spec.openapis.org/oas/3.1/schema/2021-04-15","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string","pattern":"^3\\\\.1\\\\.\\\\d+(-.+)?$"},"info":{"$ref":"#/$defs/info"},"jsonSchemaDialect":{"$ref":"#/$defs/uri","default":"https://spec.openapis.org/oas/3.1/dialect/base"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"paths":{"$ref":"#/$defs/paths"},"webhooks":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"components":{"$ref":"#/$defs/components"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"tags":{"type":"array","items":{"$ref":"#/$defs/tag"}},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["openapi","info"],"anyOf":[{"required":["paths"]},{"required":["components"]},{"required":["webhooks"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"info":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"#/$defs/contact"},"license":{"$ref":"#/$defs/license"},"version":{"type":"string"}},"required":["title","version"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["name"],"oneOf":[{"required":["identifier"]},{"required":["url"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server":{"type":"object","properties":{"url":{"$ref":"#/$defs/uri"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/$defs/server-variable"}}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server-variable":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"},"minItems":1},"default":{"type":"string"},"descriptions":{"type":"string"}},"required":["default"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"components":{"type":"object","properties":{"schemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}},"responses":{"type":"object","additionalProperties":{"$ref":"#/$defs/response-or-reference"}},"parameters":{"type":"object","additionalProperties":{"$ref":"#/$defs/parameter-or-reference"}},"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}},"requestBodies":{"type":"object","additionalProperties":{"$ref":"#/$defs/request-body-or-reference"}},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"securitySchemes":{"type":"object","additionalProperties":{"$ref":"#/$defs/security-scheme-or-reference"}},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"pathItems":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}}},"patternProperties":{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{"$comment":"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected","propertyNames":{"pattern":"^[a-zA-Z0-9._-]+$"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"paths":{"type":"object","patternProperties":{"^/":{"$ref":"#/$defs/path-item"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/$defs/operation"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/path-item"}},"operation":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}},"requestBody":{"$ref":"#/$defs/request-body-or-reference"},"responses":{"$ref":"#/$defs/responses"},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"deprecated":{"default":false,"type":"boolean"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"external-documentation":{"type":"object","properties":{"description":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"enum":["query","header","path","cookie"]},"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"},"content":{"$ref":"#/$defs/content"}},"required":["in"],"oneOf":[{"required":["schema"]},{"required":["content"]}],"dependentSchemas":{"schema":{"properties":{"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/examples"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],"$defs":{"styles-for-path":{"if":{"properties":{"in":{"const":"path"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["matrix","label","simple"]},"required":{"const":true}},"required":["required"]}},"styles-for-header":{"if":{"properties":{"in":{"const":"header"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["simple"]}}}},"styles-for-query":{"if":{"properties":{"in":{"const":"query"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{"if":{"properties":{"in":{"const":"cookie"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form"]}}}},"styles-for-form":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/parameter"}},"request-body":{"type":"object","properties":{"description":{"type":"string"},"content":{"$ref":"#/$defs/content"},"required":{"default":false,"type":"boolean"}},"required":["content"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"request-body-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/request-body"}},"content":{"type":"object","additionalProperties":{"$ref":"#/$defs/media-type"},"propertyNames":{"format":"media-range"}},"media-type":{"type":"object","properties":{"schema":{"$dynamicRef":"#meta"},"encoding":{"type":"object","additionalProperties":{"$ref":"#/$defs/encoding"}}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/examples"}],"unevaluatedProperties":false},"encoding":{"type":"object","properties":{"contentType":{"type":"string","format":"media-range"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/encoding/$defs/explode-default"}],"unevaluatedProperties":false,"$defs":{"explode-default":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}},"responses":{"type":"object","properties":{"default":{"$ref":"#/$defs/response-or-reference"}},"patternProperties":{"^[1-5][0-9X]{2}$":{"$ref":"#/$defs/response-or-reference"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response":{"type":"object","properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"content":{"$ref":"#/$defs/content"},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}}},"required":["description"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/response"}},"callbacks":{"type":"object","$ref":"#/$defs/specification-extensions","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/callbacks"}},"example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":true,"externalValue":{"$ref":"#/$defs/uri"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"example-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/example"}},"link":{"type":"object","properties":{"operationRef":{"$ref":"#/$defs/uri"},"operationId":true,"parameters":{"$ref":"#/$defs/map-of-strings"},"requestBody":true,"description":{"type":"string"},"body":{"$ref":"#/$defs/server"}},"oneOf":[{"required":["operationRef"]},{"required":["operationId"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"link-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/link"}},"header":{"type":"object","properties":{"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"}},"dependentSchemas":{"schema":{"properties":{"style":{"default":"simple","enum":["simple"]},"explode":{"default":false,"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"}},"$ref":"#/$defs/examples"},"content":{"properties":{"content":{"$ref":"#/$defs/content"}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"header-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/header"}},"tag":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["name"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"reference":{"type":"object","properties":{"$ref":{"$ref":"#/$defs/uri"},"summary":{"type":"string"},"description":{"type":"string"}},"unevaluatedProperties":false},"schema":{"$dynamicAnchor":"meta","type":["object","boolean"]},"security-scheme":{"type":"object","properties":{"type":{"enum":["apiKey","http","mutualTLS","oauth2","openIdConnect"]},"description":{"type":"string"}},"required":["type"],"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/security-scheme/$defs/type-apikey"},{"$ref":"#/$defs/security-scheme/$defs/type-http"},{"$ref":"#/$defs/security-scheme/$defs/type-http-bearer"},{"$ref":"#/$defs/security-scheme/$defs/type-oauth2"},{"$ref":"#/$defs/security-scheme/$defs/type-oidc"}],"unevaluatedProperties":false,"$defs":{"type-apikey":{"if":{"properties":{"type":{"const":"apiKey"}},"required":["type"]},"then":{"properties":{"name":{"type":"string"},"in":{"enum":["query","header","cookie"]}},"required":["name","in"]}},"type-http":{"if":{"properties":{"type":{"const":"http"}},"required":["type"]},"then":{"properties":{"scheme":{"type":"string"}},"required":["scheme"]}},"type-http-bearer":{"if":{"properties":{"type":{"const":"http"},"scheme":{"const":"bearer"}},"required":["type","scheme"]},"then":{"properties":{"bearerFormat":{"type":"string"}},"required":["scheme"]}},"type-oauth2":{"if":{"properties":{"type":{"const":"oauth2"}},"required":["type"]},"then":{"properties":{"flows":{"$ref":"#/$defs/oauth-flows"}},"required":["flows"]}},"type-oidc":{"if":{"properties":{"type":{"const":"openIdConnect"}},"required":["type"]},"then":{"properties":{"openIdConnectUrl":{"$ref":"#/$defs/uri"}},"required":["openIdConnectUrl"]}}}},"security-scheme-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/security-scheme"}},"oauth-flows":{"type":"object","properties":{"implicit":{"$ref":"#/$defs/oauth-flows/$defs/implicit"},"password":{"$ref":"#/$defs/oauth-flows/$defs/password"},"clientCredentials":{"$ref":"#/$defs/oauth-flows/$defs/client-credentials"},"authorizationCode":{"$ref":"#/$defs/oauth-flows/$defs/authorization-code"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"implicit":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"password":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"client-credentials":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"authorization-code":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false}}},"security-requirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"specification-extensions":{"patternProperties":{"^x-":true}},"examples":{"properties":{"example":true,"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}}}},"uri":{"type":"string","format":"uri"},"map-of-strings":{"type":"object","additionalProperties":{"type":"string"}}}}')},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6273:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},3932:e=>{"use strict";e.exports=JSON.parse('{"$id":"afterRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},6136:e=>{"use strict";e.exports=JSON.parse('{"$id":"beforeRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},805:e=>{"use strict";e.exports=JSON.parse('{"$id":"browser.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},1632:e=>{"use strict";e.exports=JSON.parse('{"$id":"cache.json#","$schema":"http://json-schema.org/draft-06/schema#","properties":{"beforeRequest":{"oneOf":[{"type":"null"},{"$ref":"beforeRequest.json#"}]},"afterRequest":{"oneOf":[{"type":"null"},{"$ref":"afterRequest.json#"}]},"comment":{"type":"string"}}}')},1567:e=>{"use strict";e.exports=JSON.parse('{"$id":"content.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["size","mimeType"],"properties":{"size":{"type":"integer"},"compression":{"type":"integer"},"mimeType":{"type":"string"},"text":{"type":"string"},"encoding":{"type":"string"},"comment":{"type":"string"}}}')},5725:e=>{"use strict";e.exports=JSON.parse('{"$id":"cookie.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"path":{"type":"string"},"domain":{"type":"string"},"expires":{"type":["string","null"],"format":"date-time"},"httpOnly":{"type":"boolean"},"secure":{"type":"boolean"},"comment":{"type":"string"}}}')},7218:e=>{"use strict";e.exports=JSON.parse('{"$id":"creator.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},4560:e=>{"use strict";e.exports=JSON.parse('{"$id":"entry.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","time","request","response","cache","timings"],"properties":{"pageref":{"type":"string"},"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"time":{"type":"number","min":0},"request":{"$ref":"request.json#"},"response":{"$ref":"response.json#"},"cache":{"$ref":"cache.json#"},"timings":{"$ref":"timings.json#"},"serverIPAddress":{"type":"string","oneOf":[{"format":"ipv4"},{"format":"ipv6"}]},"connection":{"type":"string"},"comment":{"type":"string"}}}')},5579:e=>{"use strict";e.exports=JSON.parse('{"$id":"har.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["log"],"properties":{"log":{"$ref":"log.json#"}}}')},5147:e=>{"use strict";e.exports=JSON.parse('{"$id":"header.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},3013:e=>{"use strict";e.exports=JSON.parse('{"$id":"log.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["version","creator","entries"],"properties":{"version":{"type":"string"},"creator":{"$ref":"creator.json#"},"browser":{"$ref":"browser.json#"},"pages":{"type":"array","items":{"$ref":"page.json#"}},"entries":{"type":"array","items":{"$ref":"entry.json#"}},"comment":{"type":"string"}}}')},4777:e=>{"use strict";e.exports=JSON.parse('{"$id":"page.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","id","title","pageTimings"],"properties":{"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"id":{"type":"string","unique":true},"title":{"type":"string"},"pageTimings":{"$ref":"pageTimings.json#"},"comment":{"type":"string"}}}')},5538:e=>{"use strict";e.exports=JSON.parse('{"$id":"pageTimings.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","properties":{"onContentLoad":{"type":"number","min":-1},"onLoad":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2096:e=>{"use strict";e.exports=JSON.parse('{"$id":"postData.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["mimeType"],"properties":{"mimeType":{"type":"string"},"text":{"type":"string"},"params":{"type":"array","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"fileName":{"type":"string"},"contentType":{"type":"string"},"comment":{"type":"string"}}},"comment":{"type":"string"}}}')},1251:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},9646:e=>{"use strict";e.exports=JSON.parse('{"$id":"request.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],"properties":{"method":{"type":"string"},"url":{"type":"string","format":"uri"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"queryString":{"type":"array","items":{"$ref":"query.json#"}},"postData":{"$ref":"postData.json#"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},9103:e=>{"use strict";e.exports=JSON.parse('{"$id":"response.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],"properties":{"status":{"type":"integer"},"statusText":{"type":"string"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"content":{"$ref":"content.json#"},"redirectURL":{"type":"string"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},2007:e=>{"use strict";e.exports=JSON.parse('{"$id":"timings.json#","$schema":"http://json-schema.org/draft-06/schema#","required":["send","wait","receive"],"properties":{"dns":{"type":"number","min":-1},"connect":{"type":"number","min":-1},"blocked":{"type":"number","min":-1},"send":{"type":"number","min":-1},"wait":{"type":"number","min":-1},"receive":{"type":"number","min":-1},"ssl":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2619:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-04/hyper-schema#","id":"http://json-schema.org/draft-04/hyper-schema#","title":"JSON Hyper-Schema","allOf":[{"$ref":"http://json-schema.org/draft-04/schema#"}],"properties":{"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"type":"array"}]}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}]},"definitions":{"additionalProperties":{"$ref":"#"}},"patternProperties":{"additionalProperties":{"$ref":"#"}},"properties":{"additionalProperties":{"$ref":"#"}},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"},"links":{"type":"array","items":{"$ref":"#/definitions/linkDescription"}},"fragmentResolution":{"type":"string"},"media":{"type":"object","properties":{"type":{"description":"A media type, as described in RFC 2046","type":"string"},"binaryEncoding":{"description":"A content encoding scheme, as described in RFC 2045","type":"string"}}},"pathStart":{"description":"Instances\' URIs must start with this value for this schema to apply to them","type":"string","format":"uri"}},"definitions":{"schemaArray":{"type":"array","items":{"$ref":"#"}},"linkDescription":{"title":"Link Description Object","type":"object","required":["href","rel"],"properties":{"href":{"description":"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing","type":"string"},"rel":{"description":"relation to the target resource of the link","type":"string"},"title":{"description":"a title for the link","type":"string"},"targetSchema":{"description":"JSON Schema describing the link target","$ref":"#"},"mediaType":{"description":"media type (as defined by RFC 2046) describing the link target","type":"string"},"method":{"description":"method for requesting the target of the link (e.g. for HTTP this might be \\"GET\\" or \\"DELETE\\")","type":"string"},"encType":{"description":"The media type in which to submit data along with the request","type":"string","default":"application/json"},"schema":{"description":"Schema describing the data to submit along with the request","$ref":"#"}}}}}')},1319:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')}},n={};function a(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var o=n[e]={id:e,loaded:!1,exports:{}};try{var i={id:e,module:o,factory:r[e],require:a};a.i.forEach((function(e){e(i)})),o=i.module,i.factory.call(o.exports,o,o.exports,i.require)}catch(e){throw o.error=e,e}return o.loaded=!0,o.exports}a.m=r,a.c=n,a.i=[],a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.hu=e=>e+"."+a.h()+".hot-update.js",a.hmrF=()=>"main."+a.h()+".hot-update.json",a.h=()=>"e5ec666a776024491683",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",a.l=(r,n,o,i)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e,t,r,n={},o=a.c,i=[],s=[],l="idle",c=0,p=[];function d(e){l=e;for(var t=[],r=0;r0)return d("abort").then((function(){throw a[0]}));var o=d("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var i,s=d("apply"),l=function(e){i||(i=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)})),d("ready");break;case"ready":Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,v),b.parents=i,b.children=[],i=[],p.require=x})),a.hmrC={},a.hmrI={}})(),a.p="",(()=>{var e,t,r,n,o,i=a.hmrS_jsonp=a.hmrS_jsonp||{179:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=a.p+a.hu(t),o=new Error;a.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,r(o)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var o=n.pop(),i=o.id,s=o.chain,c=a.c[i];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:i};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:i};for(var p=0;p ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(g=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(g)return{error:g};if(y)for(h in d[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)a.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),d[h]=u)}r=void 0;for(var x,w=[],$=0;$0;){var o=r.pop(),s=a.c[o];if(s){var l={},d=s.hot._disposeHandlers;for($=0;$=0&&u.parents.splice(e,1))}}}for(var h in c)if(a.o(c,h)&&(s=a.c[h]))for(x=c[h],$=0;$=0&&s.children.splice(e,1)},apply:function(t){for(var r in d)a.o(d,r)&&(a.m[r]=d[r]);for(var n=0;n{for(var l in n)a.o(n,l)&&(r[l]=n[l],e&&e.push(l));i&&o.push(i),s[t]&&(s[t](),s[t]=void 0)},a.hmrI.jsonp=function(e,t){r||(r={},o=[],n=[],t.push(c)),a.o(r,e)||(r[e]=a.m[e])},a.hmrC.jsonp=function(e,s,p,d,u,h){u.push(c),t={},n=s,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),o=[],e.forEach((function(e){a.o(i,e)&&void 0!==i[e]?(d.push(l(e,h)),t[e]=!0):t[e]=!1})),a.f&&(a.f.jsonpHmr=function(e,r){t&&a.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},a.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(a.p+a.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();a(6698)})(); + }`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)})}render(){return qn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Bn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),i=o[0],l=o[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,i,l)),p=0,d=l>0?i-4:i;for(r=0;r>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=16383,s=0,c=n-a;sc?c:s+i));1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var a,o,i=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";var n=r(5108);const a=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=l(r);const a=n.write(e,t);a!==r&&(n=n.slice(0,a));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const a=function(e){if(c.isBuffer(e)){const t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?l(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=l(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(a)return n?-1:V(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){let o,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;na&&(n=a):n=a;const o=t.length;let i;for(n>o/2&&(n=o/2),i=0;i>8,a=r%256,o.push(a),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);const n=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+i<=r){let r,n,s,l;switch(i){case 1:t<128&&(o=t);break;case 2:r=e[a+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[a+1],n=e[a+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=i}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(o,i),l=this.slice(n,a),p=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function P(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;an)&&(r=n);let a="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function L(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function M(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],a=1,o=0;for(;++o>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(a)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,a=1,o=this[e+--n];for(;n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=0,o=1,i=0;for(this[t]=255&e;++a>0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=r-1,o=1,i=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/o>>0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,a,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,a,o)}function z(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>2**32?a=B(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=B(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const n=e.length;let a=null;const o=[];for(let i=0;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},584:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(e,t,r)=>{"use strict";var n=r(210),a=r(5559),o=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),a=r(210),o=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(i,o),l=a("%Object.getOwnPropertyDescriptor%",!0),c=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,i,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},472:(e,t,r)=>{"use strict";var n=r(4663);e.exports=function(e,t){return e?void t.then((function(t){n((function(){e(null,t)}))}),(function(t){n((function(){e(t)}))})):t}},4663:(e,t,r)=>{"use strict";var n=r(4155);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},5108:(e,t,r)=>{var n=r(9539),a=r(9282);function o(){return(new Date).getTime()}var i,s=Array.prototype.slice,l={};i=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=o()-t;i.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);a.ok(!1,n.format.apply(null,t))}},"assert"]],p=0;p{"use strict";var n=r(2215),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,l=r(1044)(),c=s&&l,p=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(a=n)||"[object Function]"!==o.call(a)||!n())return;var a;c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{var n=r(2830),a=["write","end","destroy"],o=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function l(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n{var n=r(4155),a=r(5108),o=r(8764).Buffer,i=r(2830).Stream,s=t,l=r(6547),c=r(4404),p=r(5122),d=r(2508),u=r(7549),h=r(4563),f=r(1815),m=r.g.setImmediate||n.nextTick;s.Stream=i,s.through=l,s.from=c,s.duplex=p,s.map=d,s.pause=u,s.split=h,s.pipeline=s.connect=s.pipe=f,s.concat=s.merge=function(){var e=[].slice.call(arguments);1===e.length&&e[0]instanceof Array&&(e=e[0]);var t=new i;t.setMaxListeners(0);var r=0;return t.writable=t.readable=!0,e.length?e.forEach((function(n){n.pipe(t,{end:!1});var a=!1;n.on("end",(function(){a||(a=!0,++r==e.length&&t.emit("end"))}))})):n.nextTick((function(){t.emit("end")})),t.write=function(e){this.emit("data",e)},t.destroy=function(){e.forEach((function(e){e.destroy&&e.destroy()}))},t},s.writeArray=function(e){if("function"!=typeof e)throw new Error("function writeArray (done): done must be function");var t=new i,r=[],n=!1;return t.write=function(e){r.push(e)},t.end=function(){n=!0,e(null,r)},t.writable=!0,t.readable=!1,t.destroy=function(){t.writable=t.readable=!1,n||e(new Error("destroyed before end"),r)},t},s.readArray=function(e){var t=new i,r=0,a=!1,o=!1;if(t.readable=!0,t.writable=!1,!Array.isArray(e))throw new Error("event-stream.read expects an array");return t.resume=function(){if(!o){a=!1;for(var n=e.length;r1&&r.emit("data",i),m((function(){if(!(s||o||l))try{l=!0,e.call(r,a++,(function(){l=!1,c.apply(null,arguments)}))}catch(e){r.emit("error",e)}}))}return r.on("end",(function(){s=!0})),r.resume=function(){o=!1,c()},n.nextTick(c),r.pause=function(){o=!0},r.destroy=function(){r.emit("end"),r.emit("close"),s=!0},r},s.mapSync=function(e){return s.through((function(t){var r;try{r=e(t)}catch(e){return this.emit("error",e)}void 0!==r&&this.emit("data",r)}))},s.log=function(e){return s.through((function(t){[].slice.call(arguments);e?a.error(e,t):a.error(t),this.emit("data",t)}))},s.child=function(e){return s.duplex(e.stdin,e.stdout)},s.parse=function(e){var t=!(!e||!e.error);return s.through((function(e){var r;try{e&&(r=JSON.parse(e.toString()))}catch(r){return t?this.emit("error",r):a.error(r,"attempting to parse:",e)}void 0!==r&&this.emit("data",r)}))},s.stringify=function(){var e=r(8764).Buffer;return s.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))},s.replace=function(e,t){return s.pipeline(s.split(e),s.join(t))},s.join=function(e){if("function"==typeof e)return s.wait(e);var t=!0;return s.through((function(r){return t||this.emit("data",e),t=!1,this.emit("data",r),!0}))},s.wait=function(e){var t=[];return s.through((function(e){t.push(e)}),(function(){var r=o.isBuffer(t[0])?o.concat(t):t.join("");this.emit("data",r),this.emit("end"),e&&e(null,r)}))},s.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},7187:(e,t,r)=>{"use strict";var n,a=r(5108),o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,a,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function p(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,s,l;if(p(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=d(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,a&&a.warn&&a.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=h.bind(n);return a.listener=r,n.wrapFn=a,a}function m(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,p=y(l,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!=a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,a=t.cmp&&(r=t.cmp,function(e){return function(t,n){var a={key:t,value:e[t]},o={key:n,value:e[n]};return r(a,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,i;if(Array.isArray(t)){for(i="[",r=0;r{"use strict";var n=r(5320),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===a.call(e)?function(e,t,r){for(var n=0,a=e.length;n{e.exports="object"==typeof self?self.FormData:window.FormData},4404:(e,t,r)=>{"use strict";var n=r(4155),a=r(2830);e.exports=function e(t){if(Array.isArray(t)){var r=0,o=t.length;return e((function(e){return r{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var a,o=t.call(arguments,1),i=Math.max(0,n.length-o.length),s=[],l=0;l{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new i},p=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(1405)(),u=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?n:u(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?u([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?u(u([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?u((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?u((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?u(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":p,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var g=u(u(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=u(a.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),x=r(7642),w=b.call(Function.call,Array.prototype.concat),$=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,O=function(e,t){var r,n=e;if(x(v,n)&&(n="%"+(r=v[n])[0]+"%"),x(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,A,(function(e,t,r,a){n[n.length]=r?S(a,_,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,p=!1,d=o.alias;d&&(n=d[0],$(r,w([0,1],d)));for(var u=1,h=!0;u=r.length){var v=l(c,f);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else h=x(c,f),c=c[f];h&&!p&&(m[s]=c)}}return c}},6841:(e,t)=>{"use strict";t.Z=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))},7296:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8023:(e,t,r)=>{"use strict";e.exports={afterRequest:r(3932),beforeRequest:r(6136),browser:r(805),cache:r(1632),content:r(1567),cookie:r(5725),creator:r(7218),entry:r(4560),har:r(5579),header:r(5147),log:r(3013),page:r(4777),pageTimings:r(5538),postData:r(2096),query:r(1251),request:r(9646),response:r(9103),timings:r(2007)}},3784:(e,t,r)=>{var n,a=r(5096),o=r(8300),i=r(8023);function s(e,t,s){t=t||{};var l=(n=n||function(){var e=new a({allErrors:!0});return e.addMetaSchema(r(6273)),e.addSchema(i),e}()).getSchema(e+".json"),c=l(t);return"function"==typeof s?s(c?null:new o(l.errors),c):c}t.afterRequest=function(e,t){return s("afterRequest",e,t)},t.beforeRequest=function(e,t){return s("beforeRequest",e,t)},t.browser=function(e,t){return s("browser",e,t)},t.cache=function(e,t){return s("cache",e,t)},t.content=function(e,t){return s("content",e,t)},t.cookie=function(e,t){return s("cookie",e,t)},t.creator=function(e,t){return s("creator",e,t)},t.entry=function(e,t){return s("entry",e,t)},t.har=function(e,t){return s("har",e,t)},t.header=function(e,t){return s("header",e,t)},t.log=function(e,t){return s("log",e,t)},t.page=function(e,t){return s("page",e,t)},t.pageTimings=function(e,t){return s("pageTimings",e,t)},t.postData=function(e,t){return s("postData",e,t)},t.query=function(e,t){return s("query",e,t)},t.request=function(e,t){return s("request",e,t)},t.response=function(e,t){return s("response",e,t)},t.timings=function(e,t){return s("timings",e,t)}},8300:e=>{function t(e){var t="validation failed";this.name="HARError",this.message=t,this.errors=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}t.prototype=Error.prototype,e.exports=t},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),a=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9267:(e,t,r)=>{var n=r(8501),a=r(8575),o=e.exports;for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);function s(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},3503:(e,t,r)=>{var n=r(5108),a=r(4155);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=r(2212)).log=function(){return"object"==typeof n&&n.log&&Function.prototype.apply.call(n.log,n,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},2212:(e,t,r)=>{var n,a=r(5108);function o(e){function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),l=0;l{var t=1e3,r=60*t,n=60*r,a=24*n,o=365.25*a;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?i(l=e,a,"day")||i(l,n,"hour")||i(l,r,"minute")||i(l,t,"second")||l+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9544:(e,t,r)=>{"use strict";const n=r(9539),a=function(e,t){this.code=[],this.indentation=e,this.lineJoin=t||"\n"};a.prototype.buildLine=function(e,t){let r="",a=2;if("[object String]"===Object.prototype.toString.call(e))a=1,t=e,e=0;else if(null===e)return null;for(;e;)r+=this.indentation,e--;const o=Array.prototype.slice.call(arguments,a,arguments.length);return o.unshift(r+t),n.format.apply(this,o)},a.prototype.unshift=function(){return this.code.unshift(this.buildLine.apply(this,arguments)),this},a.prototype.push=function(){return this.code.push(this.buildLine.apply(this,arguments)),this},a.prototype.blank=function(){return this.code.push(null),this},a.prototype.join=function(){return this.code.join(this.lineJoin)},e.exports=a},1747:e=>{const t="\r\n",r="-".repeat(2),n=Symbol.toStringTag,a=e=>"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[n]);function o(e,n,o){let i="";return i+=`${r}${e}${t}`,i+=`Content-Disposition: form-data; name="${n}"`,a(o)&&(i+=`; filename="${o.name}"${t}`,i+=`Content-Type: ${o.type||"application/octet-stream"}`),`${i}${t.repeat(2)}`}e.exports.getBoundary=()=>{let e="--------------------------";for(let t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);return e},e.exports.formDataIterator=function*(e,n){for(const[r,i]of e)yield o(n,r,i),a(i)?yield*i.stream():yield i,yield t;yield(e=>`${r}${e}${r}${t.repeat(2)}`)(n)},e.exports.isBlob=a},174:e=>{e.exports={getHeader:(e,t)=>e[Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()))],getHeaderName:(e,t)=>Object.keys(e).find((e=>{if(e.toLowerCase()===t.toLowerCase())return e})),hasHeader:(e,t)=>Boolean(Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())))}},4411:e=>{"use strict";e.exports=function(e,t){if(void 0===e[t.name])return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const r=[e[t.name],t.value];return e[t.name]=r,e}},9426:(e,t,r)=>{"use strict";const n=r(9539);e.exports={quote:function(e){return/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:n.format("'%s'",e.replace(/'/g,"'\\''"))},escape:function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}}},212:(e,t,r)=>{"use strict";const n=r(3503)("httpsnippet"),a=r(2704),o=r(6230),i=r(7673),s=r(4411),l=r(174),c=r(9245),p=r(8575),d=r(3784),{formDataIterator:u,isBlob:h}=r(1747),f=function(e){let t;const r=this,n=Object.assign({},e);r.requests=[],t=n.log&&n.log.entries?n.log.entries:[{request:n}],t.forEach((function(e){e.request.httpVersion=e.request.httpVersion||"HTTP/1.1",e.request.queryString=e.request.queryString||[],e.request.headers=e.request.headers||[],e.request.cookies=e.request.cookies||[],e.request.postData=e.request.postData||{},e.request.postData.mimeType=e.request.postData.mimeType||"application/octet-stream",e.request.bodySize=0,e.request.headersSize=0,e.request.postData.size=0,d.request(e.request,(function(t,n){if(!n)throw t;r.requests.push(r.prepare(e.request))}))}))};f.prototype.prepare=function(e){if(e.queryObj={},e.headersObj={},e.cookiesObj={},e.allHeaders={},e.postData.jsonObj=!1,e.postData.paramsObj=!1,e.queryString&&e.queryString.length&&(n("queryString found, constructing queryString pair map"),e.queryObj=e.queryString.reduce(s,{})),e.headers&&e.headers.length){const t=/^HTTP\/2/;e.headersObj=e.headers.reduce((function(r,n){let a=n.name;return e.httpVersion.match(t)&&(a=a.toLowerCase()),r[a]=n.value,r}),{})}e.cookies&&e.cookies.length&&(e.cookiesObj=e.cookies.reduceRight((function(e,t){return e[t.name]=t.value,e}),{}));const t=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));switch(t.length&&(e.allHeaders.cookie=t.join("; ")),e.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(e.postData.text="",e.postData.mimeType="multipart/form-data",e.postData.params){const t=new o,r="function"==typeof t[Symbol.iterator],n="---011000010111000001101001";if(r||(t._boundary=n),e.postData.params.forEach((function(e){const n=e.name,a=e.value||"",o=e.fileName||null;r?h(a)?t.append(n,a,o):t.append(n,a):t.append(n,a,{filename:o,contentType:e.contentType||null})})),r)for(const r of u(t,n))e.postData.text+=r;else t.pipe(a.map((function(t,r){e.postData.text+=t})));e.postData.boundary=n;const i=l.hasHeader(e.headersObj,"content-type")?l.getHeaderName(e.headersObj,"content-type"):"content-type";e.headersObj[i]="multipart/form-data; boundary="+n}break;case"application/x-www-form-urlencoded":e.postData.params?(e.postData.paramsObj=e.postData.params.reduce(s,{}),e.postData.text=i.stringify(e.postData.paramsObj)):e.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(e.postData.mimeType="application/json",e.postData.text)try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){n(t),e.postData.mimeType="text/plain"}}return e.allHeaders=Object.assign(e.allHeaders,e.headersObj),e.uriObj=p.parse(e.url,!0,!0),e.queryObj=Object.assign(e.queryObj,e.uriObj.query),e.uriObj.query=null,e.uriObj.search=null,e.uriObj.path=e.uriObj.pathname,e.url=p.format(e.uriObj),e.uriObj.query=e.queryObj,e.uriObj.search=i.stringify(e.queryObj),e.uriObj.search&&(e.uriObj.path=e.uriObj.pathname+"?"+e.uriObj.search),e.fullUrl=p.format(e.uriObj),e},f.prototype.convert=function(e,t,r){!r&&t&&(r=t);const n=this._matchTarget(e,t);if(n){const e=this.requests.map((function(e){return n(e,r)}));return 1===e.length?e[0]:e}return!1},f.prototype._matchTarget=function(e,t){return!!c.hasOwnProperty(e)&&("string"==typeof t&&"function"==typeof c[e][t]?c[e][t]:c[e][c[e].info.default])},e.exports=f,e.exports.addTarget=function(e){if(!("info"in e))throw new Error("The supplied custom target must contain an `info` object.");if(!("key"in e.info&&"title"in e.info&&"extname"in e.info&&"default"in e.info))throw new Error("The supplied custom target must have an `info` object with a `key`, `title`, `extname`, and `default` property.");if(c.hasOwnProperty(e.info.key))throw new Error("The supplied custom target already exists.");if(1===Object.keys(e).length)throw new Error("A custom target must have a client defined on it.");c[e.info.key]=e},e.exports.addTargetClient=function(e,t){if(!c.hasOwnProperty(e))throw new Error(`Sorry, but no ${e} target exists to add clients to.`);if(!("info"in t))throw new Error("The supplied custom target client must contain an `info` object.");if(!("key"in t.info)||!("title"in t.info))throw new Error("The supplied custom target client must have an `info` object with a `key` and `title` property.");if(c[e].hasOwnProperty(t.info.key))throw new Error("The supplied custom target client already exists, please use a different key");c[e][t.info.key]=t},e.exports.availableTargets=function(){return Object.keys(c).map((function(e){const t=Object.assign({},c[e].info),r=Object.keys(c[e]).filter((function(e){return!~["info","index"].indexOf(e)})).map((function(t){return c[e][t].info}));return r.length&&(t.clients=r),t}))},e.exports.extname=function(e){return c[e]?c[e].info.extname:""}},5767:(e,t,r)=>{"use strict";e.exports={info:{key:"c",title:"C",extname:".c",default:"libcurl"},libcurl:r(9897)}},9897:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("CURL *hnd = curl_easy_init();").blank().push('curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "%s");',e.method.toUpperCase()).push('curl_easy_setopt(hnd, CURLOPT_URL, "%s");',e.fullUrl);const a=Object.keys(e.headersObj);return a.length&&(r.blank().push("struct curl_slist *headers = NULL;"),a.forEach((function(t){r.push('headers = curl_slist_append(headers, "%s: %s");',t,e.headersObj[t])})),r.push("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),e.allHeaders.cookie&&r.blank().push('curl_easy_setopt(hnd, CURLOPT_COOKIE, "%s");',e.allHeaders.cookie),e.postData.text&&r.blank().push("curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, %s);",JSON.stringify(e.postData.text)),r.blank().push("CURLcode ret = curl_easy_perform(hnd);"),r.join()},e.exports.info={key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl/",description:"Simple REST and HTTP API Client for C"}},1972:(e,t,r)=>{"use strict";const n=r(9544),a=r(174),o=function(e){this.name=e};o.prototype.toString=function(){return":"+this.name};const i=function(e){this.path=e};i.prototype.toString=function(){return'(clojure.java.io/file "'+this.path+'")'};const s=function(e){return void 0!==e?e.constructor.name.toLowerCase():null},l=function(e){return"object"===s(e)&&0===Object.keys(e).length},c=function(e){return Object.keys(e).filter((function(t){return l(e[t])})).forEach((function(t){delete e[t]})),e},p=function(e,t){const r=Array.apply(null,Array(e)).map((function(e){return" "})).join("");return t.replace(/\n/g,"\n"+r)},d=function(e){switch(s(e)){case"string":return'"'+e.replace(/"/g,'\\"')+'"';case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return'#"'+e.source+'"';case"object":{const t=Object.keys(e).reduce((function(t,r){return t+":"+r+" "+p(r.length+2,d(e[r]))+"\n "}),"").trim();return"{"+p(1,t)+"}"}case"array":{const t=e.reduce((function(e,t){return e+" "+d(t)}),"").trim();return"["+p(1,t)+"]"}}};e.exports=function(e,t){const r=new n(t);if(-1===["get","post","put","delete","patch","head","options"].indexOf(e.method.toLowerCase()))return r.push("Method not supported").join();const s={headers:e.allHeaders,"query-params":e.queryObj};switch(e.postData.mimeType){case"application/json":s["content-type"]=new o("json"),s["form-params"]=e.postData.jsonObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"application/x-www-form-urlencoded":s["form-params"]=e.postData.paramsObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"text/plain":s.body=e.postData.text,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"multipart/form-data":s.multipart=e.postData.params.map((function(e){return e.fileName&&!e.value?{name:e.name,content:new i(e.fileName)}:{name:e.name,content:e.value}})),delete s.headers[a.getHeaderName(s.headers,"content-type")]}if("application/json"===a.getHeader(s.headers,"accept"))s.accept=new o("json"),delete s.headers[a.getHeaderName(s.headers,"accept")];return r.push("(require '[clj-http.client :as client])\n"),l(c(s))?r.push('(client/%s "%s")',e.method.toLowerCase(),e.url):r.push('(client/%s "%s" %s)',e.method.toLowerCase(),e.url,p(11+e.method.length+e.url.length,d(c(s)))),r.join()},e.exports.info={key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."}},3686:(e,t,r)=>{"use strict";e.exports={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clj_http:r(1972)}},4681:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent);let i="";const s=!!e.allHeaders.cookie,l=function(e){const t=a.getHeader(e.allHeaders,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return t.split(",").forEach((function(e){const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}})),n}(e);(s||l.length)&&(i="clientHandler",o.push("var clientHandler = new HttpClientHandler"),o.push("{"),s&&o.push(1,"UseCookies = false,"),l.length&&o.push(1,"AutomaticDecompression = %s,",l.join(" | ")),o.push("};")),o.push("var client = new HttpClient(%s);",i),o.push("var request = new HttpRequestMessage"),o.push("{");let c=e.method.toUpperCase();c=c&&-1!==["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].indexOf(c)?`HttpMethod.${c[0]}${c.substring(1).toLowerCase()}`:`new HttpMethod("${c}")`,o.push(1,"Method = %s,",c),o.push(1,'RequestUri = new Uri("%s"),',e.fullUrl);const p=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(p.length&&(o.push(1,"Headers ="),o.push(1,"{"),p.forEach((function(t){o.push(2,'{ "%s", "%s" },',t,e.allHeaders[t])})),o.push(1,"},")),e.postData.text){const t=e.postData.mimeType;switch(t){case"application/x-www-form-urlencoded":o.push(1,"Content = new FormUrlEncodedContent(new Dictionary"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,'{ "%s", "%s" },',e.name,e.value)})),o.push(1,"}),");break;case"multipart/form-data":o.push(1,"Content = new MultipartFormDataContent"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,"new StringContent(%s)",JSON.stringify(e.value||"")),o.push(2,"{"),o.push(3,"Headers ="),o.push(3,"{"),e.contentType&&o.push(4,'ContentType = new MediaTypeHeaderValue("%s"),',e.contentType),o.push(4,'ContentDisposition = new ContentDispositionHeaderValue("form-data")'),o.push(4,"{"),o.push(5,'Name = "%s",',e.name),e.fileName&&o.push(5,'FileName = "%s",',e.fileName),o.push(4,"}"),o.push(3,"}"),o.push(2,"},")})),o.push(1,"},");break;default:o.push(1,"Content = new StringContent(%s)",JSON.stringify(e.postData.text||"")),o.push(1,"{"),o.push(2,"Headers ="),o.push(2,"{"),o.push(3,'ContentType = new MediaTypeHeaderValue("%s")',t),o.push(2,"}"),o.push(1,"}")}}return o.push("};"),o.push("using (var response = await client.SendAsync(request))"),o.push("{"),o.push(1,"response.EnsureSuccessStatusCode();"),o.push(1,"var body = await response.Content.ReadAsStringAsync();"),o.push(1,"Console.WriteLine(body);"),o.push("}"),o.join()},e.exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"}},7838:(e,t,r)=>{"use strict";e.exports={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},restsharp:r(3764),httpclient:r(4681)}},3764:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase()))return"Method not supported";r.push('var client = new RestClient("%s");',e.fullUrl),r.push("var request = new RestRequest(Method.%s);",e.method.toUpperCase());const o=Object.keys(e.headersObj);return o.length&&o.forEach((function(t){r.push('request.AddHeader("%s", "%s");',t,e.headersObj[t])})),e.cookies.length&&e.cookies.forEach((function(e){r.push('request.AddCookie("%s", "%s");',e.name,e.value)})),e.postData.text&&r.push('request.AddParameter("%s", %s, ParameterType.RequestBody);',a.getHeader(e.allHeaders,"content-type"),JSON.stringify(e.postData.text)),r.push("IRestResponse response = client.Execute(request);"),r.join()},e.exports.info={key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"}},786:(e,t,r)=>{"use strict";e.exports={info:{key:"go",title:"Go",extname:".go",default:"native"},native:r(4398)}},4398:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n("\t"),a=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,timeout:-1},t),o=a.checkErrors?"err":"_",i=a.showBoilerplate?1:0,s=function(){a.checkErrors&&r.push(i,"if err != nil {").push(i+1,"panic(err)").push(i,"}")};let l;return a.showBoilerplate&&(r.push("package main").blank().push("import (").push(i,'"fmt"'),a.timeout>0&&r.push(i,'"time"'),e.postData.text&&r.push(i,'"strings"'),r.push(i,'"net/http"'),a.printBody&&r.push(i,'"io/ioutil"'),r.push(")").blank().push("func main() {").blank()),a.timeout>0?(l="client",r.push(i,"client := http.Client{").push(i+1,"Timeout: time.Duration(%s * time.Second),",a.timeout).push(i,"}").blank()):l="http.DefaultClient",r.push(i,'url := "%s"',e.fullUrl).blank(),e.postData.text?r.push(i,"payload := strings.NewReader(%s)",JSON.stringify(e.postData.text)).blank().push(i,'req, %s := http.NewRequest("%s", url, payload)',o,e.method).blank():r.push(i,'req, %s := http.NewRequest("%s", url, nil)',o,e.method).blank(),s(),Object.keys(e.allHeaders).length&&(Object.keys(e.allHeaders).forEach((function(t){r.push(i,'req.Header.Add("%s", "%s")',t,e.allHeaders[t])})),r.blank()),r.push(i,"res, %s := %s.Do(req)",o,l),s(),a.printBody&&(r.blank().push(i,"defer res.Body.Close()").push(i,"body, %s := ioutil.ReadAll(res.Body)",o),s()),r.blank().push(i,"fmt.Println(res)"),a.printBody&&r.push(i,"fmt.Println(string(body))"),a.showBoilerplate&&r.blank().push("}"),r.join()},e.exports.info={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"}},7659:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(9544),o=r(9539);e.exports=function(e,t){const r=Object.assign({absoluteURI:!1,autoContentLength:!0,autoHost:!0},t),i=new a("","\r\n"),s=r.absoluteURI?e.fullUrl:e.uriObj.path;i.push("%s %s %s",e.method,s,e.httpVersion),Object.keys(e.allHeaders).forEach((function(t){const r=t.toLowerCase().replace(/(^|-)(\w)/g,(function(e){return e.toUpperCase()}));i.push("%s",o.format("%s: %s",r,e.allHeaders[t]))})),r.autoHost&&-1===Object.keys(e.allHeaders).indexOf("host")&&i.push("Host: %s",e.uriObj.host),r.autoContentLength&&e.postData.text&&-1===Object.keys(e.allHeaders).indexOf("content-length")&&i.push("Content-Length: %d",n.byteLength(e.postData.text,"ascii")),i.blank();const l=i.join();let c="";return e.postData.text&&(c=e.postData.text),l+"\r\n"+c},e.exports.info={key:"1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"}},8322:(e,t,r)=>{"use strict";e.exports={info:{key:"http",title:"HTTP",extname:"",default:"1.1"},1.1:r(7659)}},9245:(e,t,r)=>{"use strict";e.exports={c:r(5767),clojure:r(3686),csharp:r(7838),go:r(786),http:r(8322),java:r(3625),javascript:r(5100),kotlin:r(3217),node:r(3095),objc:r(6629),ocaml:r(4955),php:r(8663),powershell:r(3218),python:r(3979),r:r(2817),ruby:r(2682),shell:r(869),swift:r(4484)}},9868:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("AsyncHttpClient client = new DefaultAsyncHttpClient();"),a.push(`client.prepare("${e.method.toUpperCase()}", "${e.fullUrl}")`);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.setHeader("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".setBody(%s)",JSON.stringify(e.postData.text)),a.push(1,".execute()"),a.push(1,".toCompletableFuture()"),a.push(1,".thenAccept(System.out::println)"),a.push(1,".join();"),a.blank(),a.push("client.close();"),a.join()},e.exports.info={key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"}},3625:(e,t,r)=>{"use strict";e.exports={info:{key:"java",title:"Java",extname:".java",default:"unirest"},okhttp:r(6870),unirest:r(5492),asynchttp:r(9868),nethttp:r(7423)}},7423:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("HttpRequest request = HttpRequest.newBuilder()"),a.push(2,'.uri(URI.create("%s"))',e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(2,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text?a.push(2,'.method("%s", HttpRequest.BodyPublishers.ofString(%s))',e.method.toUpperCase(),JSON.stringify(e.postData.text)):a.push(2,'.method("%s", HttpRequest.BodyPublishers.noBody())',e.method.toUpperCase()),a.push(2,".build();"),a.push("HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),a.push("System.out.println(response.body());"),a.join()},e.exports.info={key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"}},6870:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("OkHttpClient client = new OkHttpClient();").blank(),e.postData.text&&(e.postData.boundary?a.push('MediaType mediaType = MediaType.parse("%s; boundary=%s");',e.postData.mimeType,e.postData.boundary):a.push('MediaType mediaType = MediaType.parse("%s");',e.postData.mimeType),a.push("RequestBody body = RequestBody.create(mediaType, %s);",JSON.stringify(e.postData.text))),a.push("Request request = new Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build();").blank().push("Response response = client.newCall(request).execute();"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},5492:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase())?a.push('HttpResponse response = Unirest.customMethod("%s","%s")',e.method.toUpperCase(),e.fullUrl):a.push('HttpResponse response = Unirest.%s("%s")',e.method.toLowerCase(),e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".body(%s)",JSON.stringify(e.postData.text)),a.push(1,".asString();"),a.join()},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"}},7355:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('import axios from "axios";').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank(),s.data="[form]";break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("const options = %s;",a(s,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form")).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},2690:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const a=Object.assign({indent:" ",credentials:null},t),o=r(4110),i=new n(a.indent);switch(t={method:e.method},Object.keys(e.allHeaders).length&&(t.headers=e.allHeaders),null!==a.credentials&&(t.credentials=a.credentials),e.postData.mimeType){case"application/x-www-form-urlencoded":t.body=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":t.body=JSON.stringify(e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank();break;default:e.postData.text&&(t.body=e.postData.text)}return i.push("const options = %s;",o(t,{indent:a.indent,inlineCharacterLimit:80,transform:(t,r,n)=>"body"===r&&"application/x-www-form-urlencoded"===e.postData.mimeType?`new URLSearchParams(${n})`:n})).blank(),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = form;").blank(),i.push("fetch('%s', options)",e.fullUrl).push(1,".then(response => response.json())").push(1,".then(response => console.log(response))").push(1,".catch(err => console.error(err));"),i.join()},e.exports.info={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"}},5100:(e,t,r)=>{"use strict";e.exports={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},jquery:r(354),fetch:r(2690),xhr:r(9936),axios:r(7355)}},354:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent),i={async:!0,crossDomain:!0,url:e.fullUrl,method:e.method,headers:e.allHeaders};switch(e.postData.mimeType){case"application/x-www-form-urlencoded":i.data=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":i.processData=!1,i.data=e.postData.text;break;case"multipart/form-data":o.push("const form = new FormData();"),e.postData.params.forEach((function(e){o.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.processData=!1,i.contentType=!1,i.mimeType="multipart/form-data",i.data="[form]",a.hasHeader(i.headers,"content-type")&&a.getHeader(i.headers,"content-type").indexOf("boundary")&&delete i.headers[a.getHeaderName(i.headers,"content-type")],o.blank();break;default:e.postData.text&&(i.data=e.postData.text)}return o.push("const settings = "+JSON.stringify(i,null,r.indent).replace('"[form]"',"form")+";").blank().push("$.ajax(settings).done(function (response) {").push(1,"console.log(response);").push("});"),o.join()},e.exports.info={key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"}},9936:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" ",cors:!0},t),o=new n(r.indent);switch(e.postData.mimeType){case"application/json":o.push("const data = JSON.stringify(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).push(null);break;case"multipart/form-data":o.push("const data = new FormData();"),e.postData.params.forEach((function(e){o.push("data.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),a.hasHeader(e.allHeaders,"content-type")&&a.getHeader(e.allHeaders,"content-type").indexOf("boundary")&&delete e.allHeaders[a.getHeaderName(e.allHeaders,"content-type")],o.blank();break;default:o.push("const data = %s;",JSON.stringify(e.postData.text||null)).blank()}return o.push("const xhr = new XMLHttpRequest();"),r.cors&&o.push("xhr.withCredentials = true;"),o.blank().push('xhr.addEventListener("readystatechange", function () {').push(1,"if (this.readyState === this.DONE) {").push(2,"console.log(this.responseText);").push(1,"}").push("});").blank().push("xhr.open(%s, %s);",JSON.stringify(e.method),JSON.stringify(e.fullUrl)),Object.keys(e.allHeaders).forEach((function(t){o.push("xhr.setRequestHeader(%s, %s);",JSON.stringify(t),JSON.stringify(e.allHeaders[t]))})),o.blank().push("xhr.send(data);"),o.join()},e.exports.info={key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"}},3217:(e,t,r)=>{"use strict";e.exports={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},okhttp:r(9173)}},9173:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("val client = OkHttpClient()").blank(),e.postData.text&&(e.postData.boundary?a.push('val mediaType = MediaType.parse("%s; boundary=%s")',e.postData.mimeType,e.postData.boundary):a.push('val mediaType = MediaType.parse("%s")',e.postData.mimeType),a.push("val body = RequestBody.create(mediaType, %s)",JSON.stringify(e.postData.text))),a.push("val request = Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build()").blank().push("val response = client.newCall(request).execute()"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},1256:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('var axios = require("axios").default;').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("var options = %s;",a(s,{indent:" ",inlineCharacterLimit:80})).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},7911:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let o=!1;const i=new a(r.indent);i.push("const fetch = require('node-fetch');");const s=e.fullUrl,l={method:e.method};switch(Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":i.unshift("const { URLSearchParams } = require('url');"),i.push("const encodedParams = new URLSearchParams();"),i.blank(),e.postData.params.forEach((function(e){i.push("encodedParams.set('"+e.name+"', '"+e.value+"');")})),l.body="encodedParams";break;case"application/json":e.postData.jsonObj&&(l.body=JSON.stringify(e.postData.jsonObj));break;case"multipart/form-data":i.unshift("const FormData = require('form-data');"),i.push("const formData = new FormData();"),i.blank(),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(o=!0,i.push("formData.append('"+e.name+"', fs.createReadStream('"+e.fileName+"'));")):i.push("formData.append('"+e.name+"', '"+e.value+"');")}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){let t="";e.cookies.forEach((function(e){t=t+encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)+"; "})),l.headers||(l.headers={}),l.headers.cookie=t}return i.blank(),i.push("let url = '"+s+"';").blank(),i.push("let options = %s;",n(l,{indent:" ",inlineCharacterLimit:80})).blank(),o&&i.unshift("const fs = require('fs');"),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = formData;").blank(),i.push("fetch(url, options)").push(1,".then(res => res.json())").push(1,".then(json => console.log(json))").push(1,".catch(err => console.error('error:' + err));"),i.join().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"}},3095:(e,t,r)=>{"use strict";e.exports={info:{key:"node",title:"Node.js",extname:".js",default:"native"},native:r(5965),request:r(4213),unirest:r(9314),axios:r(1256),fetch:r(7911)}},5965:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new a(r.indent),i={method:e.method,hostname:e.uriObj.hostname,port:e.uriObj.port,path:e.uriObj.path,headers:e.allHeaders};switch(o.push('const http = require("%s");',e.uriObj.protocol.replace(":","")),o.blank().push("const options = %s;",JSON.stringify(i,null,r.indent)).blank().push("const req = http.request(options, function (res) {").push(1,"const chunks = [];").blank().push(1,'res.on("data", function (chunk) {').push(2,"chunks.push(chunk);").push(1,"});").blank().push(1,'res.on("end", function () {').push(2,"const body = Buffer.concat(chunks);").push(2,"console.log(body.toString());").push(1,"});").push("});").blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&(o.unshift('const qs = require("querystring");'),o.push("req.write(qs.stringify(%s));",n(e.postData.paramsObj,{indent:" ",inlineCharacterLimit:80})));break;case"application/json":e.postData.jsonObj&&o.push("req.write(JSON.stringify(%s));",n(e.postData.jsonObj,{indent:" ",inlineCharacterLimit:80}));break;default:e.postData.text&&o.push("req.write(%s);",JSON.stringify(e.postData.text,null,r.indent))}return o.push("req.end();"),o.join()},e.exports.info={key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"}},4213:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let i=!1;const s=new o(r.indent);s.push("const request = require('request');").blank();const l={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(l.qs=e.queryObj),Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":l.form=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(l.body=e.postData.jsonObj,l.json=!0);break;case"multipart/form-data":l.formData={},e.postData.params.forEach((function(e){const t={};e.fileName||e.fileName||e.contentType?(e.fileName?(i=!0,t.value='fs.createReadStream("'+e.fileName+'")'):e.value&&(t.value=e.value),e.fileName&&(t.options={filename:e.fileName,contentType:e.contentType?e.contentType:null}),l.formData[e.name]=t):l.formData[e.name]=e.value}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){l.jar="JAR",s.push("const jar = request.jar();");const t=e.url;e.cookies.forEach((function(e){s.push("jar.setCookie(request.cookie('%s=%s'), '%s');",encodeURIComponent(e.name),encodeURIComponent(e.value),t)})),s.blank()}return i&&s.unshift("const fs = require('fs');"),s.push("const options = %s;",a(l,{indent:" ",inlineCharacterLimit:80})).blank(),s.push(n.format("request(options, %s","function (error, response, body) {")).push(1,"if (error) throw new Error(error);").blank().push(1,"console.log(body);").push("});").blank(),s.join().replace('"JAR"',"jar").replace(/'fs\.createReadStream\("(.+)"\)'/g,"fs.createReadStream('$1')")},e.exports.info={key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"}},9314:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let a=!1;const o=new n(r.indent);switch(o.push('const unirest = require("unirest");').blank().push('const req = unirest("%s", "%s");',e.method,e.url).blank(),e.cookies.length&&(o.push("const CookieJar = unirest.jar();"),e.cookies.forEach((function(t){o.push('CookieJar.add("%s=%s","%s");',encodeURIComponent(t.name),encodeURIComponent(t.value),e.url)})),o.push("req.jar(CookieJar);").blank()),Object.keys(e.queryObj).length&&o.push("req.query(%s);",JSON.stringify(e.queryObj,null,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("req.headers(%s);",JSON.stringify(e.headersObj,null,r.indent)).blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&o.push("req.form(%s);",JSON.stringify(e.postData.paramsObj,null,r.indent)).blank();break;case"application/json":e.postData.jsonObj&&o.push('req.type("json");').push("req.send(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).blank();break;case"multipart/form-data":{const t=[];e.postData.params.forEach((function(e){const r={};e.fileName&&!e.value?(a=!0,r.body='fs.createReadStream("'+e.fileName+'")'):e.value&&(r.body=e.value),r.body&&(e.contentType&&(r["content-type"]=e.contentType),t.push(r))})),o.push("req.multipart(%s);",JSON.stringify(t,null,r.indent)).blank();break}default:e.postData.text&&o.push("req.send(%s);",JSON.stringify(e.postData.text,null,r.indent)).blank()}return a&&o.unshift('const fs = require("fs");'),o.push("req.end(function (res) {").push(1,"if (res.error) throw new Error(res.error);").blank().push(1,"console.log(res.body);").push("});").blank(),o.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"}},6714:(e,t,r)=>{"use strict";const n=r(9539);e.exports={blankString:function(e){return Array.apply(null,new Array(e)).map(String.prototype.valueOf," ").join("")},nsDeclaration:function(e,t,r,n){const a=e+" *"+t+" = ";return a+this.literalRepresentation(r,n?a.length:void 0)+";"},literalRepresentation:function(e,t){const r=void 0===t?", ":",\n "+this.blankString(t);switch(Object.prototype.toString.call(e)){case"[object Number]":return"@"+e;case"[object Array]":return"@[ "+e.map(function(e){return this.literalRepresentation(e)}.bind(this)).join(r)+" ]";case"[object Object]":{const t=[];for(const r in e)t.push(n.format('@"%s": %s',r,this.literalRepresentation(e[r])));return"@{ "+t.join(r)+" }"}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":'@"'+e.toString().replace(/"/g,'\\"')+'"'}}}},6629:(e,t,r)=>{"use strict";e.exports={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},nsurlsession:r(3743)}},3743:(e,t,r)=>{"use strict";const n=r(6714),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("#import "),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.nsDeclaration("NSDictionary","headers",e.allHeaders,r.pretty))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"%s=%s" dataUsingEncoding:NSUTF8StringEncoding]];',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("open Cohttp_lwt_unix").push("open Cohttp").push("open Lwt").blank().push('let uri = Uri.of_string "%s" in',e.fullUrl);const o=Object.keys(e.allHeaders);return 1===o.length?a.push('let headers = Header.add (Header.init ()) "%s" "%s" in',o[0],e.allHeaders[o[0]]):o.length>1&&(a.push("let headers = Header.add_list (Header.init ()) ["),o.forEach((function(t){a.push(1,'("%s", "%s");',t,e.allHeaders[t])})),a.push("] in")),e.postData.text&&a.push("let body = Cohttp_lwt_body.of_string %s in",JSON.stringify(e.postData.text)),a.blank(),a.push("Client.call %s%s%s uri",o.length?"~headers ":"",e.postData.text?"~body ":"",["get","post","head","delete","patch","put","options"].indexOf(e.method.toLowerCase())>=0?"`"+e.method.toUpperCase():'(Code.method_of_string "'+e.method+'")'),a.push(">>= fun (res, body_stream) ->").push(1,"(* Do stuff with the result *)"),a.join()},e.exports.info={key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"}},4955:(e,t,r)=>{"use strict";e.exports={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},cohttp:r(1501)}},7149:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",maxRedirects:10,namedErrors:!1,noTags:!1,shortTags:!1,timeout:30},t),o=new a(r.indent);r.noTags||o.push(r.shortTags?" %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const l=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));l.length&&s.push(n.format('CURLOPT_COOKIE => "%s",',l.join("; ")));const c=Object.keys(e.headersObj).sort().map((function(t){return n.format('"%s: %s"',t,e.headersObj[t])}));return c.length&&s.push("CURLOPT_HTTPHEADER => [").push(1,c.join(",\n"+r.indent+r.indent)).push("],"),o.push(1,s.join()).push("]);").blank().push("$response = curl_exec($curl);").push("$err = curl_error($curl);").blank().push("curl_close($curl);").blank().push("if ($err) {"),r.namedErrors?o.push(1,'echo array_flip(get_defined_constants(true)["curl"])[$err];'):o.push(1,'echo "cURL Error #:" . $err;'),o.push("} else {").push(1,"echo $response;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"}},8865:e=>{"use strict";const t=function(e,r,n){let a,o;switch(n||(n=""),Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:o="null";break;case"[object String]":o="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"'")+"'";break;case"[object Number]":o=e.toString();break;case"[object Array]":o=[],e.forEach((function(e){o.push(t(e,r+r,r))})),o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]";break;case"[object Object]":for(a in o=[],e)e.hasOwnProperty(a)&&o.push(t(a,r)+" => "+t(e[a],r+r,r));o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]"}return o};e.exports={convert:t,methods:["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"]}},6611:(e,t,r)=>{"use strict";const n=r(8865),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),o=new a(r.indent);if(r.noTags||o.push(r.shortTags?"setUrl(%s);",n.convert(e.url)),~n.methods.indexOf(e.method.toUpperCase())?o.push("$request->setMethod(HTTP_METH_%s);",e.method.toUpperCase()):o.push("$request->setMethod(HttpRequest::HTTP_METH_%s);",e.method.toUpperCase()),o.blank(),Object.keys(e.queryObj).length&&o.push("$request->setQueryData(%s);",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&o.push("$request->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),"application/x-www-form-urlencoded"===e.postData.mimeType)o.push("$request->setContentType(%s);",n.convert(e.postData.mimeType)).push("$request->setPostFields(%s);",n.convert(e.postData.paramsObj,r.indent)).blank();else e.postData.text&&o.push("$request->setBody(%s);",n.convert(e.postData.text)).blank();return o.push("try {").push(1,"$response = $request->send();").blank().push(1,"echo $response->getBody();").push("} catch (HttpException $ex) {").push(1,"echo $ex;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"}},2316:(e,t,r)=>{"use strict";const n=r(8865),a=r(174),o=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),i=new o(r.indent);let s=!1;switch(r.noTags||i.push(r.shortTags?"append(new http\\QueryString(%s));",n.convert(e.postData.paramsObj,r.indent)).blank(),s=!0;break;case"multipart/form-data":{const t=[],o={};e.postData.params.forEach((function(e){e.fileName?t.push({name:e.name,type:e.contentType,file:e.fileName,data:e.value}):e.value&&(o[e.name]=e.value)})),i.push("$body = new http\\Message\\Body;").push("$body->addForm(%s, %s);",Object.keys(o).length?n.convert(o,r.indent):"null",t.length?n.convert(t,r.indent):"null"),a.hasHeader(e.headersObj,"content-type")&&a.getHeader(e.headersObj,"content-type").indexOf("boundary")&&delete e.headersObj[a.getHeaderName(e.headersObj,"content-type")],i.blank(),s=!0;break}default:e.postData.text&&(i.push("$body = new http\\Message\\Body;").push("$body->append(%s);",n.convert(e.postData.text)).blank(),s=!0)}return i.push("$request->setRequestUrl(%s);",n.convert(e.url)).push("$request->setRequestMethod(%s);",n.convert(e.method)),s&&i.push("$request->setBody($body);").blank(),Object.keys(e.queryObj).length&&i.push("$request->setQuery(new http\\QueryString(%s));",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&i.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&i.blank().push("$client->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),i.push("$client->enqueue($request)->send();").push("$response = $client->getResponse();").blank().push("echo $response->getBody();"),!r.noTags&&r.closingTag&&i.blank().push("?>"),i.join()},e.exports.info={key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"}},8663:(e,t,r)=>{"use strict";e.exports={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:r(7149),http1:r(6611),http2:r(2316)}},3147:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e){return function(t,r){const o=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(t.method.toUpperCase()))return"Method not supported";const i=[],s=Object.keys(t.headersObj);return s.length&&(o.push("$headers=@{}"),s.forEach((function(e){"connection"!==e&&o.push('$headers.Add("%s", "%s")',e,t.headersObj[e])})),i.push("-Headers $headers")),t.cookies.length&&(o.push("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),t.cookies.forEach((function(e){o.push("$cookie = New-Object System.Net.Cookie"),o.push("$cookie.Name = '%s'",e.name),o.push("$cookie.Value = '%s'",e.value),o.push("$cookie.Domain = '%s'",t.uriObj.host),o.push("$session.Cookies.Add($cookie)")})),i.push("-WebSession $session")),t.postData.text&&(i.push("-ContentType '"+a.getHeader(t.allHeaders,"content-type")+"'"),i.push("-Body '"+t.postData.text+"'")),o.push("$response = %s -Uri '%s' -Method %s %s",e,t.fullUrl,t.method,i.join(" ")),o.join()}}},3218:(e,t,r)=>{"use strict";e.exports={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},webrequest:r(3699),restmethod:r(775)}},775:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-RestMethod"),e.exports.info={key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"}},3699:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-WebRequest"),e.exports.info={key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"}},246:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n,o){const i=a(o,n),s=a(o-1,n),l=r?",\n"+i:", ",c="object"===e?"{":"[",p="object"===e?"}":"]";return r?c+"\n"+i+t.join(l)+"\n"+s+p:c+t.join(l)+p}e.exports={literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o("array",e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o("object",a,t.pretty&&a.length>1,t.indent,r)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},3979:(e,t,r)=>{"use strict";e.exports={info:{key:"python",title:"Python",extname:".py",default:"python3"},python3:r(5887),requests:r(8493)}},5887:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("import http.client").blank();"https:"===e.uriObj.protocol?r.push('conn = http.client.HTTPSConnection("%s")',e.uriObj.host).blank():r.push('conn = http.client.HTTPConnection("%s")',e.uriObj.host).blank();const a=JSON.stringify(e.postData.text);a&&r.push("payload = %s",a).blank();const o=e.allHeaders,i=Object.keys(o).length;if(1===i)for(const e in o)r.push("headers = { '%s': \"%s\" }",e,o[e]).blank();else if(i>1){let e=1;r.push("headers = {");for(const t in o)e++!==i?r.push(" '%s': \"%s\",",t,o[t]):r.push(" '%s': \"%s\"",t,o[t]);r.push(" }").blank()}const s=e.method,l=e.uriObj.path;return a&&i?r.push('conn.request("%s", "%s", payload, headers)',s,l):a&&!i?r.push('conn.request("%s", "%s", payload)',s,l):!a&&i?r.push('conn.request("%s", "%s", headers=headers)',s,l):r.push('conn.request("%s", "%s")',s,l),r.blank().push("res = conn.getresponse()").push("data = res.read()").blank().push('print(data.decode("utf-8"))'),r.join()},e.exports.info={key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"}},8493:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544),o=r(246);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0},t),i=new a(r.indent);let s;i.push("import requests").blank(),i.push('url = "%s"',e.url).blank(),Object.keys(e.queryObj).length&&(s="querystring = "+JSON.stringify(e.queryObj),i.push(s).blank());let l=!1,c=!1;if("application/json"===e.postData.mimeType)e.postData.jsonObj&&(i.push("payload = %s",o.literalRepresentation(e.postData.jsonObj,r)),c=!0,l=!0);else{const t=JSON.stringify(e.postData.text);t&&(i.push("payload = %s",t),l=!0)}const p=e.allHeaders,d=Object.keys(p).length;if(1===d)for(const e in p)i.push('headers = {"%s": "%s"}',e,p[e]).blank();else if(d>1){let e=1;i.push("headers = {");for(const t in p)e++!==d?i.push(1,'"%s": "%s",',t,p[t]):i.push(1,'"%s": "%s"',t,p[t]);i.push("}").blank()}const u=e.method;let h=n.format('response = requests.request("%s", url',u);return l&&(h+=c?", json=payload":", data=payload"),d>0&&(h+=", headers=headers"),s&&(h+=", params=querystring"),h+=")",i.push(h).blank().push("print(response.text)"),i.join()},e.exports.info={key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"}},6064:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=new a;r.push("library(httr)").blank(),r.push('url <- "%s"',e.url).blank();const o=e.queryObj,i=Object.keys(o).length;if(delete e.queryObj.key,1===e.queryString.length)r.push('queryString <- list(%s = "%s")',Object.keys(o),Object.values(o).toString()).blank();else if(e.queryString.length>1){let e=1;r.push("queryString <- list(");for(const t in o)e++!=i-1?r.push(' %s = "%s",',t,o[t].toString()):r.push(' %s = "%s"',t,o[t].toString());r.push(")").blank()}const s=JSON.stringify(e.postData.text);if(s&&r.push("payload <- %s",s).blank(),e.postData.text||e.postData.jsonObj||e.postData.params)switch(e.postData.mimeType){case"application/x-www-form-urlencoded":r.push('encode <- "form"').blank();break;case"application/json":r.push('encode <- "json"').blank();break;case"multipart/form-data":r.push('encode <- "multipart"').blank();break;default:r.push('encode <- "raw"').blank()}const l=e.allHeaders;let c,p,d=Object.keys(l).length,u="";for(const e in l)"accept"===e.toLowerCase()?(p=', accept("'+l[e]+'")',d-=1):"cookie"===e.toLowerCase()?(c=", set_cookies(`"+l[e].replace(/;/g,'", `').replace(/` /g,"`").replace(/=/g,'` = "')+'")',d-=1):"content-type"!==e.toLowerCase()&&(u=u+e.replace("-","_")+" = '"+l[e],d>1&&(u+="', "));const h=e.method;let f=n.format('response <- VERB("%s", url',h);return s&&(f+=", body = payload"),""!==u&&(f+=", add_headers("+u+"')"),e.queryString.length&&(f+=", query = queryString"),f+=', content_type("'+e.postData.mimeType+'")',void 0!==p&&(f+=p),void 0!==c&&(f+=c),(e.postData.text||e.postData.jsonObj||e.postData.params)&&(f+=", encode = encode"),f+=")",r.push(f).blank().push('content(response, "text")'),r.join()},e.exports.info={key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"}},2817:(e,t,r)=>{"use strict";e.exports={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:r(6064)}},2682:(e,t,r)=>{"use strict";e.exports={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},native:r(5938)}},5938:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("require 'uri'").push("require 'net/http'"),"https:"===e.uriObj.protocol&&r.push("require 'openssl'"),r.blank();const a=e.method.toUpperCase(),o=a.charAt(0)+a.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].indexOf(a)<0&&r.push("class Net::HTTP::%s < Net::HTTPRequest",o).push(" METHOD = '%s'",a.toUpperCase()).push(" REQUEST_HAS_BODY = '%s'",e.postData.text?"true":"false").push(" RESPONSE_HAS_BODY = true").push("end").blank(),r.push('url = URI("%s")',e.fullUrl).blank().push("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.uriObj.protocol&&r.push("http.use_ssl = true").push("http.verify_mode = OpenSSL::SSL::VERIFY_NONE"),r.blank().push("request = Net::HTTP::%s.new(url)",o);const i=Object.keys(e.allHeaders);return i.length&&i.forEach((function(t){r.push("request[\"%s\"] = '%s'",t,e.allHeaders[t])})),e.postData.text&&r.push("request.body = %s",JSON.stringify(e.postData.text)),r.blank().push("response = http.request(request)").push("puts response.read_body"),r.join()},e.exports.info={key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"}},9326:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(174),i=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,binary:!1,globOff:!1},t),s=new i(r.indent,!1!==r.indent?" \\\n"+r.indent:" "),l=r.short?"-g":"--globoff",c=r.short?"-X":"--request";let p=a.quote(e.fullUrl);if(s.push("curl %s %s",c,e.method),r.globOff&&(p=unescape(p),s.push(l)),s.push(n.format("%s%s",r.short?"":"--url ",p)),"HTTP/1.0"===e.httpVersion&&s.push(r.short?"-0":"--http1.0"),"multipart/form-data"===e.postData.mimeType){const t=o.getHeaderName(e.headersObj,"content-type"),r=e.headersObj[t];if(t&&r){const n=r.replace(/; boundary.+?(?=(;|$))/,"");e.headersObj[t]=n,e.allHeaders[t]=n}}switch(Object.keys(e.headersObj).sort().forEach((function(t){const o=n.format("%s: %s",t,e.headersObj[t]);s.push("%s %s",r.short?"-H":"--header",a.quote(o))})),e.allHeaders.cookie&&s.push("%s %s",r.short?"-b":"--cookie",a.quote(e.allHeaders.cookie)),e.postData.mimeType){case"multipart/form-data":e.postData.params.forEach((function(e){let t="";t=e.fileName?n.format("%s=@%s",e.name,e.fileName):n.format("%s=%s",e.name,e.value),s.push("%s %s",r.short?"-F":"--form",a.quote(t))}));break;case"application/x-www-form-urlencoded":e.postData.params?e.postData.params.forEach((function(e){s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(n.format("%s=%s",e.name,e.value)))})):s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text));break;default:e.postData.text&&s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text))}return s.join()},e.exports.info={key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"}},9194:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");let s=!1;const l=[];if(r.headers&&l.push(r.short?"-h":"--headers"),r.body&&l.push(r.short?"-b":"--body"),r.verbose&&l.push(r.short?"-v":"--verbose"),r.print&&l.push(n.format("%s=%s",r.short?"-p":"--print",r.print)),r.verify&&l.push(n.format("--verify=%s",r.verify)),r.cert&&l.push(n.format("--cert=%s",r.cert)),r.pretty&&l.push(n.format("--pretty=%s",r.pretty)),r.style&&l.push(n.format("--style=%s",r.pretty)),r.timeout&&l.push(n.format("--timeout=%s",r.timeout)),r.queryParams){Object.keys(e.queryObj).forEach((function(t){const r=e.queryObj[t];Array.isArray(r)?r.forEach((function(e){i.push("%s==%s",t,a.quote(e))})):i.push("%s==%s",t,a.quote(r))}))}return Object.keys(e.allHeaders).sort().forEach((function(t){i.push("%s:%s",t,a.quote(e.allHeaders[t]))})),"application/x-www-form-urlencoded"===e.postData.mimeType?e.postData.params&&e.postData.params.length&&(l.push(r.short?"-f":"--form"),e.postData.params.forEach((function(e){i.push("%s=%s",e.name,a.quote(e.value))}))):s=!0,i.unshift("http %s%s %s",l.length?l.join(" ")+" ":"",e.method,a.quote(r.queryParams?e.url:e.fullUrl)),s&&e.postData.text&&i.unshift("echo %s | ",a.quote(e.postData.text)),i.join()},e.exports.info={key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"}},869:(e,t,r)=>{"use strict";e.exports={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},curl:r(9326),httpie:r(9194),wget:r(2616)}},2616:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,verbose:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");return r.verbose?i.push("wget %s",r.short?"-v":"--verbose"):i.push("wget %s",r.short?"-q":"--quiet"),i.push("--method %s",a.quote(e.method)),Object.keys(e.allHeaders).forEach((function(t){const r=n.format("%s: %s",t,e.allHeaders[t]);i.push("--header %s",a.quote(r))})),e.postData.text&&i.push("--body-data "+a.escape(a.quote(e.postData.text))),i.push(r.short?"-O":"--output-document").push("- %s",a.quote(e.fullUrl)),i.join()},e.exports.info={key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"}},3780:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n){const o=a(n,r),i=a(n-1,r),s=t?",\n"+o:", ";return t?"[\n"+o+e.join(s)+"\n"+i+"]":"["+e.join(s)+"]"}e.exports={literalDeclaration:function(e,t,r){return n.format("let %s = %s",e,this.literalRepresentation(t,r))},literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o(e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o(a,t.pretty&&a.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},4484:(e,t,r)=>{"use strict";e.exports={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},nsurlsession:r(7606)}},7606:(e,t,r)=>{"use strict";const n=r(3780),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("import Foundation"),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.literalDeclaration("headers",e.allHeaders,r))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('let postData = NSMutableData(data: "%s=%s".data(using: String.Encoding.utf8)!)',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t Void in").push(1,"if (error != nil) {").push(2,"print(error)").push(1,"} else {").push(2,"let httpResponse = response as? HTTPURLResponse").push(2,"print(httpResponse)").push(1,"}").push("})").blank().push("dataTask.resume()"),o.join()},e.exports.info={key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"}},645:(e,t)=>{t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,l=(1<>1,p=-7,d=r?a-1:0,u=r?-1:1,h=e[t+d];for(d+=u,o=h&(1<<-p)-1,h>>=-p,p+=s;p>0;o=256*o+e[t+d],d+=u,p-=8);for(i=o&(1<<-p)-1,o>>=-p,p+=n;p>0;i=256*i+e[t+d],d+=u,p-=8);if(0===o)o=1-c;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),o-=c}return(h?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,l,c=8*o-a-1,p=(1<>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=p?(s=0,i=p):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[r+h]=255&s,h+=f,s/=256,a-=8);for(i=i<0;e[r+h]=255&i,h+=f,i/=256,c-=8);e[r+h-f]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),a=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=s?o:i},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},a((function(){throw 42}),null,t)}catch(e){e!==r&&(a=null)}else a=null;var o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var u=document.all;l.call(u)===l.call(document.all)&&(d=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,r)=>{"use strict";var n,a=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,s=r(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),a=r(4289),o=r(8611),i=r(9415),s=r(3194),l=n(i(),Number);a(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),a=r(9415);e.exports=function(){var e=a();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},4290:e=>{"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},7777:e=>{"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},5692:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=o("Object.prototype.toString"),s=r(6410)(),l=r(7296),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!l&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},3320:(e,t,r)=>{"use strict";var n=r(7990),a=r(3150);function o(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(1364),e.exports.Schema=r(7657),e.exports.FAILSAFE_SCHEMA=r(4795),e.exports.JSON_SCHEMA=r(5966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(6601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=a.dump,e.exports.YAMLException=r(8425),e.exports.types={binary:r(3531),float:r(5215),map:r(945),null:r(151),pairs:r(6879),set:r(4982),timestamp:r(2156),bool:r(8771),int:r(1518),merge:r(7452),omap:r(1605),seq:r(6451),str:r(48)},e.exports.safeLoad=o("safeLoad","load"),e.exports.safeLoadAll=o("safeLoadAll","loadAll"),e.exports.safeDump=o("safeDump","dump")},8347:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r{"use strict";var n=r(8347),a=r(8425),o=r(6601),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l=65279,c=9,p=10,d=13,u=32,h=33,f=34,m=35,g=37,y=38,v=39,b=42,x=44,w=45,$=58,S=61,E=62,k=63,A=64,_=91,O=93,P=96,T=123,j=124,C=125,R={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function L(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new a("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}var M=1,N=2;function F(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,o,i,l,c;if(null===t)return{};for(r={},a=0,o=(n=Object.keys(t)).length;a=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function V(e){return/^\n* /.test(e)}var K=1,G=2,Y=3,J=4,X=5;function Q(e,t,r,n,a,o,i,s){var c,d,u=0,R=null,I=!1,D=!1,L=-1!==n,M=-1,F=H(d=Z(e,0))&&d!==l&&!B(d)&&d!==w&&d!==k&&d!==$&&d!==x&&d!==_&&d!==O&&d!==T&&d!==C&&d!==m&&d!==y&&d!==b&&d!==h&&d!==j&&d!==S&&d!==E&&d!==v&&d!==f&&d!==g&&d!==A&&d!==P&&function(e){return!B(e)&&e!==$}(Z(e,e.length-1));if(t||i)for(c=0;c=65536?c+=2:c++){if(!H(u=Z(e,c)))return X;F=F&&W(u,R,s),R=u}else{for(c=0;c=65536?c+=2:c++){if((u=Z(e,c))===p)I=!0,L&&(D=D||c-M-1>n&&" "!==e[M+1],M=c);else if(!H(u))return X;F=F&&W(u,R,s),R=u}D=D||L&&c-M-1>n&&" "!==e[M+1]}return I||D?r>9&&V(e)?X:i?o===N?X:G:D?J:Y:!F||i||a(e)?o===N?X:G:K}function ee(e,t,r,n,o){e.dump=function(){if(0===t.length)return e.quotingType===N?'""':"''";if(!e.noCompatMode&&(-1!==I.indexOf(t)||D.test(t)))return e.quotingType===N?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Q(t,l,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+te(t,e.indent)+re(U(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,ne(e.slice(0,s),t)),i="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var l=n[1],c=n[2];r=" "===c[0],o+=l+(i||r||""===c?"":"\n")+ne(c,t),i=r}return o}(t,s),i));case X:return'"'+function(e){for(var t,r="",n=0,a=0;a=65536?a+=2:a++)n=Z(e,a),!(t=R[n])&&H(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||L(n);return r}(t)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function te(e,t){var r=V(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function re(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ne(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,o=0,i=0,s=0,l="";r=a.exec(e);)(s=r.index)-o>t&&(n=i>o?i:s,l+="\n"+e.slice(o,n),o=n+1),i=s;return l+="\n",e.length-o>t&&i>o?l+=e.slice(o,i)+"\n"+e.slice(i+1):l+=e.slice(o),l.slice(1)}function ae(e,t,r,n){var a,o,i,s="",l=e.tag;for(a=0,o=r.length;a tag resolver accepts not "'+d+'" style');n=p.represent[d](t,d)}e.dump=n}return!0}return!1}function ie(e,t,r,n,o,s,l){e.tag=null,e.dump=r,oe(e,r,!1)||oe(e,r,!0);var c,d=i.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var h,f,m="[object Object]"===d||"[object Array]"===d;if(m&&(f=-1!==(h=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(m&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===d)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var o,i,s,l,c,d,u="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=f.length;o1024)&&(e.dump&&p===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,c&&(d+=q(e,t)),ie(e,t+1,l,!0,c)&&(e.dump&&p===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=h,e.dump=u||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i,s,l="",c=e.tag,p=Object.keys(r);for(n=0,a=p.length;n1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ie(e,t,i,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===d)n&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?ae(e,t-1,e.dump,o):ae(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i="",s=e.tag;for(n=0,a=r.length;n",e.dump=c+" "+e.dump)}return!0}function se(e,t){var r,n,a=[],o=[];for(le(e,a,o),r=0,n=o.length;r{"use strict";function t(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},7990:(e,t,r)=>{"use strict";var n=r(8347),a=r(8425),o=r(192),i=r(6601),s=Object.prototype.hasOwnProperty,l=1,c=2,p=3,d=4,u=1,h=2,f=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function w(e){return 10===e||13===e}function $(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function E(e){return 44===e||91===e||93===e||123===e||125===e}function k(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),P=new Array(256),T=0;T<256;T++)O[T]=A(T)?1:0,P[T]=A(T);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function C(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=o(r),new a(t,r)}function R(e,t){throw C(e,t)}function I(e,t){e.onWarning&&e.onWarning.call(null,C(e,t))}var D={YAML:function(e,t,r){var n,a,o;null!==e.version&&R(e,"duplication of %YAML directive"),1!==r.length&&R(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&R(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),1!==a&&R(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&I(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&R(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],v.test(n)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&R(e,'there is a previously declared suffix for "'+n+'" tag handle'),b.test(a)||R(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){R(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function L(e,t,r,n){var a,o,i,s;if(t1&&(e.result+=n.repeat("\n",t-1))}function H(e,t){var r,n,a=e.tag,o=e.anchor,i=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),45===n)&&S(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Z(e,t,p,!1,!0),i.push(e.result),U(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)R(e,"bad indentation of a sequence entry");else if(e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt)&&(b&&(i=e.line,s=e.lineStart,l=e.position),Z(e,t,d,!0,a)&&(b?y=e.result:v=e.result),b||(N(e,f,m,g,y,v,i,s,l),g=y=v=null),U(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==p)R(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?R(e,"repeat of an indentation width identifier"):(d=t+o-1,p=!0)}if($(i)){do{i=e.input.charCodeAt(++e.position)}while($(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!w(i)&&0!==i)}for(;0!==i;){for(F(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!p||e.lineIndentd&&(d=e.lineIndent),w(i))m++;else{if(e.lineIndent0){for(a=i,o=0;a>0;a--)(i=k(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+i:R(e,"expected hexadecimal character");e.result+=_(o),e.position++}else R(e,"unknown escape sequence");r=n=e.position}else w(s)?(L(e,r,n,!0),B(e,U(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}(e,A)?I=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!E(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&R(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),s.call(e.anchorMap,r)||R(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],U(e,!0,-1),!0}(e)?function(e,t,r){var n,a,o,i,s,l,c,p,d=e.kind,u=e.result;if(S(p=e.input.charCodeAt(e.position))||E(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(S(n=e.input.charCodeAt(e.position+1))||r&&E(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,i=!1;0!==p;){if(58===p){if(S(n=e.input.charCodeAt(e.position+1))||r&&E(n))break}else if(35===p){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&E(p))break;if(w(p)){if(s=e.line,l=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}i&&(L(e,a,o,!1),B(e,e.line-s),a=o=e.position,i=!1),$(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return L(e,a,o,!1),!!e.result||(e.kind=d,e.result=u,!1)}(e,A,l===r)&&(I=!0,null===e.tag&&(e.tag="?")):(I=!0,null===e.tag&&null===e.anchor||R(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===j&&(I=g&&H(e,T))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&R(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),y=0,v=e.implicitTypes.length;y"),null!==e.result&&x.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}function V(e){var t,r,n,a,o=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(U(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(i=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&R(e,"directive name must not be less than one character in length");0!==a;){for(;$(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!w(a));break}if(w(a))break;for(t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&F(e),s.call(D,r)?D[r](e,r,n):I(e,'unknown document directive "'+r+'"')}U(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,U(e,!0,-1)):i&&R(e,"directives end mark is expected"),Z(e,e.lineIndent-1,d,!1,!0),U(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(o,e.position))&&I(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,U(e,!0,-1)):e.position{"use strict";var n=r(8425),a=r(1364);function o(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function i(e){return this.extend(e)}i.prototype.extend=function(e){var t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(i.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=o(s,"implicit"),s.compiledExplicit=o(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";e.exports=r(5966)},6601:(e,t,r)=>{"use strict";e.exports=r(9471).extend({implicit:[r(2156),r(7452)],explicit:[r(3531),r(1605),r(6879),r(4982)]})},4795:(e,t,r)=>{"use strict";var n=r(7657);e.exports=new n({explicit:[r(48),r(6451),r(945)]})},5966:(e,t,r)=>{"use strict";e.exports=r(4795).extend({implicit:[r(151),r(8771),r(1518),r(5215)]})},192:(e,t,r)=>{"use strict";var n=r(8347);function a(e,t,r,n,a){var o="",i="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(i=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function o(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;r=i.exec(e.buffer);)l.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);var p,d,u="",h=Math.min(e.line+t.linesAfter,l.length).toString().length,f=t.maxLength-(t.indent+h+3);for(p=1;p<=t.linesBefore&&!(c-p<0);p++)d=a(e.buffer,s[c-p],l[c-p],e.position-(s[c]-s[c-p]),f),u=n.repeat(" ",t.indent)+o((e.line-p+1).toString(),h)+" | "+d.str+"\n"+u;for(d=a(e.buffer,s[c],l[c],e.position,f),u+=n.repeat(" ",t.indent)+o((e.line+1).toString(),h)+" | "+d.str+"\n",u+=n.repeat("-",t.indent+h+3+d.pos)+"^\n",p=1;p<=t.linesAfter&&!(c+p>=l.length);p++)d=a(e.buffer,s[c+p],l[c+p],e.position-(s[c]-s[c+p]),f),u+=n.repeat(" ",t.indent)+o((e.line+p+1).toString(),h)+" | "+d.str+"\n";return u.replace(/\n$/,"")}},1364:(e,t,r)=>{"use strict";var n=r(8425),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){i[String(t)]=e}))})),i),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3531:(e,t,r)=>{"use strict";var n=r(1364),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length,i=a;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=a,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(255&s)),s=s<<6|i.indexOf(n.charAt(t));return 0===(r=o%4*6)?(l.push(s>>16&255),l.push(s>>8&255),l.push(255&s)):18===r?(l.push(s>>10&255),l.push(s>>2&255)):12===r&&l.push(s>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length,s=a;for(t=0;t>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]),o=(o<<8)+e[t];return 0===(r=i%3)?(n+=s[o>>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]):2===r?(n+=s[o>>10&63],n+=s[o>>4&63],n+=s[o<<2&63],n+=s[64]):1===r&&(n+=s[o>>2&63],n+=s[o<<4&63],n+=s[64],n+=s[64]),n}})},8771:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5215:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364),o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var i=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},1518:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364);function o(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}e.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,s=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},945:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},7452:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},151:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},1605:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,s,l=[],c=e;for(t=0,r=c.length;t{"use strict";var n=r(1364),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4982:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(a.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},48:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},2156:(e,t,r)=>{"use strict";var n=r(1364),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==o.exec(e))},construct:function(e){var t,r,n,i,s,l,c,p,d=0,u=null;if(null===(t=a.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],l=+t[5],c=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(r,n,i,s,l,c,d)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},9461:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,a,o,i,s,l,c,p,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in n(o,i,s,l,c,p,d),o){var h=o[u];if(Array.isArray(h)){if(u in t.arrayKeywords)for(var f=0;f{var n="__lodash_hash_undefined__",a=1/0,o="[object Function]",i="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=f||m||Function("return this")();var y,v=Array.prototype,b=Function.prototype,x=Object.prototype,w=g["__core-js_shared__"],$=(y=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",S=b.toString,E=x.hasOwnProperty,k=x.toString,A=RegExp("^"+S.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=g.Symbol,O=v.splice,P=U(g,"Map"),T=U(Object,"create"),j=_?_.prototype:void 0,C=j?j.toString:void 0;function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=L(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new R,map:new(P||I),string:new R}},D.prototype.delete=function(e){return F(this,e).delete(e)},D.prototype.get=function(e){return F(this,e).get(e)},D.prototype.has=function(e){return F(this,e).has(e)},D.prototype.set=function(e,t){return F(this,e).set(e,t),this};var q=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Z(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var r=[];return p.test(e)&&r.push(""),e.replace(d,(function(e,t,n,a){r.push(n?a.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||Z(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(H.Cache||D),r}H.Cache=D;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Z(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==s}e.exports=function(e,t,r){var n=null==e?void 0:M(e,t);return void 0===n?r:n}},2307:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",a=1,o=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",d="[object Date]",u="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",v="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",$="[object Set]",S="[object String]",E="[object Symbol]",k="[object Undefined]",A="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",P=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[l]=j[_]=j[p]=j[O]=j[d]=j[u]=j[h]=j[m]=j[g]=j[v]=j[w]=j[$]=j[S]=j[A]=!1;var C="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,I=C||R||Function("return this")(),D=t&&!t.nodeType&&t,L=D&&e&&!e.nodeType&&e,M=L&&L.exports===D,N=M&&C.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function q(e,t){for(var r=-1,n=null==e?0:e.length;++rc))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var u=-1,h=!0,f=r&o?new _e:void 0;for(s.set(e,t),s.set(t,e);++u-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(ue||ke),string:new Ee}},Ae.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Ne(this,e).get(e)},Ae.prototype.has=function(e){return Ne(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Ne(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,n),this},_e.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new ke,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!ue||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ae(n)}return r.set(e,t),this.size=r.size,this};var Ue=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Xe=U?function(e){return function(t){return e(t)}}(U):function(e){return Je(e)&&Ge(e.length)&&!!j[je(e)]};function Qe(e){return null!=(t=e)&&Ge(t.length)&&!Ke(t)?Pe(e):De(e);var t}e.exports=function(e,t){return Re(e,t)}},2508:(e,t,r)=>{var n=r(4155),a=r(2830).Stream;e.exports=function(e,t){var r=new a,o=this,i=0,s=0,l=!1,c=!1,p=!1,d=0,u=!1;this.opts=t||{};var h=this.opts.failures?"failure":"error",f={};function m(e,t){var n=d+1;if(t===n?(void 0!==e&&r.emit.apply(r,["data",e]),d++,n++):f[t]=e,f.hasOwnProperty(n)){var a=f[n];return delete f[n],m(a,n)}s++,i===s&&(c&&(c=!1,r.emit("drain")),l&&y())}function g(e,t,n){p||(u=!0,e&&!o.opts.failures||m(t,n),e&&r.emit.apply(r,[h,e]),u=!1)}function y(e){if(l=!0,r.writable=!1,void 0!==e)return m(e,i);i==s&&(r.readable=!1,r.emit("end"),r.destroy())}return r.writable=!0,r.readable=!0,r.write=function(t){if(l)throw new Error("map stream is not writable");u=!1,i++;try{var r=(n=t,a=i,o=g,e.call(null,n,(function(e,t){o(e,t,a)})));return!(c=!1===r)}catch(e){if(u)throw e;return g(e),!c}var n,a,o},r.end=function(e){l||y()},r.destroy=function(){l=p=!0,r.writable=r.readable=c=!1,n.nextTick((function(){r.emit("close")}))},r.pause=function(){c=!0},r.resume=function(){c=!1},r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),a=r(5559),o=r(4244),i=r(5624),s=r(2281),l=a(i(),Object);n(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),a=r(4289);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=r(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=i(e),s=t&&"[object String]"===o.call(e),u=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!a.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var n=Array.prototype.slice,a=r(1414),o=Object.keys,i=o?function(e){return o(e)}:r(8987),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7549:(e,t,r)=>{e.exports=r(6547)},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},8325:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof o)){var k,A=1;if(v){if(!(k=i(w,S,e,y))||k.index>=e.length)break;var _=k.index,O=k.index+k[0].length,P=S;for(P+=$.value.length;_>=P;)P+=($=$.next).value.length;if(S=P-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(Pd.reach&&(d.reach=I);var D=$.prev;if(C&&(D=c(t,D,C),S+=C.length),p(t,D,A),$=c(t,D,new o(u,g?a.tokenize(j,g):j,b,j)),R&&c(t,$,R),A>1){var L={cause:u+","+f,reach:I};s(e,t,r,$.prev,S,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function p(e,t,r){for(var n=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,o=r.code,i=r.immediateClose;e.postMessage(a.highlight(o,a.languages[n],n)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==r.g&&(r.g.Prism=n)},9016:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,n){return RegExp(t(e,r),n||"")}function n(e,t){for(var r=0;r>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(o),p=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),u=l(a+" "+o+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=n(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,u,m]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,$,p.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=k+"|"+E,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var C=/:[^}\r\n]+/.source,R=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,C]),D=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,C]);function M(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,C]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:M(I,R)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:M(L,D)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},5251:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},7046:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},57:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,n=e.languages,a={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in a)if(a[s]){r=r||{};var l=o[s]?i(s):s;r[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},2503:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},9980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,n,a,o){if(r.language===n){var i=r.tokenStack=[];r.code=r.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==r.code.indexOf(a=t(n,s));)++s;return i[s]=e,a})),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,n){if(r.language===n&&r.tokenStack){r.grammar=e.languages[n];var a=0,o=Object.keys(r.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var p=o[a],d=r.tokenStack[p],u="string"==typeof c?c:c.content,h=t(n,p),f=u.indexOf(h);if(f>-1){++a;var m=u.substring(0,f),g=new e.Token(n,e.tokenize(d,r.grammar),"language-"+n,d),y=u.substring(f+h.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),y&&v.push.apply(v,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&i(c.content)}return s}(r.tokens)}}}})}(Prism)},4335:()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9945:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:a,punctuation:o};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},366:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},9385:()=>{!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)},3358:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},5712:()=>{!function(){if("undefined"!=typeof Prism){var e,t,r="";Prism.plugins.customClass={add:function(t){e=t},map:function(e){t="function"==typeof e?e:function(t){return e[t]||t}},prefix:function(e){r=e||""},apply:n},Prism.hooks.add("wrap",(function(a){if(e){var o=e({content:a.content,type:a.type,language:a.language});Array.isArray(o)?a.classes.push.apply(a.classes,o):o&&a.classes.push(o)}(t||r)&&(a.classes=a.classes.map((function(e){return n(e,a.language)})))}))}function n(e,n){return r+(t?t(e,n):e)}}()},4155:e=>{var t,r,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],c=!1,p=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):p=-1,l.length&&u())}function u(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++p1)for(var r=1;r{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(p=f.substr(0,m),d=f.substr(m+1)):(p=f,d=""),u=decodeURIComponent(p),h=decodeURIComponent(d),t(o,u)?Array.isArray(o[u])?o[u].push(h):o[u]=[o[u],h]:o[u]=h}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,a){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[a]))})).join(r):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},4281:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var a,o,i,s;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,r)=>{"use strict";var n=r(4155),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(9481),i=r(4229);r(5717)(p,o);for(var s=a(i.prototype),l=0;l{"use strict";e.exports=a;var n=r(4605);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(5717)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n,a=r(4155);e.exports=k,k.ReadableState=E;r(7187).EventEmitter;var o=function(e,t){return e.listeners(t).length},i=r(222),s=r(8764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,p=r(4616);c=p&&p.debuglog?p.debuglog("stream"):function(){};var d,u,h,f=r(7327),m=r(1195),g=r(2457).getHighWaterMark,y=r(4281).q,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,x=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(k,i);var $=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,a){n=n||r(6753),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",a),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(6753),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var o,i=e._readableState;if(null===t)i.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,i);else if(a||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(i,t)),o)$(e,o);else if(i.objectMode||t&&t.length>0)if("string"==typeof t||i.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)i.endEmitted?$(e,new w):_(e,i,t,!0);else if(i.ended)$(e,new b);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):C(e,i)):_(e,i,t,!1)}else n||(i.reading=!1,C(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,M(e)}function C(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function L(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){$(this,new x("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==a.stdout&&e!==a.stderr?l:g;function s(t,a){c("onunpipe"),t===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",u),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){c("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",s);var p=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",p);var d=!1;function u(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!d&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===o(e,"error")&&$(e,t)}function f(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||a.nextTick(D,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(I,this),r},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(L,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o{"use strict";e.exports=p;var n=r(4281).q,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(6753);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";var n,a=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=E;var i={deprecate:r(4927)},s=r(222),l=r(8764).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,d=r(1195),u=r(2457).getHighWaterMark,h=r(4281).q,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,x=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,$=d.errorOrDestroy;function S(){}function E(e,t,i){n=n||r(6753),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(a.nextTick(o,n),a.nextTick(j,e,t),e._writableState.errorEmitted=!0,$(e,n)):(o(n),e._writableState.errorEmitted=!0,$(e,n),j(e,t))}(e,r,n,t,o);else{var i=P(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?a.nextTick(_,e,r,i,o):_(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(6753));if(!t&&!p.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,a,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,p=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,p,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===k&&(e&&e._writableState instanceof E)}})):p=function(e){return e instanceof this},k.prototype.pipe=function(){$(this,new y)},k.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,s=!o.objectMode&&(n=e,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new x;$(e,r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||($(e,o),a.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,a,o){if(!r){var i=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,a);n!==i&&(r=!0,a="buffer",n=i)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,r)=>{"use strict";var n,a=r(4155);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(8610),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),p=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){a.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){a.nextTick((function(){e[c]?r(e[c]):t(f(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[p]?r(f(void 0,!0)):t[u](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[u])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,p,{value:e._readableState.endEmitted,writable:!0}),o(t,u,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[p]=!0})),e.on("readable",g.bind(null,r)),r}},7327:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,a=l.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=a,n=i,l.prototype.copy.call(t,r,n),i+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,o),0==(e-=o)){o===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return c(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1195:(e,t,r)=>{"use strict";var n=r(4155);function a(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,r)=>{"use strict";var n;var a=r(4281).q,o=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a0,(function(e){p||(p=e),e&&u.forEach(l),o||(u.forEach(l),d(p))}))}));return t.reduce(c)}},2457:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,a){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},222:(e,t,r)=>{e.exports=r(7187).EventEmitter},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725),t.finished=r(8610),t.pipeline=r(9946)},6464:e=>{"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var a=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=a)return r.substr(0,a);for(;a>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,a)}},9509:(e,t,r)=>{var n=r(8764),a=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(a.prototype),o(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},4563:(e,t,r)=>{var n=r(6547),a=r(2553).s;e.exports=function(e,t,r){var o=new a,i="",s=r&&r.maxLength;"function"==typeof e&&(t=e,e=null);e||(e=/\r?\n/);function l(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}void 0!==r&&e.queue(r)}else e.queue(r)}function c(t,r){var n=((null!=i?i:"")+r).split(e);i=n.pop(),s&&i.length>s&&t.emit("error",new Error("maximum buffer reached"));for(var a=0;a{e.exports=a;var n=r(7187).EventEmitter;function a(){n.call(this)}r(5717)(a,n),a.Readable=r(9481),a.Writable=r(4229),a.Duplex=r(6753),a.Transform=r(4605),a.PassThrough=r(2725),a.finished=r(8610),a.pipeline=r(9946),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(p(),0===n.listenerCount(this,"error"))throw e}function p(){r.removeListener("data",a),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",p),r.removeListener("close",p),e.removeListener("close",p)}return r.on("error",c),e.on("error",c),r.on("end",p),r.on("close",p),e.on("close",p),e.emit("pipe",r),e}},1815:(e,t,r)=>{var n=r(5122);e.exports=function(){var e=[].slice.call(arguments),t=e[0],r=e[e.length-1],a=n(t,r);if(1==e.length)return e[0];if(!e.length)throw new Error("connect called with empty args");function o(){var e=[].slice.call(arguments);e.unshift("error"),a.emit.apply(a,e)}!function e(t){t.length<2||(t[0].pipe(t[1]),e(t.slice(1)))}(e);for(var i=1;i{var n=r(1989),a=r(5676),o=r(7529),i=r(584),s=r(8575),l=t;l.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var a=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||a,l=e.hostname||e.host,c=e.port,p=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?i+"//"+l:"")+(c?":"+c:"")+p,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=a.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=i,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(e,t,r)=>{var n;function a(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=a();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(r.g.fetch)&&i(r.g.ReadableStream),t.writableStream=i(r.g.WritableStream),t.abortController=i(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!a()&&i(a().overrideMimeType),n=null},1989:(e,t,r)=>{var n=r(8764).Buffer,a=r(4155),o=r(8725),i=r(5717),s=r(5676),l=r(8473),c=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var a=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)a=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,a),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(d,l.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===u.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var l=null;if(o.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new r.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(i)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},d.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},d.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(e,t,r)=>{var n=r(4155),a=r(8764).Buffer,o=r(8725),i=r(5717),s=r(8473),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,i){var l=this;if(s.Readable.call(l),l._mode=r,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){n.nextTick((function(){l.emit("close")}))})),"fetch"===r){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){l._destroyed?r():l.push(a.from(e))?t():l._resumeFetch=t}))},close:function(){i(!0),l._destroyed||l.push(null)},abort:function(e){i(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}catch(e){}}var p=t.body.getReader();!function e(){p.read().then((function(t){l._destroyed||(i(t.done),t.done?l.push(null):(l.push(a.from(t.value)),e()))})).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var u=d.match(/;\s*charset=([^;])(;|$)/);u&&(l._charset=u[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=a.alloc(i.length),c=0;ct._pos&&(t.push(a.from(new Uint8Array(p.result.slice(t._pos)))),t._pos=p.result.byteLength)},p.onload=function(){e(!0),t.push(null)},p.readAsArrayBuffer(o)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},2553:(e,t,r)=>{"use strict";var n=r(9509).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=p,this.end=d,t=3;break;default:return this.write=u,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4110:(e,t,r)=>{"use strict";const n=r(7777),a=r(4290),o=r(6841).Z;e.exports=(e,t,r)=>{const i=[];return function e(t,r,s){let l;(r=r||{}).indent=r.indent||"\t",s=s||"",l=void 0===r.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:s,indent:s+r.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const c=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),"\n").replace(new RegExp(l.pad,"g"),s).replace(new RegExp(l.indent,"g"),s+r.indent)};if(-1!==i.indexOf(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||n(t))return String(t);if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";i.push(t);const n="["+l.newLine+t.map(((n,a)=>{const o=t.length-1===a?l.newLine:","+l.newLineOrSpace;let i=e(n,r,s+r.indent);return r.transform&&(i=r.transform(t,a,i)),l.indent+i+o})).join("")+l.pad+"]";return i.pop(),c(n)}if(a(t)){let n=Object.keys(t).concat(o(t));if(r.filter&&(n=n.filter((e=>r.filter(t,e)))),0===n.length)return"{}";i.push(t);const a="{"+l.newLine+n.map(((a,o)=>{const i=n.length-1===o?l.newLine:","+l.newLineOrSpace,c="symbol"==typeof a,p=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(a),d=c||p?a:e(a,r);let u=e(t[a],r,s+r.indent);return r.transform&&(u=r.transform(t,a,u)),l.indent+String(d)+": "+u+i})).join("")+l.pad+"}";return i.pop(),c(a)}return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`}(e,t,r)}},9682:(e,t,r)=>{"use strict";e.exports=r(7325)},6547:(e,t,r)=>{var n=r(4155),a=r(2830);function o(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,i=!1,s=[],l=!1,c=new a;function p(){for(;s.length&&!c.paused;){var e=s.shift();if(null===e)return c.emit("end");c.emit("data",e)}}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&!1===r.autoDestroy),c.write=function(t){return e.call(this,t),!c.paused},c.queue=c.push=function(e){return l||(null===e&&(l=!0),s.push(e),p()),c},c.on("end",(function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick((function(){c.destroy()}))})),c.end=function(e){if(!o)return o=!0,arguments.length&&c.write(e),c.writable=!1,t.call(c),!c.readable&&c.autoDestroy&&c.destroy(),c},c.destroy=function(){if(!i)return i=!0,o=!0,s.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),p(),c.paused||c.emit("drain"),c},c}e.exports=o,o.through=o},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=h-f,A=Math.floor,_=String.fromCharCode;function O(e){throw new RangeError(E[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function T(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function j(e){for(var t=[],r=0,n=e.length;r=55296&&a<=56319&&r>1,e+=A(e/t);e>k*m>>1;n+=h)e=A(e/k);return A(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,a=b,o=v,i=e.lastIndexOf(x);i<0&&(i=0);for(var s=0;s=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l=r&&O("invalid-input");var g=C(e.charCodeAt(l++));(g>=h||g>A((u-n)/p))&&O("overflow"),n+=g*p;var y=d<=o?f:d>=o+m?m:d-o;if(gA(u/w)&&O("overflow"),p*=w}var $=t.length+1;o=I(n-c,$,0==c),A(n/$)>u-a&&O("overflow"),a+=A(n/$),n%=$,t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=j(e)).length,n=b,a=0,o=v,i=!0,s=!1,l=void 0;try{for(var c,p=e[Symbol.iterator]();!(i=(c=p.next()).done);i=!0){var d=c.value;d<128&&t.push(_(d))}}catch(e){s=!0,l=e}finally{try{!i&&p.return&&p.return()}finally{if(s)throw l}}var g=t.length,y=g;for(g&&t.push(x);y=n&&TA((u-a)/C)&&O("overflow"),a+=(w-n)*C,n=w;var D=!0,L=!1,M=void 0;try{for(var N,F=e[Symbol.iterator]();!(D=(N=F.next()).done);D=!0){var U=N.value;if(Uu&&O("overflow"),U==n){for(var q=a,B=h;;B+=h){var H=B<=o?f:B>=o+m?m:B-o;if(q>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r=194&&a<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&a)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(a>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function H(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,a)),e}function z(e){return e.replace(/^0*(.*)/,"$1")||"0"}function W(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=p(r,2)[1];return n?n.split(".").map(z).join("."):e}function Z(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=p(r,3),a=n[1],o=n[2];if(a){for(var i=a.toLowerCase().split("::").reverse(),s=p(i,2),l=s[0],c=s[1],d=c?c.split(":").map(z):[],u=l.split(":").map(z),h=t.IPV4ADDRESS.test(u[u.length-1]),f=h?7:8,m=u.length-f,g=Array(f),y=0;y1){var x=g.slice(0,v.index),w=g.slice(v.index+v.length);b=x.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(V);if(a){K?(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5])):(r.scheme=a[1]||void 0,r.userinfo=-1!==e.indexOf("@")?a[3]:void 0,r.host=-1!==e.indexOf("//")?a[4]:void 0,r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=-1!==e.indexOf("?")?a[7]:void 0,r.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),r.host&&(r.host=Z(W(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)H(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=F.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}H(r,l)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(Z(W(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Q=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Q))e=e.replace(Q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],a=U[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?F.toUnicode(e.host):F.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}H(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||a&&a.absolutePath||(i=te(i)),void 0===o&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=G(re(e,r),r),t=G(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ae(e,t,r){var n=i({scheme:"null"},r);return re(ne(G(e,n),G(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(G(e,t),t):"object"===n(e)&&(e=G(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(G(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(G(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,q)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var ue={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=p(r,2),a=n[0],o=n[1];e.path=a&&"/"!==a?a:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize},fe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),$e=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ee=new RegExp(t("[^]",me,xe),"g"),ke=Ee;function Ae(e){var t=B(e);return t.match(we)?t:e}var _e={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var a=!1,o={},i=r.query.split("&"),s=0,l=i.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,w=Math.floor,$=String.fromCharCode;function S(e){throw RangeError(b[e])}function E(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+E((e=e.replace(v,".")).split("."),t).join(".")}function A(e){for(var t,r,n=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=$((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=$(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?w(e/u):e>>1,e+=w(e/t);e>x*p>>1;n+=l)e=w(e/x);return w(n+(x+1)*e/(e+d))}function T(e){var t,r,n,a,o,i,d,u,g,y,v,b=[],x=e.length,$=0,E=f,k=h;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n=128&&S("not-basic"),b.push(e.charCodeAt(n));for(a=r>0?r+1:0;a=x&&S("invalid-input"),((u=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||u>w((s-$)/i))&&S("overflow"),$+=u*i,!(u<(g=d<=k?c:d>=k+p?p:d-k));d+=l)i>w(s/(y=l-g))&&S("overflow"),i*=y;k=P($-o,t=b.length+1,0==o),w($/t)>s-E&&S("overflow"),E+=w($/t),$%=t,b.splice($++,0,E)}return _(b)}function j(e){var t,r,n,a,o,i,d,u,g,y,v,b,x,E,k,_=[];for(b=(e=A(e)).length,t=f,r=0,o=h,i=0;i=t&&vw((s-r)/(x=n+1))&&S("overflow"),r+=(d-t)*x,t=d,i=0;is&&S("overflow"),v==t){for(u=r,g=l;!(u<(y=g<=o?c:g>=o+p?p:g-o));g+=l)k=u-y,E=l-y,_.push($(O(y+k%E,0))),u=w(k/E);_.push($(O(u,0))),o=P(r,x,n==a),r=0,++n}++r,++t}return _.join("")}i={version:"1.3.2",ucs2:{decode:A,encode:_},decode:T,encode:j,toASCII:function(e){return k(e,(function(e){return y.test(e)?"xn--"+j(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),a=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),d=["%","/","?",";","#"].concat(p),u=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function b(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?R+="x":R+=C[I];if(!R.match(h)){var L=T.slice(0,_),M=T.slice(_+1),N=C.match(f);N&&(L.push(N[1]),M.unshift(N[2])),M.length&&(b="/"+M.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[$])for(_=0,j=p.length;_0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,_=0,O=S.length;O>=0;O--)"."===(k=S[O])?S.splice(O,1):".."===k?(S.splice(O,1),_++):_&&(S.splice(O,1),_--);if(!w&&!$)for(;_--;_)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var P,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(r.hostname=r.host=T?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function a(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(a("noDeprecation"))return e;var r=!1;return function(){if(!r){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),a=r(8662),o=r(6430),i=r(5692);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,p=s(Object.prototype.toString),d=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function b(e){return"[object WeakMap]"===p(e)}function x(e){return"[object WeakSet]"===p(e)}function w(e){return"[object ArrayBuffer]"===p(e)}function $(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===p(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=a,t.isTypedArray=i,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=$,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function _(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function O(e){return g(e,d)}function P(e){return g(e,u)}function T(e){return g(e,h)}function j(e){return l&&g(e,f)}function C(e){return c&&g(e,m)}t.isSharedArrayBuffer=_,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=O,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=j,t.isSymbolObject=C,t.isBoxedPrimitive=function(e){return O(e)||P(e)||T(e)||j(e)||C(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&($(e)||_(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),a=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var r=p.styles[t];return r?"["+p.colors[r][0]+"m"+e+"["+p.colors[r][1]+"m":e}function u(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return x(a)||(a=h(e,a,n)),a}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var i=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),k(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return f(r);if(0===i.length){if(A(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,p="",d=!1,u=["{","}"];(g(r)&&(d=!0,u=["[","]"]),A(r))&&(p=" [Function"+(r.name?": "+r.name:"")+"]");return $(r)&&(p=" "+RegExp.prototype.toString.call(r)),E(r)&&(p=" "+Date.prototype.toUTCString.call(r)),k(r)&&(p=" "+f(r)),0!==i.length||d&&0!=r.length?n<0?$(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=d?function(e,t,r,n,a){for(var o=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,p,u)):u[0]+p+u[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,o){var i,s,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(n,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(i)){if(o&&a.match(/^\d+$/))return s;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function x(e){return"string"==typeof e}function w(e){return void 0===e}function $(e){return S(e)&&"[object RegExp]"===_(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===_(e)}function k(e){return S(e)&&("[object Error]"===_(e)||e instanceof Error)}function A(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);a.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=$,t.types.isRegExp=$,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;a.log("%s - %s",(e=new Date,r=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),a=[],o=0;o{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=Ke(r(8469)),o=Ke(r(7536)),i=Ke(r(1359)),s=Ke(r(557)),l=Ke(r(2315)),c=Ke(r(9466)),p=Ke(r(661)),d=Ke(r(3868)),u=Ke(r(2492)),h=Ke(r(8999)),f=Ke(r(1028)),m=Ke(r(7795)),g=Ke(r(221)),y=Ke(r(2549)),v=Ke(r(3494)),b=Ke(r(9493)),x=Ke(r(7380)),w=Ve(r(9234)),$=Ve(r(4583)),S=Ke(r(4986)),E=Ke(r(1513)),k=Ke(r(4595)),A=Ke(r(3928)),_=Ke(r(7245)),O=Ke(r(5566)),P=Ke(r(4094)),T=Ke(r(7146)),j=Ke(r(2941)),C=Ke(r(9019)),R=Ke(r(3590)),I=Ke(r(6826)),D=Ke(r(2828)),L=Ke(r(937)),M=Ve(r(9146)),N=Ke(r(5218)),F=Ke(r(7117)),U=Ke(r(6090)),q=Ke(r(8335)),B=Ke(r(6298)),H=Ke(r(6454)),z=Ke(r(6648)),W=Ke(r(4339)),Z=Ve(r(8177)),V=Ke(r(2438)),K=Ke(r(368)),G=Ke(r(8874)),Y=Ke(r(4979)),J=Ke(r(1008)),X=Ke(r(4069)),Q=Ke(r(4958)),ee=Ke(r(3235)),te=Ke(r(7278)),re=Ke(r(9131)),ne=Ke(r(3315)),ae=Ke(r(1464)),oe=Ke(r(7228)),ie=Ke(r(1592)),se=Ke(r(682)),le=Ke(r(9396)),ce=Ke(r(5807)),pe=Ke(r(7148)),de=Ke(r(7612)),ue=Ke(r(9887)),he=Ke(r(3058)),fe=Ve(r(8355)),me=Ke(r(2129)),ge=Ke(r(94)),ye=Ke(r(8021)),ve=Ke(r(9211)),be=Ke(r(5061)),xe=Ke(r(4611)),we=Ke(r(1727)),$e=Ke(r(6776)),Se=Ke(r(9963)),Ee=Ke(r(2782)),ke=Ke(r(5008)),Ae=Ke(r(2689)),_e=Ke(r(8983)),Oe=Ke(r(2776)),Pe=Ke(r(4554)),Te=Ke(r(478)),je=Ve(r(8140)),Ce=Ke(r(4959)),Re=Ke(r(9778)),Ie=Ke(r(4790)),De=Ke(r(5152)),Le=Ke(r(4816)),Me=Ke(r(8035)),Ne=Ke(r(4714)),Fe=Ke(r(4928)),Ue=Ke(r(8346)),qe=Ke(r(2900)),Be=Ke(r(8220)),He=Ke(r(2786)),ze=Ke(r(7633)),We=Ke(r(5977));function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ve(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function Ke(e){return e&&e.__esModule?e:{default:e}}var Ge={version:"13.9.0",toDate:a.default,toFloat:o.default,toInt:i.default,toBoolean:s.default,equals:l.default,contains:c.default,matches:p.default,isEmail:d.default,isURL:u.default,isMACAddress:h.default,isIP:f.default,isIPRange:m.default,isFQDN:g.default,isBoolean:b.default,isIBAN:Z.default,isBIC:V.default,isAlpha:w.default,isAlphaLocales:w.locales,isAlphanumeric:$.default,isAlphanumericLocales:$.locales,isNumeric:S.default,isPassportNumber:E.default,isPort:k.default,isLowercase:A.default,isUppercase:_.default,isAscii:P.default,isFullWidth:T.default,isHalfWidth:j.default,isVariableWidth:C.default,isMultibyte:R.default,isSemVer:I.default,isSurrogatePair:D.default,isInt:L.default,isIMEI:O.default,isFloat:M.default,isFloatLocales:M.locales,isDecimal:N.default,isHexadecimal:F.default,isOctal:U.default,isDivisibleBy:q.default,isHexColor:B.default,isRgbColor:H.default,isHSL:z.default,isISRC:W.default,isMD5:K.default,isHash:G.default,isJWT:Y.default,isJSON:J.default,isEmpty:X.default,isLength:Q.default,isLocale:x.default,isByteLength:ee.default,isUUID:te.default,isMongoId:re.default,isAfter:ne.default,isBefore:ae.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:se.default,isIdentityCard:le.default,isEAN:ce.default,isISIN:pe.default,isISBN:de.default,isISSN:ue.default,isMobilePhone:fe.default,isMobilePhoneLocales:fe.locales,isPostalCode:je.default,isPostalCodeLocales:je.locales,isEthereumAddress:me.default,isCurrency:ge.default,isBtcAddress:ye.default,isISO6391:ve.default,isISO8601:be.default,isRFC3339:xe.default,isISO31661Alpha2:we.default,isISO31661Alpha3:$e.default,isISO4217:Se.default,isBase32:Ee.default,isBase58:ke.default,isBase64:Ae.default,isDataURI:_e.default,isMagnetURI:Oe.default,isMimeType:Pe.default,isLatLong:Te.default,ltrim:Ce.default,rtrim:Re.default,trim:Ie.default,escape:De.default,unescape:Le.default,stripLow:Me.default,whitelist:Ne.default,blacklist:Fe.default,isWhitelisted:Ue.default,normalizeEmail:qe.default,toString,isSlug:Be.default,isStrongPassword:ze.default,isTaxID:he.default,isDate:y.default,isTime:v.default,isLicensePlate:He.default,isVAT:We.default,ibanLocales:Z.locales};t.default=Ge,e.exports=t.default,e.exports.default=t.default},79:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.bengaliLocales=t.farsiLocales=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var r={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};t.alpha=r;var n={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};t.alphanumeric=n;var a={"en-US":".",ar:"٫"};t.decimal=a;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=o;for(var i,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,n.default)(e),(r=(0,o.default)(r,s)).ignoreCase)return e.toLowerCase().split((0,a.default)(t).toLowerCase()).length>r.minOccurrences;return e.split((0,a.default)(t)).length>r.minOccurrences};var n=i(r(5571)),a=i(r(1913)),o=i(r(4808));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},2315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),n=(0,a.default)(r),o=(0,a.default)(e);return!!(o&&n&&o>n)};var n,a=(n=r(8469))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alpha)return o.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alpha);t.locales=i},4583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alphanumeric)return o.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alphanumeric);t.locales=i},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},2438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.slice(4,6).toUpperCase();if(!o.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(1727);var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},2782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,l)).crockford)return s.test(e);if(e.length%8==0&&i.test(e))return!0;return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,s=/^[A-HJKMNP-TV-Z0-9]+$/,l={crockford:!1};e.exports=t.default,e.exports.default=t.default},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),o.test(e))return!0;return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},2689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,a.default)(t,l);var r=e.length;if(t.urlSafe)return s.test(e);if(r%4!=0||i.test(e))return!1;var o=e.indexOf("=");return-1===o||o===r-1||o===r-2&&"="===e[r-1]};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,l={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,a.default)(t),o=(0,a.default)(e);return!!(o&&r&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,a.default)(e),t.loose)return s.includes(e.toLowerCase());return i.includes(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={loose:!1},i=["true","false","1","0"],s=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},8021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},3235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===n||i<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var r=t.provider,o=e.replace(/[- ]+/g,"");if(r&&r.toLowerCase()in i){if(!i[r.toLowerCase()].test(o))return!1}else{if(r&&!(r.toLowerCase()in i))throw new Error("".concat(r," is not a valid credit card provider."));if(!s.test(o))return!1}return(0,a.default)(e)};var n=o(r(5571)),a=o(r(1592));function o(e){return e&&e.__esModule?e:{default:e}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},s=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",a="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",a].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t=(0,n.default)(t,i)).test(e)};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},8983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.split(",");if(t.length<2)return!1;var r=t.shift().trim().split(";"),n=r.shift();if("data:"!==n.slice(0,5))return!1;var l=n.slice(5);if(""!==l&&!o.test(l))return!1;for(var c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,a.default)({format:t},s):(0,a.default)(t,s);if("string"==typeof e&&(g=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g))){var r,n=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),i=t.strictMode?n:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),l=function(e,t){for(var r=[],n=Math.min(e.length,t.length),a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(l);try{for(p.s();!(r=p.n()).done;){var d=(f=r.value,m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(f,m)||o(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],h=d[1];if(u.length!==h.length)return!1;c[h.charAt(0)]=u}}catch(e){p.e(e)}finally{p.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var f,m;var g;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,l)).locale in i.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(4808)),a=s(r(5571)),o=s(r(8343)),i=r(79);function s(e){return e&&e.__esModule?e:{default:e}}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},8335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,a.default)(e)%parseInt(t,10)==0};var n=o(r(5571)),a=o(r(7536));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},5807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=Number(e.slice(-1));return s.test(e)&&t===(r=e,n=10-r.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===o||e===i?t%2==0?3:1:t%2==0?1:3}(r.length,t)})).reduce((function(e,t){return e+t}),0)%10,n<10?n:0);var r,n};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=8,i=14,s=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(p);if(r){var l=r[1];if(e=e.replace(l,"").replace(/(^<|>$)/g,""),l.endsWith(" ")&&(l=l.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(l))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var x=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var w=(x=x.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var $=w.split("."),S=0;S<$.length;S++)if(!u.test($[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(x,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.slice(1,-1);if(0===E.length||!(0,s.default)(E))return!1}}if('"'===x[0])return x=x.slice(1,x.length-1),t.allow_utf8_local_part?m.test(x):h.test(x);for(var k=t.allow_utf8_local_part?f:d,A=x.split("."),_=0;_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,a.default)(t,i)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,a.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.decimal);t.locales=i},7146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.fullWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},6648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return o.test(t);return i.test(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},2941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.halfWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},8874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-fA-F0-9]{".concat(o[t],"}$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},8177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in o&&o[r].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var i=Object.keys(o);t.locales=i},5566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o;(t=t||{}).allow_hyphens&&(r=i);if(!r.test(e))return!1;e=e.replace(/-/g,"");for(var n=0,s=2,l=0;l<14;l++){var c=e.substring(14-l-1,14-l),p=parseInt(c,10)*s;n+=p>=10?p%10+1:p,1===s?s+=1:s-=1}if((10-n%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},1028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,a.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return s.test(t);if("6"===r)return c.test(t);return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(o,"[.]){3}").concat(o),s=new RegExp("^".concat(i,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(i,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(i,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(i,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(i,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(i,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(i,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(i,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},7795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var r=e.split("/");if(2!==r.length)return!1;if(!i.test(r[1]))return!1;if(r[1].length>1&&r[1].startsWith("0"))return!1;if(!(0,a.default)(r[0],t))return!1;var o=null;switch(String(t)){case"4":o=s;break;case"6":o=l;break;default:o=(0,a.default)(r[0],"6")?l:s}return r[1]<=o&&r[1]>=0};var n=o(r(5571)),a=o(r(1028));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,s=32,l=128;e.exports=t.default,e.exports.default=t.default},7612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t);var n=String((null==r?void 0:r.version)||r);if(!(null!=r&&r.version||r))return e(t,{version:10})||e(t,{version:13});var l=t.replace(/[\s-]+/g,""),c=0;if("10"===n){if(!o.test(l))return!1;for(var p=0;p{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=!0,r=0,n=e.length-2;n>=0;n--)if(e[n]>="A"&&e[n]<="Z")for(var i=e[n].charCodeAt(0)-55,s=0,l=[i%10,Math.trunc(i/10)];s=5?1+2*(c-5):2*c:c,t=!t}else{var p=e[n].charCodeAt(0)-"0".charCodeAt(0);r+=t?p>=5?1+2*(p-5):2*p:p,t=!t}var d=10*Math.trunc((r+9)/10)-r;return+e[e.length-1]===d};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},1727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CountryCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var i=o;t.CountryCodes=i},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},9963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CurrencyCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var i=o;t.CurrencyCodes=i},9211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},5061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=t.strictSeparator?i.test(e):o.test(e);return r&&t.strict?s(e):r};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var a=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=a[1],i=a[2],s=a[3],l=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,p=new Date("".concat(o,"-").concat(l||"01","-").concat(c||"01"));return!i||!s||p.getUTCFullYear()===o&&p.getUTCMonth()+1===i&&p.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default},4339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},9887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),i=0,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in i)return i[t](e);if("any"===t){for(var r in i){if(i.hasOwnProperty(r))if((0,i[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=o(r(5571)),a=o(r(937));function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,a.default)(e,{allow_leading_zeroes:!0})){var r=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0)%10,o=Number(e.charAt(e.length-1));if(0===r&&0===o||o===10-r)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var a=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][a%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var a=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){a=t[a][r[n%8][e]]})),0===a},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,a=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&a===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,a=0,o=0;o9?r-9:r;return a%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],a=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),a=new Date(t,r-1,n);return!(a>new Date)&&(a.getFullYear()===t&&a.getMonth()===r-1&&a.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return a[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=i(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var a=t[r];return a%10*9+Math.floor(a/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default},7228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(r in t)({}).hasOwnProperty.call(t,r)&&(o[r]=(0,a.default)(t[r]));return o.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(5571)),a=o(r(1913));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:i,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,l=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&l&&c};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},1008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,a.default)(t,s);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var o=JSON.parse(e);return r.includes(o)||!!o&&"object"===i(o)}catch(e){}return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},4979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),r=t.length;if(r>3||r<2)return!1;return t.reduce((function(e,t){return e&&(0,a.default)(t,{urlSafe:!0})}),!0)};var n=o(r(5571)),a=o(r(2689));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,a.default)(t,p),!e.includes(","))return!1;var r=e.split(",");if(r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("("))return!1;if(t.checkDMS)return l.test(r[0])&&c.test(r[1]);return i.test(r[0])&&s.test(r[1])};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},4958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1]||0,n=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-i.length-s.length;return l>=r&&(void 0===n||l<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},2786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o){if((0,o[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},7380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default},3928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);for(var t,r,n,o=e.replace(/[- ]+/g,""),i=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),r=parseInt(t,10),i+=n&&(r*=2)>=10?r%10+1:r,n=!n;return!(i%10!=0||!o)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t),null!=r&&r.eui&&(r.eui=String(r.eui));if(null!=r&&r.no_colons||null!=r&&r.no_separators)return"48"===r.eui?i.test(t):"64"===r.eui?c.test(t):i.test(t)||c.test(t);if("48"===(null==r?void 0:r.eui))return o.test(t)||s.test(t);if("64"===(null==r?void 0:r.eui))return l.test(t)||p.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,c=/^([0-9a-fA-F]){16}$/,p=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),0!==e.indexOf("magnet:?"))return!1;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},4554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)||s.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},8355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,a.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(o.hasOwnProperty(t)&&o[t].test(e))return!0;return!1}));if(t in o)return o[t].test(e);if(!t||"any"===t){for(var n in o){if(o.hasOwnProperty(n))if(o[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};o["en-CA"]=o["en-US"],o["fr-CA"]=o["en-CA"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],o["zh-MO"]=o["en-MO"],o["ga-IE"]=o["en-IE"],o["fr-CH"]=o["de-CH"],o["it-CH"]=o["fr-CH"];var i=Object.keys(o);t.locales=i},9131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,a.default)(e)&&24===e.length};var n=o(r(5571)),a=o(r(7117));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},3590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?o.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},6090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},1513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in o&&o[t].test(r)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},4595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var n,a=(n=r(937))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^\d{3}$/,i=/^\d{4}$/,s=/^\d{5}$/,l=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:i,DO:s,DZ:s,EE:s,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:s,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:o,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:s,MG:o,MX:s,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:s,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:s,TN:i,TW:/^\d{3}(\d{2})?$/,UA:s,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:s},p=Object.keys(c);t.locales=p},4611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),u.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,s=new RegExp("[-+]".concat(o.source,":").concat(i.source)),l=new RegExp("([zZ]|".concat(s.source,")")),c=new RegExp("".concat(o.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),p=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(c.source).concat(l.source)),u=new RegExp("^".concat(p.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},6454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,a.default)(e),!t)return o.test(e)||i.test(e);return o.test(e)||i.test(e)||s.test(e)||l.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,l=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},6826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),o.test(e)};var n=a(r(5571));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,a(r(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},7633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,a.default)(e);var r=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:s.test(e)?r.lowercaseCount+=t[e]:l.test(e)?r.numberCount+=t[e]:c.test(e)&&(r.symbolCount+=t[e])})),r}(e);if((t=(0,n.default)(t||{},p)).returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(r,t);return r.length>=t.minLength&&r.lowercaseCount>=t.minLowercase&&r.uppercaseCount>=t.minUppercase&&r.numberCount>=t.minNumbers&&r.symbolCount>=t.minSymbols};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,s=/^[a-z]$/,l=/^[0-9]$/,c=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},2828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},3058:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,a.default)(e);var r=e.slice(0);if(t in h)return t in g&&(r=r.replace(g[t],"")),!!h[t].test(r)&&(!(t in f)||f[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var a=l(r(5571)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672)),i=l(r(2549));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var h={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var f={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,l=0;l50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var a=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===a))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,l=0;l58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=4,s=0;s<9;s++)a+=n[s]*o,1===(o-=1)&&(o=7);return 1!==(a%=11)&&(0===a?0===n[9]:n[9]===11-a)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,c(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=1,s=0;s<10;s++)a+=n[s]*o,10===(o+=1)&&(o=1);if(a%11==10){a=0,o=3;for(var l=0;l<10;l++)a+=n[l]*o,10===(o+=1)&&(o=1);if(a%11==10)return 0===n[10]}return a%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!u(t.slice(0,3)))return!1;if(!u(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,a=[6,7,9,10,12,13,14];n40&&(l-=40),l<10&&(l="0".concat(l));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(l);if(!(0,i.default)(c,"YY/MM/DD"))return!1;for(var p=0,d=1;d4&&(g+=2)}p+=g}return String.fromCharCode(65+p%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var a=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n80?(a="18".concat(a),o-=80):o>60?(a="22".concat(a),o-=60):o>40?(a="21".concat(a),o-=40):o>20?(a="20".concat(a),o-=20):a="19".concat(a),o<10&&(o="0".concat(o));var s="".concat(a,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,i.default)(s,"YYYY/MM/DD"))return!1;for(var l=0,c=1,p=0;p10?c=1:5===c&&(c+=2);return(l=10-l%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var a=1;a<=10;a++)t+=parseInt(e.substring(a-1,a),10)*(12-a);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,i=e.substring(0,o),s=e.substring(o),l=0,c=o-7,p=o;p>=1;p--)l+=i.charAt(o-p)*c,(c-=1)<2&&(c=9);var d=l%11<2?0:11-l%11;if(d!==parseInt(s.charAt(0),10))return!1;o+=1,i=e.substring(0,o),l=0,c=o-7;for(var u=o;u>=1;u--)l+=i.charAt(o-u)*c,(c-=1)<2&&(c=9);return(d=l%11<2?0:11-l%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),l=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(l).concat(r),10)>s?"".concat(l-1).concat(r):"".concat(l).concat(r);else if(r="".concat(l-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.luhnCheck(e.replace(/\W/,""))}};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var m=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":m,"de-DE":/[\/\\]/g,"fr-BE":m};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},3494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,a.default)(t,o),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,i.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,s,u,h,f,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(r=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}($=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}($,S)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}($,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var $,S;h=g.join("@"),m=null,y=null;var E=h.match(p);E?(u="",y=E[1],m=E[2]||null):(u=(g=h.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(f=parseInt(m,10),!/^[0-9]+$/.test(m)||f<=0||f>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(u,t.host_whitelist);if(""===u&&!t.require_host)return!0;if(!((0,o.default)(u)||(0,a.default)(u,t)||y&&(0,o.default)(y,6)))return!1;if(u=u||y,t.host_blacklist&&d(u,t.host_blacklist))return!1;return!0};var n=s(r(5571)),a=s(r(221)),o=s(r(1028)),i=s(r(4808));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o[[void 0,null].includes(t)?"all":t];return!!r&&r.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5977:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(0,o.default)(t),t in l)return l[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var a,o=(a=r(5571))&&a.__esModule?a:{default:a},i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-i.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=l},9019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&i.halfWidth.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(7146),i=r(2941);e.exports=t.default,e.exports.default=t.default},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},2900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var r=e.split("@"),n=r.pop(),d=[r.join("@"),n];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,p)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(i.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(l.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var u=d[0].split("-");d[0]=u.length>1?u.slice(0,-1).join("-"):u[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else c.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],l=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},9778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var n=e.length-1;for(;/\s/.test(e.charAt(n));)n-=1;return e.slice(0,n+1)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(e,r)};var n=o(r(5571)),a=o(r(4928));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},7536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e)?parseFloat(e):NaN};var n,a=(n=r(9146))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,a.default)(e,t),t)};var n=o(r(9778)),a=o(r(4959));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},4816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,r=0;r=0;n--){if(r){var a=2*parseInt(e[n],10);t+=a>9?a.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):a}else t+=parseInt(e[n],10);r=!r}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},8343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},4808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default},1913:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},4714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},6430:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=r(7296),s=o("Object.prototype.toString"),l=r(6410)(),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("String.prototype.slice"),u={},h=Object.getPrototypeOf;l&&i&&h&&n(p,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=i(r,Symbol.toStringTag);if(!n){var a=h(r);n=i(a,Symbol.toStringTag)}u[e]=n.get}}}));var f=r(5692);e.exports=function(e){return!!f(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(u,(function(r,n){if(!t)try{var a=r.call(e);a===n&&(t=a)}catch(e){}})),t}(e):d(s(e),8,-1))}},3131:(e,t,r)=>{"use strict";var n=r(6464),a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},i=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!a(e)&&!o(e)};function s(e){return a(e)?"ClosingTag":i(e)?"OpeningTag":o(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,a=t.textNodesOnSameLine,o=0,i=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:s(e)}}))).map((function(e,t,s){var l=e.value,c=e.type;"ClosingTag"===c&&o--;var p=n(r,o),d=p+l;if("OpeningTag"===c&&o++,a){var u=s[t-1],h=s[t-2];"ClosingTag"===c&&"Text"===u.type&&"OpeningTag"===h.type&&(d=""+p+h.value+u.value+l,i.push(t-2,t-1))}return d}));return i.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}},7529:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";e.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ENUM_CASE_MISMATCH:"Enum does not match case for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"}},7797:(e,t,r)=>{var n=r(8966),a={date:function(e){if("string"!=typeof e)return!0;var t=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(e);return null!==t&&!(t[2]<"01"||t[2]>"12"||t[3]<"01"||t[3]>"31")},"date-time":function(e){if("string"!=typeof e)return!0;var t=e.toLowerCase().split("t");if(!a.date(t[0]))return!1;var r=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(t[1]);return null!==r&&!(r[1]>"23"||r[2]>"59"||r[3]>"59")},email:function(e){return"string"!=typeof e||n.isEmail(e,{require_tld:!0})},hostname:function(e){if("string"!=typeof e)return!0;var t=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(e);if(t){if(e.length>255)return!1;for(var r=e.split("."),n=0;n63)return!1}return t},"host-name":function(e){return a.hostname.call(this,e)},ipv4:function(e){return"string"!=typeof e||n.isIP(e,4)},ipv6:function(e){return"string"!=typeof e||n.isIP(e,6)},regex:function(e){try{return RegExp(e),!0}catch(e){return!1}},uri:function(e){return this.options.strictUris?a["strict-uri"].apply(this,arguments):"string"!=typeof e||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(e)},"strict-uri":function(e){return"string"!=typeof e||n.isURL(e)}};e.exports=a},4706:(e,t,r)=>{"use strict";var n=r(7797),a=r(9454),o=r(9750),i=function(e,t){return e&&Array.isArray(e.includeErrors)&&e.includeErrors.length>0&&!t.some((function(t){return e.includeErrors.includes(t)}))},s={multipleOf:function(e,t,r){if(!i(this.validateOptions,["MULTIPLE_OF"])&&"number"==typeof r){var n=String(t.multipleOf),a=Math.pow(10,n.length-n.indexOf(".")-1);"integer"!==o.whatIs(r*a/(t.multipleOf*a))&&e.addError("MULTIPLE_OF",[r,t.multipleOf],null,t)}},maximum:function(e,t,r){i(this.validateOptions,["MAXIMUM","MAXIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMaximum?r>t.maximum&&e.addError("MAXIMUM",[r,t.maximum],null,t):r>=t.maximum&&e.addError("MAXIMUM_EXCLUSIVE",[r,t.maximum],null,t))},exclusiveMaximum:function(){},minimum:function(e,t,r){i(this.validateOptions,["MINIMUM","MINIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMinimum?rt.maxLength&&e.addError("MAX_LENGTH",[r.length,t.maxLength],null,t)},minLength:function(e,t,r){i(this.validateOptions,["MIN_LENGTH"])||"string"==typeof r&&o.ucs2decode(r).lengtht.items.length&&e.addError("ARRAY_ADDITIONAL_ITEMS",null,null,t)},items:function(){},maxItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_LONG"])||Array.isArray(r)&&r.length>t.maxItems&&e.addError("ARRAY_LENGTH_LONG",[r.length,t.maxItems],null,t)},minItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_SHORT"])||Array.isArray(r)&&r.lengtht.maxProperties&&e.addError("OBJECT_PROPERTIES_MAXIMUM",[n,t.maxProperties],null,t)}},minProperties:function(e,t,r){if(!i(this.validateOptions,["OBJECT_PROPERTIES_MINIMUM"])&&"object"===o.whatIs(r)){var n=Object.keys(r).length;n0){var h=this.options.assumeAdditional.length;if(h)for(;h--;){var f=s.indexOf(this.options.assumeAdditional[h]);-1!==f&&s.splice(f,1)}var m=s.length;if(m)for(;m--;)e.addError("OBJECT_ADDITIONAL_PROPERTIES",[s[m]],null,t)}}}},dependencies:function(e,r,n){if(!i(this.validateOptions,["OBJECT_DEPENDENCY_KEY"])&&"object"===o.whatIs(n))for(var a=Object.keys(r.dependencies),s=a.length;s--;){var l=a[s];if(n[l]){var c=r.dependencies[l];if("object"===o.whatIs(c))t.validate.call(this,e,c,n);else for(var p=c.length;p--;){var d=c[p];void 0===n[d]&&e.addError("OBJECT_DEPENDENCY_KEY",[d,l],null,r)}}}},enum:function(e,t,r){if(!i(this.validateOptions,["ENUM_CASE_MISMATCH","ENUM_MISMATCH"])){for(var n=!1,a=!1,s=t.enum.length;s--;){if(o.areEqual(r,t.enum[s])){n=!0;break}o.areEqual(r,t.enum[s]),a=!0}if(!1===n){var l=a&&this.options.enumCaseInsensitiveComparison?"ENUM_CASE_MISMATCH":"ENUM_MISMATCH";e.addError(l,[r],null,t)}}},type:function(e,t,r){if(!i(this.validateOptions,["INVALID_TYPE"])){var n=o.whatIs(r);"string"==typeof t.type?n===t.type||"integer"===n&&"number"===t.type||e.addError("INVALID_TYPE",[t.type,n],null,t):-1!==t.type.indexOf(n)||"integer"===n&&-1!==t.type.indexOf("number")||e.addError("INVALID_TYPE",[t.type,n],null,t)}},allOf:function(e,r,n){for(var a=r.allOf.length;a--;){var o=t.validate.call(this,e,r.allOf[a],n);if(this.options.breakOnFirstError&&!1===o)break}},anyOf:function(e,r,n){for(var o=[],i=!1,s=r.anyOf.length;s--&&!1===i;){var l=new a(e);o.push(l),i=t.validate.call(this,l,r.anyOf[s],n)}!1===i&&e.addError("ANY_OF_MISSING",void 0,o,r)},oneOf:function(e,r,n){for(var o=0,i=[],s=r.oneOf.length;s--;){var l=new a(e,{maxErrors:1});i.push(l),!0===t.validate.call(this,l,r.oneOf[s],n)&&o++}0===o?e.addError("ONE_OF_MISSING",void 0,i,r):o>1&&e.addError("ONE_OF_MULTIPLE",null,null,r)},not:function(e,r,n){var o=new a(e);!0===t.validate.call(this,o,r.not,n)&&e.addError("NOT_PASSED",null,null,r)},definitions:function(){},format:function(e,t,r){var a=n[t.format];if("function"==typeof a){if(i(this.validateOptions,["INVALID_FORMAT"]))return;if(2===a.length){var s=o.clone(e.path);e.addAsyncTask(a,[r],(function(n){if(!0!==n){var a=e.path;e.path=s,e.addError("INVALID_FORMAT",[t.format,r],null,t),e.path=a}}))}else!0!==a.call(this,r)&&e.addError("INVALID_FORMAT",[t.format,r],null,t)}else!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format],null,t)}},l=function(e,r,n){var a=n.length;if(Array.isArray(r.items))for(;a--;)a0;){if(!t.__$refResolved){e.addError("REF_UNRESOLVED",[t.$ref],null,t);break}if(t.__$refResolved===t)break;t=t.__$refResolved,a=Object.keys(t),p--}if(0===p)throw new Error("Circular dependency by $ref references!")}var d=o.whatIs(r);if(t.type&&(a.splice(a.indexOf("type"),1),s.type.call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError))return!1;for(var u=a.length;u--&&!(s[a[u]]&&(s[a[u]].call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError)););return 0!==e.errors.length&&!1!==this.options.breakOnFirstError||("array"===d?l.call(this,e,t,r):"object"===d&&c.call(this,e,t,r)),"function"==typeof this.options.customValidator&&this.options.customValidator.call(this,e,t,r),i&&(e.rootSchema=void 0),0===e.errors.length}},2630:()=>{"function"!=typeof Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)})},9454:(e,t,r)=>{"use strict";var n=r(4155),a=r(9208),o=r(3970),i=r(9750);function s(e,t){this.parentReport=e instanceof s?e:void 0,this.options=e instanceof s?e.options:e||{},this.reportOptions=t||{},this.errors=[],this.path=[],this.asyncTasks=[],this.rootSchema=void 0,this.commonErrorMessage=void 0,this.json=void 0}s.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},s.prototype.addAsyncTask=function(e,t,r){this.asyncTasks.push([e,t,r])},s.prototype.getAncestor=function(e){if(this.parentReport)return this.parentReport.getSchemaId()===e?this.parentReport:this.parentReport.getAncestor(e)},s.prototype.processAsyncTasks=function(e,t){var r=e||2e3,a=this.asyncTasks.length,o=a,i=!1,s=this;function l(){n.nextTick((function(){var e=0===s.errors.length,r=e?null:s.errors;t(r,e)}))}function c(e){return function(t){i||(e(t),0==--a&&l())}}if(0===a||this.errors.length>0&&this.options.breakOnFirstError)l();else{for(;o--;){var p=this.asyncTasks[o];p[0].apply(null,p[1].concat(c(p[2])))}setTimeout((function(){a>0&&(i=!0,s.addError("ASYNC_TIMEOUT",[a,r]),t(s.errors,!1))}),r)}},s.prototype.getPath=function(e){var t=[];return this.parentReport&&(t=t.concat(this.parentReport.path)),t=t.concat(this.path),!0!==e&&(t="#/"+t.map((function(e){return e=e.toString(),i.isAbsoluteUri(e)?"uri("+e+")":e.replace(/\~/g,"~0").replace(/\//g,"~1")})).join("/")),t},s.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var e=[];for(this.parentReport&&(e=e.concat(this.parentReport.path)),e=e.concat(this.path);e.length>0;){var t=a(this.rootSchema,e);if(t&&t.id)return t.id;e.pop()}return this.rootSchema.id},s.prototype.hasError=function(e,t){for(var r=this.errors.length;r--;)if(this.errors[r].code===e){for(var n=!0,a=this.errors[r].params.length;a--;)this.errors[r].params[a]!==t[a]&&(n=!1);if(n)return n}return!1},s.prototype.addError=function(e,t,r,n){if(!e)throw new Error("No errorCode passed into addError()");this.addCustomError(e,o[e],t,r,n)},s.prototype.getJson=function(){for(var e=this;void 0===e.json;)if(void 0===(e=e.parentReport))return;return e.json},s.prototype.addCustomError=function(e,t,r,n,a){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!t)throw new Error("No errorMessage known for code "+e);for(var o=(r=r||[]).length;o--;){var s=i.whatIs(r[o]),l="object"===s||"null"===s?JSON.stringify(r[o]):r[o];t=t.replace("{"+o+"}",l)}var c={code:e,params:r,message:t,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(c[i.schemaSymbol]=a,c[i.jsonSymbol]=this.getJson(),a&&"string"==typeof a?c.description=a:a&&"object"==typeof a&&(a.title&&(c.title=a.title),a.description&&(c.description=a.description)),null!=n){for(Array.isArray(n)||(n=[n]),c.inner=[],o=n.length;o--;)for(var p=n[o],d=p.errors.length;d--;)c.inner.push(p.errors[d]);0===c.inner.length&&(c.inner=void 0)}this.errors.push(c)}},e.exports=s},7994:(e,t,r)=>{"use strict";var n=r(2307),a=r(9454),o=r(2765),i=r(2088),s=r(9750);function l(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function c(e,t){if("object"==typeof e&&null!==e){if(!t)return e;if(e.id&&(e.id===t||"#"===e.id[0]&&e.id.substring(1)===t))return e;var r,n;if(Array.isArray(e)){for(r=e.length;r--;)if(n=c(e[r],t))return n}else{var a=Object.keys(e);for(r=a.length;r--;){var o=a[r];if(0!==o.indexOf("__$")&&(n=c(e[o],t)))return n}}}}t.cacheSchemaByUri=function(e,t){var r=l(e);r&&(this.cache[r]=t)},t.removeFromCacheByUri=function(e){var t=l(e);t&&delete this.cache[t]},t.checkCacheForUri=function(e){var t=l(e);return!!t&&null!=this.cache[t]},t.getSchema=function(e,r){return"object"==typeof r&&(r=t.getSchemaByReference.call(this,e,r)),"string"==typeof r&&(r=t.getSchemaByUri.call(this,e,r)),r},t.getSchemaByReference=function(e,t){for(var r=this.referenceCache.length;r--;)if(n(this.referenceCache[r][0],t))return this.referenceCache[r][1];var a=s.cloneDeep(t);return this.referenceCache.push([t,a]),a},t.getSchemaByUri=function(e,t,r){var n,s=l(t),p=function(e){var t=e.indexOf("#");return-1===t?void 0:e.slice(t+1)}(t),d=s?this.cache[s]:r;if(d&&s&&d!==r){var u;e.path.push(s);var h=e.getAncestor(d.id);if(h)u=h;else if(u=new a(e),o.compileSchema.call(this,u,d)){var f=this.options;try{this.options=d.__$validationOptions||this.options,i.validateSchema.call(this,u,d)}finally{this.options=f}}var m=u.isValid();if(m||e.addError("REMOTE_NOT_VALID",[t],u),e.path.pop(),!m)return}if(d&&p)for(var g=p.split("/"),y=0,v=g.length;d&&y{"use strict";var n=r(9454),a=r(7994),o=r(9750);function i(e,t){if(o.isAbsoluteUri(t))return t;var r,n=e.join(""),a=o.isAbsoluteUri(n),i=o.isRelativeUri(n),s=o.isRelativeUri(t);a&&s?(r=n.match(/\/[^\/]*$/))&&(n=n.slice(0,r.index+1)):i&&s?n="":(r=n.match(/[^#/]+$/))&&(n=n.slice(0,r.index));var l=n+t;return l=l.replace(/##/,"#")}function s(e,t,r,n){if(t=t||[],r=r||[],n=n||[],"object"!=typeof e||null===e)return t;var a;if("string"==typeof e.id&&r.push(e.id),"string"==typeof e.$ref&&void 0===e.__$refResolved&&t.push({ref:i(r,e.$ref),key:"$ref",obj:e,path:n.slice(0)}),"string"==typeof e.$schema&&void 0===e.__$schemaResolved&&t.push({ref:i(r,e.$schema),key:"$schema",obj:e,path:n.slice(0)}),Array.isArray(e))for(a=e.length;a--;)n.push(a.toString()),s(e[a],t,r,n),n.pop();else{var o=Object.keys(e);for(a=o.length;a--;)0!==o[a].indexOf("__$")&&(n.push(o[a]),s(e[o[a]],t,r,n),n.pop())}return"string"==typeof e.id&&r.pop(),t}var l=function(e,r){for(var a=r.length,o=0;a--;){var i=new n(e);t.compileSchema.call(this,i,r[a])&&o++,e.errors=e.errors.concat(i.errors)}return o};function c(e,t){for(var r=e.length;r--;)if(e[r].id===t)return e[r];return null}var p=function(e,t){var r,n=0;do{for(var a=e.errors.length;a--;)"UNRESOLVABLE_REFERENCE"===e.errors[a].code&&e.errors.splice(a,1);for(r=n,n=l.call(this,e,t),a=t.length;a--;){var o=t[a];if(o.__$missingReferences){for(var i=o.__$missingReferences.length;i--;){var s=o.__$missingReferences[i],p=c(t,s.ref);p&&(s.obj["__"+s.key+"Resolved"]=p,o.__$missingReferences.splice(i,1))}0===o.__$missingReferences.length&&delete o.__$missingReferences}}}while(n!==t.length&&n!==r);return e.isValid()};t.compileSchema=function(e,r){if(e.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof r){var i=a.getSchemaByUri.call(this,e,r);if(!i)return e.addError("SCHEMA_NOT_REACHABLE",[r]),!1;r=i}if(Array.isArray(r))return p.call(this,e,r);if(r.__$compiled&&r.id&&!1===a.checkCacheForUri.call(this,r.id)&&(r.__$compiled=void 0),r.__$compiled)return!0;r.id&&"string"==typeof r.id&&a.cacheSchemaByUri.call(this,r.id,r);var l=!1;e.rootSchema||(e.rootSchema=r,l=!0);var c=e.isValid();delete r.__$missingReferences;for(var d=s.call(this,r),u=d.length;u--;){var h=d[u],f=a.getSchemaByUri.call(this,e,h.ref,r);if(!f){var m=this.getSchemaReader();if(m){var g=m(h.ref);if(g){g.id=h.ref;var y=new n(e);t.compileSchema.call(this,y,g)?f=a.getSchemaByUri.call(this,e,h.ref,r):e.errors=e.errors.concat(y.errors)}}}if(!f){var v=e.hasError("REMOTE_NOT_VALID",[h.ref]),b=o.isAbsoluteUri(h.ref),x=!1,w=!0===this.options.ignoreUnresolvableReferences;b&&(x=a.checkCacheForUri.call(this,h.ref)),v||w&&b||x||(Array.prototype.push.apply(e.path,h.path),e.addError("UNRESOLVABLE_REFERENCE",[h.ref]),e.path=e.path.slice(0,-h.path.length),c&&(r.__$missingReferences=r.__$missingReferences||[],r.__$missingReferences.push(h)))}h.obj["__"+h.key+"Resolved"]=f}var $=e.isValid();return $?r.__$compiled=!0:r.id&&"string"==typeof r.id&&a.removeFromCacheByUri.call(this,r.id),l&&(e.rootSchema=void 0),$}},2088:(e,t,r)=>{"use strict";var n=r(7797),a=r(4706),o=r(9454),i=r(9750),s={$ref:function(e,t){"string"!=typeof t.$ref&&e.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(e,t){"string"!=typeof t.$schema&&e.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(e,t){"number"!=typeof t.multipleOf?e.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):t.multipleOf<=0&&e.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(e,t){"number"!=typeof t.maximum&&e.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(e,t){"boolean"!=typeof t.exclusiveMaximum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===t.maximum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(e,t){"number"!=typeof t.minimum&&e.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(e,t){"boolean"!=typeof t.exclusiveMinimum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===t.minimum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(e,t){"integer"!==i.whatIs(t.maxLength)?e.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):t.maxLength<0&&e.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(e,t){"integer"!==i.whatIs(t.minLength)?e.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):t.minLength<0&&e.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(e,t){if("string"!=typeof t.pattern)e.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(t.pattern)}catch(r){e.addError("KEYWORD_PATTERN",["pattern",t.pattern])}},additionalItems:function(e,r){var n=i.whatIs(r.additionalItems);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===n&&(e.path.push("additionalItems"),t.validateSchema.call(this,e,r.additionalItems),e.path.pop())},items:function(e,r){var n=i.whatIs(r.items);if("object"===n)e.path.push("items"),t.validateSchema.call(this,e,r.items),e.path.pop();else if("array"===n)for(var a=r.items.length;a--;)e.path.push("items"),e.path.push(a.toString()),t.validateSchema.call(this,e,r.items[a]),e.path.pop(),e.path.pop();else e.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);!0===this.options.forceAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&(r.additionalItems=!1)},maxItems:function(e,t){"number"!=typeof t.maxItems?e.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):t.maxItems<0&&e.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(e,t){"integer"!==i.whatIs(t.minItems)?e.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):t.minItems<0&&e.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(e,t){"boolean"!=typeof t.uniqueItems&&e.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(e,t){"integer"!==i.whatIs(t.maxProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):t.maxProperties<0&&e.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(e,t){"integer"!==i.whatIs(t.minProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):t.minProperties<0&&e.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(e,t){if("array"!==i.whatIs(t.required))e.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===t.required.length)e.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var r=t.required.length;r--;)"string"!=typeof t.required[r]&&e.addError("KEYWORD_VALUE_TYPE",["required","string"]);!1===i.isUniqueArray(t.required)&&e.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(e,r){var n=i.whatIs(r.additionalProperties);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===n&&(e.path.push("additionalProperties"),t.validateSchema.call(this,e,r.additionalProperties),e.path.pop())},properties:function(e,r){if("object"===i.whatIs(r.properties)){for(var n=Object.keys(r.properties),a=n.length;a--;){var o=n[a],s=r.properties[o];e.path.push("properties"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceAdditional&&void 0===r.additionalProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===r.additionalProperties&&(r.additionalProperties=!1),!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["properties","object"])},patternProperties:function(e,r){if("object"===i.whatIs(r.patternProperties)){for(var n=Object.keys(r.patternProperties),a=n.length;a--;){var o=n[a],s=r.patternProperties[o];try{RegExp(o)}catch(t){e.addError("KEYWORD_PATTERN",["patternProperties",o])}e.path.push("patternProperties"),e.path.push(o.toString()),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"])},dependencies:function(e,r){if("object"!==i.whatIs(r.dependencies))e.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var n=Object.keys(r.dependencies),a=n.length;a--;){var o=n[a],s=r.dependencies[o],l=i.whatIs(s);if("object"===l)e.path.push("dependencies"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop();else if("array"===l){var c=s.length;for(0===c&&e.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);c--;)"string"!=typeof s[c]&&e.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);!1===i.isUniqueArray(s)&&e.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else e.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},enum:function(e,t){!1===Array.isArray(t.enum)?e.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===t.enum.length?e.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):!1===i.isUniqueArray(t.enum)&&e.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(e,t){var r=["array","boolean","integer","number","null","object","string"],n=r.join(","),a=Array.isArray(t.type);if(a){for(var o=t.type.length;o--;)-1===r.indexOf(t.type[o])&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]);!1===i.isUniqueArray(t.type)&&e.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof t.type?-1===r.indexOf(t.type)&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]):e.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);!0===this.options.noEmptyStrings&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.enum&&void 0===t.format&&(t.minLength=1),!0===this.options.noEmptyArrays&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&(t.minItems=1),!0===this.options.forceProperties&&("object"===t.type||a&&-1!==t.type.indexOf("object"))&&void 0===t.properties&&void 0===t.patternProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),!0===this.options.forceItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.items&&e.addError("KEYWORD_UNDEFINED_STRICT",["items"]),!0===this.options.forceMinItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),!0===this.options.forceMaxItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.maxItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),!0===this.options.forceMinLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),!0===this.options.forceMaxLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.maxLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(e,r){if(!1===Array.isArray(r.allOf))e.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===r.allOf.length)e.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var n=r.allOf.length;n--;)e.path.push("allOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.allOf[n]),e.path.pop(),e.path.pop()},anyOf:function(e,r){if(!1===Array.isArray(r.anyOf))e.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===r.anyOf.length)e.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var n=r.anyOf.length;n--;)e.path.push("anyOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.anyOf[n]),e.path.pop(),e.path.pop()},oneOf:function(e,r){if(!1===Array.isArray(r.oneOf))e.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===r.oneOf.length)e.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var n=r.oneOf.length;n--;)e.path.push("oneOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.oneOf[n]),e.path.pop(),e.path.pop()},not:function(e,r){"object"!==i.whatIs(r.not)?e.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(e.path.push("not"),t.validateSchema.call(this,e,r.not),e.path.pop())},definitions:function(e,r){if("object"!==i.whatIs(r.definitions))e.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var n=Object.keys(r.definitions),a=n.length;a--;){var o=n[a],s=r.definitions[o];e.path.push("definitions"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}},format:function(e,t){"string"!=typeof t.format?e.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===n[t.format]&&!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format])},id:function(e,t){"string"!=typeof t.id&&e.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(e,t){"string"!=typeof t.title&&e.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(e,t){"string"!=typeof t.description&&e.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},default:function(){}},l=function(e,r){for(var n=r.length;n--;)t.validateSchema.call(this,e,r[n]);return e.isValid()};t.validateSchema=function(e,t){if(e.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(t))return l.call(this,e,t);if(t.__$validated)return!0;var r=t.$schema&&t.id!==t.$schema;if(r)if(t.__$schemaResolved&&t.__$schemaResolved!==t){var n=new o(e);!1===a.validate.call(this,n,t.__$schemaResolved,t)&&e.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,n)}else!0!==this.options.ignoreUnresolvableReferences&&e.addError("REF_UNRESOLVED",[t.$schema]);if(!0===this.options.noTypeless){if(void 0!==t.type){var c=[];Array.isArray(t.anyOf)&&(c=c.concat(t.anyOf)),Array.isArray(t.oneOf)&&(c=c.concat(t.oneOf)),Array.isArray(t.allOf)&&(c=c.concat(t.allOf)),c.forEach((function(e){e.type||(e.type=t.type)}))}void 0===t.enum&&void 0===t.type&&void 0===t.anyOf&&void 0===t.oneOf&&void 0===t.not&&void 0===t.$ref&&e.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var p=Object.keys(t),d=p.length;d--;){var u=p[d];0!==u.indexOf("__")&&(void 0!==s[u]?s[u].call(this,e,t):r||!0===this.options.noExtraKeywords&&e.addError("KEYWORD_UNEXPECTED",[u]))}if(!0===this.options.pedanticCheck){if(t.enum){var h=i.clone(t);for(delete h.enum,delete h.default,e.path.push("enum"),d=t.enum.length;d--;)e.path.push(d.toString()),a.validate.call(this,e,h,t.enum[d]),e.path.pop();e.path.pop()}t.default&&(e.path.push("default"),a.validate.call(this,e,t,t.default),e.path.pop())}var f=e.isValid();return f&&(t.__$validated=!0),f}},9750:(e,t)=>{"use strict";t.jsonSymbol=Symbol.for("z-schema/json"),t.schemaSymbol=Symbol.for("z-schema/schema");var r=t.sortedKeys=function(e){return Object.keys(e).sort()};t.isAbsoluteUri=function(e){return/^https?:\/\//.test(e)},t.isRelativeUri=function(e){return/.+#/.test(e)},t.whatIs=function(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"array":"object":"number"===t?Number.isFinite(e)?e%1==0?"integer":"number":Number.isNaN(e)?"not-a-number":"unknown-number":t},t.areEqual=function e(n,a,o){var i,s,l=(o=o||{}).caseInsensitiveComparison||!1;if(n===a)return!0;if(!0===l&&"string"==typeof n&&"string"==typeof a&&n.toUpperCase()===a.toUpperCase())return!0;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(s=n.length,i=0;i=55296&&t<=56319&&a{"use strict";var n=r(4155);r(2630);var a=r(9208),o=r(9454),i=r(7797),s=r(4706),l=r(7994),c=r(2765),p=r(2088),d=r(9750),u=r(1319),h=r(2619),f={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,enumCaseInsensitiveComparison:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!1,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};function m(e){var t;if("object"==typeof e){for(var r,n=Object.keys(e),a=n.length;a--;)if(r=n[a],void 0===f[r])throw new Error("Unexpected option passed to constructor: "+r);for(a=(n=Object.keys(f)).length;a--;)void 0===e[r=n[a]]&&(e[r]=d.clone(f[r]));t=e}else t=d.clone(f);return!0===t.strictMode&&(t.forceAdditional=!0,t.forceItems=!0,t.forceMaxLength=!0,t.forceProperties=!0,t.noExtraKeywords=!0,t.noTypeless=!0,t.noEmptyStrings=!0,t.noEmptyArrays=!0),t}function g(e){this.cache={},this.referenceCache=[],this.validateOptions={},this.options=m(e);var t=m({});this.setRemoteReference("http://json-schema.org/draft-04/schema",u,t),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",h,t)}g.prototype.compileSchema=function(e){var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validateSchema=function(e){if(Array.isArray(e)&&0===e.length)throw new Error(".validateSchema was called with an empty array");var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e)&&p.validateSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validate=function(e,t,r,i){"function"===d.whatIs(r)&&(i=r,r={}),r||(r={}),this.validateOptions=r;var u=d.whatIs(t);if("string"!==u&&"object"!==u){var h=new Error("Invalid .validate call - schema must be a string or object but "+u+" was passed!");if(i)return void n.nextTick((function(){i(h,!1)}));throw h}var f=!1,m=new o(this.options);if(m.json=e,"string"==typeof t){var g=t;if(!(t=l.getSchema.call(this,m,g)))throw new Error("Schema with id '"+g+"' wasn't found in the validator cache!")}else t=l.getSchema.call(this,m,t);var y=!1;f||(y=c.compileSchema.call(this,m,t)),y||(this.lastReport=m,f=!0);var v=!1;if(f||(v=p.validateSchema.call(this,m,t)),v||(this.lastReport=m,f=!0),r.schemaPath&&(m.rootSchema=t,!(t=a(t,r.schemaPath))))throw new Error("Schema path '"+r.schemaPath+"' wasn't found in the schema!");if(f||s.validate.call(this,m,t,e),!i){if(m.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=m,m.isValid()}m.processAsyncTasks(this.options.asyncTimeout,i)},g.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var e=new Error;return e.name="z-schema validation error",e.message=this.lastReport.commonErrorMessage,e.details=this.lastReport.errors,e},g.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:null},g.prototype.getMissingReferences=function(e){for(var t=[],r=(e=e||this.lastReport.errors).length;r--;){var n=e[r];if("UNRESOLVABLE_REFERENCE"===n.code){var a=n.params[0];-1===t.indexOf(a)&&t.push(a)}n.inner&&(t=t.concat(this.getMissingReferences(n.inner)))}return t},g.prototype.getMissingRemoteReferences=function(){for(var e=this.getMissingReferences(),t=[],r=e.length;r--;){var n=l.getRemotePath(e[r]);n&&-1===t.indexOf(n)&&t.push(n)}return t},g.prototype.setRemoteReference=function(e,t,r){t="string"==typeof t?JSON.parse(t):d.cloneDeep(t),r&&(t.__$validationOptions=m(r)),l.cacheSchemaByUri.call(this,e,t)},g.prototype.getResolvedSchema=function(e){var t=new o(this.options);e=l.getSchema.call(this,t,e),e=d.cloneDeep(e);var r=[],n=function(e){var t,a=d.whatIs(e);if(("object"===a||"array"===a)&&!e.___$visited){if(e.___$visited=!0,r.push(e),e.$ref&&e.__$refResolved){var o=e.__$refResolved,i=e;for(t in delete e.$ref,delete e.__$refResolved,o)o.hasOwnProperty(t)&&(i[t]=o[t])}for(t in e)e.hasOwnProperty(t)&&(0===t.indexOf("__$")?delete e[t]:n(e[t]))}};if(n(e),r.forEach((function(e){delete e.___$visited})),this.lastReport=t,t.isValid())return e;throw this.getLastError()},g.prototype.setSchemaReader=function(e){return g.setSchemaReader(e)},g.prototype.getSchemaReader=function(){return g.schemaReader},g.schemaReader=void 0,g.setSchemaReader=function(e){g.schemaReader=e},g.registerFormat=function(e,t){i[e]=t},g.unregisterFormat=function(e){delete i[e]},g.getRegisteredFormats=function(){return Object.keys(i)},g.getDefaultOptions=function(){return d.cloneDeep(f)},g.schemaSymbol=d.schemaSymbol,g.jsonSymbol=d.jsonSymbol,e.exports=g},3471:()=>{},6214:()=>{},4616:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"id":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swaggerVersion","basePath","apis"],"properties":{"swaggerVersion":{"enum":["1.2"]},"apiVersion":{"type":"string"},"basePath":{"type":"string","format":"uri","pattern":"^https?://"},"resourcePath":{"type":"string","format":"uri","pattern":"^/"},"apis":{"type":"array","items":{"$ref":"#/definitions/apiObject"}},"models":{"type":"object","additionalProperties":{"$ref":"modelsObject.json#"}},"produces":{"$ref":"#/definitions/mimeTypeArray"},"consumes":{"$ref":"#/definitions/mimeTypeArray"},"authorizations":{"$ref":"authorizationObject.json#"}},"additionalProperties":false,"definitions":{"apiObject":{"type":"object","required":["path","operations"],"properties":{"path":{"type":"string","format":"uri-template","pattern":"^/"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"operationObject.json#"}}},"additionalProperties":false},"mimeTypeArray":{"type":"array","items":{"type":"string","format":"mime-type"},"uniqueItems":true}}}')},499:e=>{"use strict";e.exports=JSON.parse('{"title":"A JSON Schema for Swagger 2.0 API.","id":"http://swagger.io/v2/schema.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swagger","info","paths"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"swagger":{"type":"string","enum":["2.0"],"description":"The Swagger version of this document."},"info":{"$ref":"#/definitions/info"},"host":{"type":"string","pattern":"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$","description":"The host (name or ip) of the API. Example: \'swagger.io\'"},"basePath":{"type":"string","pattern":"^/","description":"The base path to the API. Example: \'/api\'."},"schemes":{"$ref":"#/definitions/schemesList"},"consumes":{"description":"A list of MIME types accepted by the API.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"paths":{"$ref":"#/definitions/paths"},"definitions":{"$ref":"#/definitions/definitions"},"parameters":{"$ref":"#/definitions/parameterDefinitions"},"responses":{"$ref":"#/definitions/responseDefinitions"},"security":{"$ref":"#/definitions/security"},"securityDefinitions":{"$ref":"#/definitions/securityDefinitions"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},"termsOfService":{"type":"string","description":"The terms of service for the API."},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"paths":{"type":"object","description":"Relative paths to the individual endpoints. They must be relative to the \'basePath\'.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"},"^/":{"$ref":"#/definitions/pathItem"}},"additionalProperties":false},"definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"One or more JSON objects describing the schemas being consumed and produced by the API."},"parameterDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"One or more JSON representations for parameters"},"responseDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/response"},"description":"One or more JSON representations for responses"},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"examples":{"type":"object","additionalProperties":true},"mimeType":{"type":"string","description":"The MIME type of the HTTP message."},"operation":{"type":"object","required":["responses"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the operation."},"description":{"type":"string","description":"A longer description of the operation, GitHub Flavored Markdown is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string","description":"A unique identifier of the operation."},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"consumes":{"description":"A list of MIME types the API can consume.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"parameters":{"$ref":"#/definitions/parametersList"},"responses":{"$ref":"#/definitions/responses"},"schemes":{"$ref":"#/definitions/schemesList"},"deprecated":{"type":"boolean","default":false},"security":{"$ref":"#/definitions/security"}}},"pathItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"get":{"$ref":"#/definitions/operation"},"put":{"$ref":"#/definitions/operation"},"post":{"$ref":"#/definitions/operation"},"delete":{"$ref":"#/definitions/operation"},"options":{"$ref":"#/definitions/operation"},"head":{"$ref":"#/definitions/operation"},"patch":{"$ref":"#/definitions/operation"},"parameters":{"$ref":"#/definitions/parametersList"}}},"responses":{"type":"object","description":"Response objects names can either be any valid HTTP status code or \'default\'.","minProperties":1,"additionalProperties":false,"patternProperties":{"^([0-9]{3})$|^(default)$":{"$ref":"#/definitions/responseValue"},"^x-":{"$ref":"#/definitions/vendorExtension"}},"not":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}}},"responseValue":{"oneOf":[{"$ref":"#/definitions/response"},{"$ref":"#/definitions/jsonReference"}]},"response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"schema":{"oneOf":[{"$ref":"#/definitions/schema"},{"$ref":"#/definitions/fileSchema"}]},"headers":{"$ref":"#/definitions/headers"},"examples":{"$ref":"#/definitions/examples"}},"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/header"}},"header":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"vendorExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"bodyParameter":{"type":"object","required":["name","in","schema"],"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["body"]},"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"schema":{"$ref":"#/definitions/schema"}},"additionalProperties":false},"headerParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["header"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"queryParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["query"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"formDataParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["formData"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array","file"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"pathParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["required"],"properties":{"required":{"type":"boolean","enum":[true],"description":"Determines whether or not this parameter is required or optional."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["path"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"nonBodyParameter":{"type":"object","required":["name","in","type"],"oneOf":[{"$ref":"#/definitions/headerParameterSubSchema"},{"$ref":"#/definitions/formDataParameterSubSchema"},{"$ref":"#/definitions/queryParameterSubSchema"},{"$ref":"#/definitions/pathParameterSubSchema"}]},"parameter":{"oneOf":[{"$ref":"#/definitions/bodyParameter"},{"$ref":"#/definitions/nonBodyParameter"}]},"schema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/xml"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"fileSchema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["type"],"properties":{"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"type":{"type":"string","enum":["file"]},"readOnly":{"type":"boolean","default":false},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"primitivesItems":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"security":{"type":"array","items":{"$ref":"#/definitions/securityRequirement"},"uniqueItems":true},"securityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"xml":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"securityDefinitions":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/basicAuthenticationSecurity"},{"$ref":"#/definitions/apiKeySecurity"},{"$ref":"#/definitions/oauth2ImplicitSecurity"},{"$ref":"#/definitions/oauth2PasswordSecurity"},{"$ref":"#/definitions/oauth2ApplicationSecurity"},{"$ref":"#/definitions/oauth2AccessCodeSecurity"}]}},"basicAuthenticationSecurity":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["basic"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"apiKeySecurity":{"type":"object","additionalProperties":false,"required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ImplicitSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["implicit"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2PasswordSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["password"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ApplicationSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["application"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2AccessCodeSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["accessCode"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"mediaTypeList":{"type":"array","items":{"$ref":"#/definitions/mimeType"},"uniqueItems":true},"parametersList":{"type":"array","description":"The parameters needed to send a valid API call.","additionalItems":false,"items":{"oneOf":[{"$ref":"#/definitions/parameter"},{"$ref":"#/definitions/jsonReference"}]},"uniqueItems":true},"schemesList":{"type":"array","description":"The transfer protocol of the API.","items":{"type":"string","enum":["http","https","ws","wss"]},"uniqueItems":true},"collectionFormat":{"type":"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},"collectionFormatWithMulti":{"type":"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"jsonReference":{"type":"object","required":["$ref"],"additionalProperties":false,"properties":{"$ref":{"type":"string"}}}}}')},3659:e=>{"use strict";e.exports=JSON.parse('{"id":"https://spec.openapis.org/oas/3.0/schema/2019-04-02","$schema":"http://json-schema.org/draft-04/schema#","description":"Validation schema for OpenAPI Specification 3.0.X.","type":"object","required":["openapi","info","paths"],"properties":{"openapi":{"type":"string","pattern":"^3\\\\.0\\\\.\\\\d(-.+)?$"},"info":{"$ref":"#/definitions/Info"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/Tag"},"uniqueItems":true},"paths":{"$ref":"#/definitions/Paths"},"components":{"$ref":"#/definitions/Components"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"definitions":{"Reference":{"type":"object","required":["$ref"],"patternProperties":{"^\\\\$ref$":{"type":"string","format":"uri-reference"}}},"Info":{"type":"object","required":["title","version"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string","format":"uri-reference"},"contact":{"$ref":"#/definitions/Contact"},"license":{"$ref":"#/definitions/License"},"version":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"},"email":{"type":"string","format":"email"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"License":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Server":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/definitions/ServerVariable"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ServerVariable":{"type":"object","required":["default"],"properties":{"enum":{"type":"array","items":{"type":"string"}},"default":{"type":"string"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Components":{"type":"object","properties":{"schemas":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}}},"responses":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Response"}]}}},"parameters":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Parameter"}]}}},"examples":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Example"}]}}},"requestBodies":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/RequestBody"}]}}},"headers":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Header"}]}}},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"links":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Link"}]}}},"callbacks":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Callback"}]}}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Schema":{"type":"object","properties":{"title":{"type":"string"},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"type":"integer","minimum":0},"minLength":{"type":"integer","minimum":0,"default":0},"pattern":{"type":"string","format":"regex"},"maxItems":{"type":"integer","minimum":0},"minItems":{"type":"integer","minimum":0,"default":0},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"type":"integer","minimum":0},"minProperties":{"type":"integer","minimum":0,"default":0},"required":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"enum":{"type":"array","items":{},"minItems":1,"uniqueItems":false},"type":{"type":"string","enum":["array","boolean","integer","number","object","string"]},"not":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"allOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"oneOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"anyOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"properties":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"},{"type":"boolean"}],"default":true},"description":{"type":"string"},"format":{"type":"string"},"default":{},"nullable":{"type":"boolean","default":false},"discriminator":{"$ref":"#/definitions/Discriminator"},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"example":{},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"deprecated":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/XML"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Discriminator":{"type":"object","required":["propertyName"],"properties":{"propertyName":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}}}},"XML":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string","format":"uri"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Header"},{"$ref":"#/definitions/Reference"}]}},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"links":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Link"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"MediaType":{"type":"object","properties":{"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}},"encoding":{"type":"object","additionalProperties":{"$ref":"#/definitions/Encoding"}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"}]},"Example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":{},"externalValue":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Header":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string","enum":["simple"],"default":"simple"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"}]},"Paths":{"type":"object","patternProperties":{"^\\\\/":{"$ref":"#/definitions/PathItem"},"^x-":{}},"additionalProperties":false},"PathItem":{"type":"object","properties":{"$ref":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/definitions/Operation"},"^x-":{}},"additionalProperties":false},"Operation":{"type":"object","required":["responses"],"properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true},"requestBody":{"oneOf":[{"$ref":"#/definitions/RequestBody"},{"$ref":"#/definitions/Reference"}]},"responses":{"$ref":"#/definitions/Responses"},"callbacks":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Callback"},{"$ref":"#/definitions/Reference"}]}},"deprecated":{"type":"boolean","default":false},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Responses":{"type":"object","properties":{"default":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]}},"patternProperties":{"^[1-5](?:\\\\d{2}|XX)$":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]},"^x-":{}},"minProperties":1,"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Tag":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExternalDocumentation":{"type":"object","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExampleXORExamples":{"description":"Example and examples are mutually exclusive","not":{"required":["example","examples"]}},"SchemaXORContent":{"description":"Schema and content are mutually exclusive, at least one is required","not":{"required":["schema","content"]},"oneOf":[{"required":["schema"]},{"required":["content"],"description":"Some properties are not allowed if content is present","allOf":[{"not":{"required":["style"]}},{"not":{"required":["explode"]}},{"not":{"required":["allowReserved"]}},{"not":{"required":["example"]}},{"not":{"required":["examples"]}}]}]},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"required":["name","in"],"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"},{"$ref":"#/definitions/ParameterLocation"}]},"ParameterLocation":{"description":"Parameter location","oneOf":[{"description":"Parameter in path","required":["required"],"properties":{"in":{"enum":["path"]},"style":{"enum":["matrix","label","simple"],"default":"simple"},"required":{"enum":[true]}}},{"description":"Parameter in query","properties":{"in":{"enum":["query"]},"style":{"enum":["form","spaceDelimited","pipeDelimited","deepObject"],"default":"form"}}},{"description":"Parameter in header","properties":{"in":{"enum":["header"]},"style":{"enum":["simple"],"default":"simple"}}},{"description":"Parameter in cookie","properties":{"in":{"enum":["cookie"]},"style":{"enum":["form"],"default":"form"}}}]},"RequestBody":{"type":"object","required":["content"],"properties":{"description":{"type":"string"},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"required":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/APIKeySecurityScheme"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/OAuth2SecurityScheme"},{"$ref":"#/definitions/OpenIdConnectSecurityScheme"}]},"APIKeySecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"HTTPSecurityScheme":{"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"bearerFormat":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false,"oneOf":[{"description":"Bearer","properties":{"scheme":{"enum":["bearer"]}}},{"description":"Non Bearer","not":{"required":["bearerFormat"]},"properties":{"scheme":{"not":{"enum":["bearer"]}}}}]},"OAuth2SecurityScheme":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flows":{"$ref":"#/definitions/OAuthFlows"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OpenIdConnectSecurityScheme":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"openIdConnectUrl":{"type":"string","format":"uri-reference"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OAuthFlows":{"type":"object","properties":{"implicit":{"$ref":"#/definitions/ImplicitOAuthFlow"},"password":{"$ref":"#/definitions/PasswordOAuthFlow"},"clientCredentials":{"$ref":"#/definitions/ClientCredentialsFlow"},"authorizationCode":{"$ref":"#/definitions/AuthorizationCodeOAuthFlow"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ImplicitOAuthFlow":{"type":"object","required":["authorizationUrl","scopes"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"PasswordOAuthFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ClientCredentialsFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"AuthorizationCodeOAuthFlow":{"type":"object","required":["authorizationUrl","tokenUrl"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Link":{"type":"object","properties":{"operationId":{"type":"string"},"operationRef":{"type":"string","format":"uri-reference"},"parameters":{"type":"object","additionalProperties":{}},"requestBody":{},"description":{"type":"string"},"server":{"$ref":"#/definitions/Server"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"not":{"description":"Operation Id and Operation Ref are mutually exclusive","required":["operationId","operationRef"]}},"Callback":{"type":"object","additionalProperties":{"$ref":"#/definitions/PathItem"},"patternProperties":{"^x-":{}}},"Encoding":{"type":"object","properties":{"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/Header"}},"style":{"type":"string","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false}},"additionalProperties":false}}}')},1201:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://spec.openapis.org/oas/3.1/schema/2021-04-15","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string","pattern":"^3\\\\.1\\\\.\\\\d+(-.+)?$"},"info":{"$ref":"#/$defs/info"},"jsonSchemaDialect":{"$ref":"#/$defs/uri","default":"https://spec.openapis.org/oas/3.1/dialect/base"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"paths":{"$ref":"#/$defs/paths"},"webhooks":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"components":{"$ref":"#/$defs/components"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"tags":{"type":"array","items":{"$ref":"#/$defs/tag"}},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["openapi","info"],"anyOf":[{"required":["paths"]},{"required":["components"]},{"required":["webhooks"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"info":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"#/$defs/contact"},"license":{"$ref":"#/$defs/license"},"version":{"type":"string"}},"required":["title","version"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["name"],"oneOf":[{"required":["identifier"]},{"required":["url"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server":{"type":"object","properties":{"url":{"$ref":"#/$defs/uri"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/$defs/server-variable"}}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server-variable":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"},"minItems":1},"default":{"type":"string"},"descriptions":{"type":"string"}},"required":["default"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"components":{"type":"object","properties":{"schemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}},"responses":{"type":"object","additionalProperties":{"$ref":"#/$defs/response-or-reference"}},"parameters":{"type":"object","additionalProperties":{"$ref":"#/$defs/parameter-or-reference"}},"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}},"requestBodies":{"type":"object","additionalProperties":{"$ref":"#/$defs/request-body-or-reference"}},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"securitySchemes":{"type":"object","additionalProperties":{"$ref":"#/$defs/security-scheme-or-reference"}},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"pathItems":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}}},"patternProperties":{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{"$comment":"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected","propertyNames":{"pattern":"^[a-zA-Z0-9._-]+$"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"paths":{"type":"object","patternProperties":{"^/":{"$ref":"#/$defs/path-item"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/$defs/operation"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/path-item"}},"operation":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}},"requestBody":{"$ref":"#/$defs/request-body-or-reference"},"responses":{"$ref":"#/$defs/responses"},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"deprecated":{"default":false,"type":"boolean"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"external-documentation":{"type":"object","properties":{"description":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"enum":["query","header","path","cookie"]},"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"},"content":{"$ref":"#/$defs/content"}},"required":["in"],"oneOf":[{"required":["schema"]},{"required":["content"]}],"dependentSchemas":{"schema":{"properties":{"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/examples"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],"$defs":{"styles-for-path":{"if":{"properties":{"in":{"const":"path"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["matrix","label","simple"]},"required":{"const":true}},"required":["required"]}},"styles-for-header":{"if":{"properties":{"in":{"const":"header"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["simple"]}}}},"styles-for-query":{"if":{"properties":{"in":{"const":"query"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{"if":{"properties":{"in":{"const":"cookie"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form"]}}}},"styles-for-form":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/parameter"}},"request-body":{"type":"object","properties":{"description":{"type":"string"},"content":{"$ref":"#/$defs/content"},"required":{"default":false,"type":"boolean"}},"required":["content"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"request-body-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/request-body"}},"content":{"type":"object","additionalProperties":{"$ref":"#/$defs/media-type"},"propertyNames":{"format":"media-range"}},"media-type":{"type":"object","properties":{"schema":{"$dynamicRef":"#meta"},"encoding":{"type":"object","additionalProperties":{"$ref":"#/$defs/encoding"}}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/examples"}],"unevaluatedProperties":false},"encoding":{"type":"object","properties":{"contentType":{"type":"string","format":"media-range"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/encoding/$defs/explode-default"}],"unevaluatedProperties":false,"$defs":{"explode-default":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}},"responses":{"type":"object","properties":{"default":{"$ref":"#/$defs/response-or-reference"}},"patternProperties":{"^[1-5][0-9X]{2}$":{"$ref":"#/$defs/response-or-reference"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response":{"type":"object","properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"content":{"$ref":"#/$defs/content"},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}}},"required":["description"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/response"}},"callbacks":{"type":"object","$ref":"#/$defs/specification-extensions","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/callbacks"}},"example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":true,"externalValue":{"$ref":"#/$defs/uri"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"example-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/example"}},"link":{"type":"object","properties":{"operationRef":{"$ref":"#/$defs/uri"},"operationId":true,"parameters":{"$ref":"#/$defs/map-of-strings"},"requestBody":true,"description":{"type":"string"},"body":{"$ref":"#/$defs/server"}},"oneOf":[{"required":["operationRef"]},{"required":["operationId"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"link-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/link"}},"header":{"type":"object","properties":{"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"}},"dependentSchemas":{"schema":{"properties":{"style":{"default":"simple","enum":["simple"]},"explode":{"default":false,"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"}},"$ref":"#/$defs/examples"},"content":{"properties":{"content":{"$ref":"#/$defs/content"}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"header-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/header"}},"tag":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["name"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"reference":{"type":"object","properties":{"$ref":{"$ref":"#/$defs/uri"},"summary":{"type":"string"},"description":{"type":"string"}},"unevaluatedProperties":false},"schema":{"$dynamicAnchor":"meta","type":["object","boolean"]},"security-scheme":{"type":"object","properties":{"type":{"enum":["apiKey","http","mutualTLS","oauth2","openIdConnect"]},"description":{"type":"string"}},"required":["type"],"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/security-scheme/$defs/type-apikey"},{"$ref":"#/$defs/security-scheme/$defs/type-http"},{"$ref":"#/$defs/security-scheme/$defs/type-http-bearer"},{"$ref":"#/$defs/security-scheme/$defs/type-oauth2"},{"$ref":"#/$defs/security-scheme/$defs/type-oidc"}],"unevaluatedProperties":false,"$defs":{"type-apikey":{"if":{"properties":{"type":{"const":"apiKey"}},"required":["type"]},"then":{"properties":{"name":{"type":"string"},"in":{"enum":["query","header","cookie"]}},"required":["name","in"]}},"type-http":{"if":{"properties":{"type":{"const":"http"}},"required":["type"]},"then":{"properties":{"scheme":{"type":"string"}},"required":["scheme"]}},"type-http-bearer":{"if":{"properties":{"type":{"const":"http"},"scheme":{"const":"bearer"}},"required":["type","scheme"]},"then":{"properties":{"bearerFormat":{"type":"string"}},"required":["scheme"]}},"type-oauth2":{"if":{"properties":{"type":{"const":"oauth2"}},"required":["type"]},"then":{"properties":{"flows":{"$ref":"#/$defs/oauth-flows"}},"required":["flows"]}},"type-oidc":{"if":{"properties":{"type":{"const":"openIdConnect"}},"required":["type"]},"then":{"properties":{"openIdConnectUrl":{"$ref":"#/$defs/uri"}},"required":["openIdConnectUrl"]}}}},"security-scheme-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/security-scheme"}},"oauth-flows":{"type":"object","properties":{"implicit":{"$ref":"#/$defs/oauth-flows/$defs/implicit"},"password":{"$ref":"#/$defs/oauth-flows/$defs/password"},"clientCredentials":{"$ref":"#/$defs/oauth-flows/$defs/client-credentials"},"authorizationCode":{"$ref":"#/$defs/oauth-flows/$defs/authorization-code"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"implicit":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"password":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"client-credentials":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"authorization-code":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false}}},"security-requirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"specification-extensions":{"patternProperties":{"^x-":true}},"examples":{"properties":{"example":true,"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}}}},"uri":{"type":"string","format":"uri"},"map-of-strings":{"type":"object","additionalProperties":{"type":"string"}}}}')},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6273:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},3932:e=>{"use strict";e.exports=JSON.parse('{"$id":"afterRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},6136:e=>{"use strict";e.exports=JSON.parse('{"$id":"beforeRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},805:e=>{"use strict";e.exports=JSON.parse('{"$id":"browser.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},1632:e=>{"use strict";e.exports=JSON.parse('{"$id":"cache.json#","$schema":"http://json-schema.org/draft-06/schema#","properties":{"beforeRequest":{"oneOf":[{"type":"null"},{"$ref":"beforeRequest.json#"}]},"afterRequest":{"oneOf":[{"type":"null"},{"$ref":"afterRequest.json#"}]},"comment":{"type":"string"}}}')},1567:e=>{"use strict";e.exports=JSON.parse('{"$id":"content.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["size","mimeType"],"properties":{"size":{"type":"integer"},"compression":{"type":"integer"},"mimeType":{"type":"string"},"text":{"type":"string"},"encoding":{"type":"string"},"comment":{"type":"string"}}}')},5725:e=>{"use strict";e.exports=JSON.parse('{"$id":"cookie.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"path":{"type":"string"},"domain":{"type":"string"},"expires":{"type":["string","null"],"format":"date-time"},"httpOnly":{"type":"boolean"},"secure":{"type":"boolean"},"comment":{"type":"string"}}}')},7218:e=>{"use strict";e.exports=JSON.parse('{"$id":"creator.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},4560:e=>{"use strict";e.exports=JSON.parse('{"$id":"entry.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","time","request","response","cache","timings"],"properties":{"pageref":{"type":"string"},"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"time":{"type":"number","min":0},"request":{"$ref":"request.json#"},"response":{"$ref":"response.json#"},"cache":{"$ref":"cache.json#"},"timings":{"$ref":"timings.json#"},"serverIPAddress":{"type":"string","oneOf":[{"format":"ipv4"},{"format":"ipv6"}]},"connection":{"type":"string"},"comment":{"type":"string"}}}')},5579:e=>{"use strict";e.exports=JSON.parse('{"$id":"har.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["log"],"properties":{"log":{"$ref":"log.json#"}}}')},5147:e=>{"use strict";e.exports=JSON.parse('{"$id":"header.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},3013:e=>{"use strict";e.exports=JSON.parse('{"$id":"log.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["version","creator","entries"],"properties":{"version":{"type":"string"},"creator":{"$ref":"creator.json#"},"browser":{"$ref":"browser.json#"},"pages":{"type":"array","items":{"$ref":"page.json#"}},"entries":{"type":"array","items":{"$ref":"entry.json#"}},"comment":{"type":"string"}}}')},4777:e=>{"use strict";e.exports=JSON.parse('{"$id":"page.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","id","title","pageTimings"],"properties":{"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"id":{"type":"string","unique":true},"title":{"type":"string"},"pageTimings":{"$ref":"pageTimings.json#"},"comment":{"type":"string"}}}')},5538:e=>{"use strict";e.exports=JSON.parse('{"$id":"pageTimings.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","properties":{"onContentLoad":{"type":"number","min":-1},"onLoad":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2096:e=>{"use strict";e.exports=JSON.parse('{"$id":"postData.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["mimeType"],"properties":{"mimeType":{"type":"string"},"text":{"type":"string"},"params":{"type":"array","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"fileName":{"type":"string"},"contentType":{"type":"string"},"comment":{"type":"string"}}},"comment":{"type":"string"}}}')},1251:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},9646:e=>{"use strict";e.exports=JSON.parse('{"$id":"request.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],"properties":{"method":{"type":"string"},"url":{"type":"string","format":"uri"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"queryString":{"type":"array","items":{"$ref":"query.json#"}},"postData":{"$ref":"postData.json#"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},9103:e=>{"use strict";e.exports=JSON.parse('{"$id":"response.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],"properties":{"status":{"type":"integer"},"statusText":{"type":"string"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"content":{"$ref":"content.json#"},"redirectURL":{"type":"string"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},2007:e=>{"use strict";e.exports=JSON.parse('{"$id":"timings.json#","$schema":"http://json-schema.org/draft-06/schema#","required":["send","wait","receive"],"properties":{"dns":{"type":"number","min":-1},"connect":{"type":"number","min":-1},"blocked":{"type":"number","min":-1},"send":{"type":"number","min":-1},"wait":{"type":"number","min":-1},"receive":{"type":"number","min":-1},"ssl":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2619:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-04/hyper-schema#","id":"http://json-schema.org/draft-04/hyper-schema#","title":"JSON Hyper-Schema","allOf":[{"$ref":"http://json-schema.org/draft-04/schema#"}],"properties":{"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"type":"array"}]}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}]},"definitions":{"additionalProperties":{"$ref":"#"}},"patternProperties":{"additionalProperties":{"$ref":"#"}},"properties":{"additionalProperties":{"$ref":"#"}},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"},"links":{"type":"array","items":{"$ref":"#/definitions/linkDescription"}},"fragmentResolution":{"type":"string"},"media":{"type":"object","properties":{"type":{"description":"A media type, as described in RFC 2046","type":"string"},"binaryEncoding":{"description":"A content encoding scheme, as described in RFC 2045","type":"string"}}},"pathStart":{"description":"Instances\' URIs must start with this value for this schema to apply to them","type":"string","format":"uri"}},"definitions":{"schemaArray":{"type":"array","items":{"$ref":"#"}},"linkDescription":{"title":"Link Description Object","type":"object","required":["href","rel"],"properties":{"href":{"description":"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing","type":"string"},"rel":{"description":"relation to the target resource of the link","type":"string"},"title":{"description":"a title for the link","type":"string"},"targetSchema":{"description":"JSON Schema describing the link target","$ref":"#"},"mediaType":{"description":"media type (as defined by RFC 2046) describing the link target","type":"string"},"method":{"description":"method for requesting the target of the link (e.g. for HTTP this might be \\"GET\\" or \\"DELETE\\")","type":"string"},"encType":{"description":"The media type in which to submit data along with the request","type":"string","default":"application/json"},"schema":{"description":"Schema describing the data to submit along with the request","$ref":"#"}}}}}')},1319:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')}},n={};function a(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var o=n[e]={id:e,loaded:!1,exports:{}};try{var i={id:e,module:o,factory:r[e],require:a};a.i.forEach((function(e){e(i)})),o=i.module,i.factory.call(o.exports,o,o.exports,i.require)}catch(e){throw o.error=e,e}return o.loaded=!0,o.exports}a.m=r,a.c=n,a.i=[],a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.hu=e=>e+"."+a.h()+".hot-update.js",a.hmrF=()=>"main."+a.h()+".hot-update.json",a.h=()=>"d358a8b4ef7493681e85",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",a.l=(r,n,o,i)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e,t,r,n={},o=a.c,i=[],s=[],l="idle",c=0,p=[];function d(e){l=e;for(var t=[],r=0;r0)return d("abort").then((function(){throw a[0]}));var o=d("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var i,s=d("apply"),l=function(e){i||(i=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)})),d("ready");break;case"ready":Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,v),b.parents=i,b.children=[],i=[],p.require=x})),a.hmrC={},a.hmrI={}})(),a.p="",(()=>{var e,t,r,n,o,i=a.hmrS_jsonp=a.hmrS_jsonp||{179:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=a.p+a.hu(t),o=new Error;a.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,r(o)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var o=n.pop(),i=o.id,s=o.chain,c=a.c[i];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:i};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:i};for(var p=0;p ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(g=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(g)return{error:g};if(y)for(h in d[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)a.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),d[h]=u)}r=void 0;for(var x,w=[],$=0;$0;){var o=r.pop(),s=a.c[o];if(s){var l={},d=s.hot._disposeHandlers;for($=0;$=0&&u.parents.splice(e,1))}}}for(var h in c)if(a.o(c,h)&&(s=a.c[h]))for(x=c[h],$=0;$=0&&s.children.splice(e,1)},apply:function(t){for(var r in d)a.o(d,r)&&(a.m[r]=d[r]);for(var n=0;n{for(var l in n)a.o(n,l)&&(r[l]=n[l],e&&e.push(l));i&&o.push(i),s[t]&&(s[t](),s[t]=void 0)},a.hmrI.jsonp=function(e,t){r||(r={},o=[],n=[],t.push(c)),a.o(r,e)||(r[e]=a.m[e])},a.hmrC.jsonp=function(e,s,p,d,u,h){u.push(c),t={},n=s,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),o=[],e.forEach((function(e){a.o(i,e)&&void 0!==i[e]?(d.push(l(e,h)),t[e]=!0):t[e]=!1})),a.f&&(a.f.jsonpHmr=function(e,r){t&&a.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},a.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(a.p+a.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();a(2915)})(); //# sourceMappingURL=rapidoc-min.js.map \ No newline at end of file diff --git a/dist/rapidoc-min.js.LICENSE.txt.gz b/dist/rapidoc-min.js.LICENSE.txt.gz index c0b9358e..6c94fb11 100644 Binary files a/dist/rapidoc-min.js.LICENSE.txt.gz and b/dist/rapidoc-min.js.LICENSE.txt.gz differ diff --git a/dist/rapidoc-min.js.gz b/dist/rapidoc-min.js.gz index 22dd0162..eac13115 100644 Binary files a/dist/rapidoc-min.js.gz and b/dist/rapidoc-min.js.gz differ diff --git a/dist/rapidoc-min.js.map b/dist/rapidoc-min.js.map index d8d7d4aa..108805c8 100644 --- a/dist/rapidoc-min.js.map +++ b/dist/rapidoc-min.js.map @@ -1 +1 @@ -{"version":3,"file":"rapidoc-min.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;ACKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0RA;AACA;AACA;AAIA;AAIA;AAIA;AAEA;;;AAIA;;AAEA;AACA;AACA;AACA;;;;;AAKA;AAGA;;AAGA;AACA;AACA;;AAIA;;AAGA;AACA;;;;AAIA;AAGA;AACA;;;AAIA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AAGA;;AAGA;AACA;;;AAKA;;AAKA;AA+BA;;;AAGA;;AAGA;AACA;AACA;AACA;;AAGA;AACA;;AAIA;;AAGA;;;;AAKA;AACA;AACA;AACA;AAGA;AAGA;;;;;;;AAQA;;;AAGA;;AAEA;;;;;;AASA;AACA;;AAEA;;;AAMA;;;AAGA;;AAEA;;AAIA;;AAGA;;AAEA;;AAIA;AAGA;;;;;;AA1FA;;;AA0IA;AACA;AAEA;;;AAGA;;;AAMA;;AAEA;;;;;AAOA;;AAEA;AAKA;;AAGA;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;;;AAMA;;;AAvFA;;;;;AC/eA;;;ACAA;;AAYA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AC3BA;;AAEA;AACA;;;AAGA;;;AAGA;;AAEA;;AAEA;;;;AAIA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;AAQA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAOA;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;ACrEA;;;;;;;;;;;;;;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;AAgDA;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTA;AAQA;;AAEA;;AAEA;;AAGA;AAYA;;AAEA;;AAEA;AACA;;;AAIA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0PA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7RA;AAQA;;AAEA;AACA;;;AAIA;AACA;;AAIA;AACA;AAEA;;AASA;AA0BA;AACA;AASA;AAyDA;AACA;AACA;AAMA;AACA;AACA;AAGA;;AAEA;;AAEA;AACA;AAGA;AACA;AAwBA;;;AAIA;AASA;AA4BA;AACA;AACA;AACA;AAMA;AACA;AACA;;;;AAIA;AAEA;AAKA;AAIA;AACA;AACA;AACA;;;AAIA;;AChUA;AACA;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA;AC3HA;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0EA;;AAwBA;AACA;;;;;;;;;;AAUA;;AAEA;AACA;;AAEA;;AAEA;AC3HA;;;;;;AD2HA;AACA;;AC9HA;ADiIA;;;;AAKA;AEzEA;AACA;;AAEA;AACA;;AAEA;ACnEA;AAIA;;;;AAKA;;;AD+DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHA;;AEjHA;AACA;AACA;;AAEA;;;;;;AAUA;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA;;AC3KA;;AAEA;;AAEA;;AAGA;AACA;;AAEA;;;AAIA;AACA;AACA;;AAGA;AACA;;AAGA;;;;;;AAOA;AACA;AACA;;;;AAIA;;;AAMA;AAOA;;;AAGA;AAEA;;AAEA;;;AAGA;;AAKA;ACtGA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;;;;;;;;;;;AAcA;ACdA;;;AAIA;ACMA;AACA;ACXA;;;AAIA;ADQA;AACA;;;AAGA;AACA;;AAEA;AACA;;;;;AAMA;AAQA;;;;AAIA;;AAEA;AACA;AACA;;AAEA;AACA;;;;AAIA;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AE8KA;AAOA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAIA;AA0DA;;;;AAIA;AACA;AACA;AACA;AACA;AAQA;AACA;AAEA;AAIA;AACA;AAKA;;AAEA;AACA;AACA;;AAEA;AAEA;AC9JA;ADkPA;AACA;;;AAGA;AAIA;AACA;;;;AAIA;AAEA;;;AAIA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAIA;AAOA;AACA;;AAEA;;;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAIA;AAIA;AACA;AAGA;;;AAKA;;AAEA;;;;;;;AAgBA;;;AAIA;AA0EA;AACA;AACA;AACA;;;AAOA;AAqBA;;AAEA;AAGA;AACA;AACA;;;;AAKA;AAGA;AACA;AACA;;;AAGA;;AAEA;;AAEA;;;;;;;AAOA;AACA;AACA;;AAEA;AACA;;;;;;AAWA;;AAoBA;;AAOA;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAIA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAKA;AAIA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AAEA;AACA;;AAIA;;;AAmBA;AAiBA;AACA;;;AAGA;AACA;;;;;;AAMA;AACA;AACA;AACA;;;;AAKA;AACA;;AAEA;AACA;AACA;AACA;;;;AAMA;AAgBA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AAGA;;;;;;AAMA;AACA;;;;;;;;AAQA;;;AAIA;AACA;AACA;;;AAGA;;;AAGA;AAEA;AAGA;AAEA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AAIA;;;AAOA;;AAIA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;;AAIA;;;AAMA;;;;AAMA;AACA;;;AAKA;;AAGA;;AAGA;;AAIA;;;;AAIA;AACA;;;AAGA;AAEA;AAIA;AACA;AACA;;AAGA;AAsBA;;AAEA;;AAEA;;AAGA;AACA;AACA;AAGA;AAEA;AACA;;;AAGA;AAIA;AAEA;;AAEA;AACA;AACA;;AAMA;AAMA;AACA;;AAIA;;AAEA;AACA;;;AAIA;;AAEA;;AAMA;;;;AAeA;;;;AAIA;AAEA;AAEA;AAIA;;;AAOA;AAGA;;;AAGA;;AAEA;AAGA;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEnhCA;AAQA;;AAEA;AACA;;;AAIA;;AAEA;;AAIA;AAIA;;;;;;AAOA;;AAMA;;AAKA;AAyBA;AACA;;;AAGA;;AAQA;AAIA;AAsCA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAGA;AAMA;;AAEA;AACA;AACA;;AAEA;AACA;AAEA;;;;AAKA;;;AAGA;;AAKA;AAGA;AACA;AAwBA;;;AASA;AAaA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;;AAMA;;AAEA;AACA;AACA;;AAOA;AACA;AACA;AACA;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnNA;AAOA;AACA;;AAGA;AA6DA;AAEA;AACA;AAGA;AACA;;;;AAWA;;;;;AAKA;;;AAGA;;;;AAIA;;;AAOA;AACA;;;;AAIA;AACA;;;;;AAKA;;;AAGA;;;;;;AAMA;AACA;;AAKA;;AAIA;AAIA;AACA;AACA;;;AAGA;AAEA;AACA;AAEA;;;;;;;AASA;AAEA;;;AAMA;;;AAGA;;;AAGA;AAEA;AACA;;AAIA;AAEA;AACA;;AAIA;;AAGA;AACA;;AAIA;AAEA;AAIA;AACA;AAEA;AAkBA;AAEA;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAGA;AACA;;AAEA;;;;;AAzCA;AACA;AAiDA;AASA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAvBA;AACA;AA0BA;AChZA;AACA;AACA;;AAEA;;;;AAQA;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA;ACpHA;AACA;AACA;AACA;AACA;AACA;;AAGA;;AAKA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAIA;AACA;;;AAGA;;;;AAKA;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;;;AAGA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAKA;AACA;AACA;AACA;;AAEA;;;;AAQA;;;AAfA;;AC3IA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;;AAGA;AACA;AACA;AACA;;AAEA;;;AAKA;;AAQA;AACA;AACA;AACA;;AAGA;AACA;;;AAKA;AAKA;AACA;AACA;;AAEA;;;;AAIA;;;AAVA;ACxCA;;AAEA;AAEA;;AAGA;AACA;AACA;;AAIA;AACA;;AAEA;AAFA;;;AAOA;AAEA;AACA;AAGA;AAIA;AAEA;AAMA;;;;AAOA;;AASA;;AAKA;;;;AChBA;AACA;;AAEA;AAGA;AACA;;;;;;;AASA;;;;;AAKA;AAEA;;AAEA;;AAKA;AAGA;;;;;;AAQA;AACA;AAGA;AAEA;AAEA;AACA;;AAIA;;AAEA;AACA;;AAEA;;AAEA;;;AAIA;AACA;AAEA;;AA1BA;;AAgCA;AAIA;;AAKA;;AAEA;;;;;;;;;;AAWA;;;;;;AAQA;AAGA;AACA;;AAIA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;AAKA;AAEA;;AAIA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AAIA;;AAEA;;AAOA;;;AAGA;AACA;;;AAGA;AACA;AACA;;AAGA;AACA;;;;;AAQA;;;AAIA;;;;;AAMA;;;;AAKA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAUA;;ACzPA;AAEA;AAiBA;AACA;;AAGA;AAMA;AAIA;;;AAsBA;ACzBA;AACA;AACA;AACA;AACA;;AAEA;;;AAIA;AAGA;;AAGA;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA;;AAEA;AAMA;;AAGA;;AAKA;;AAIA;AACA;;;AAGA;;;AAGA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAMA;;;;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAKA;;AAGA;;;;AAIA;;;;AAIA;AAGA;AACA;AAEA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AAMA;AACA;AACA;;;AAIA;;AAGA;AAMA;AACA;AACA;;;;AAnDA;;;;AC5OA;AAEA;;;;;;;;;;;;;ACOA;;;AAGA;;;;;;;AASA;AACA;;;;;AAMA;;;;;AAOA;AACA;;;AAGA;;;AAIA;AAGA;;;;AAKA;AAGA;;;;;ADtDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AECA;;;AAOA;;;;;;;;;AASA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;;AAMA;;;AAGA;AACA;;AAEA;;AASA;AACA;AACA;;;;AAMA;ACvBA;;;;AAKA;AACA;;;;;;AAMA;;;;;;;AC6JA;AACA;AACA;AACA;;AAEA;;AAMA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAGA;ACvSA;AACA;AAGA;AACA;;AAEA;;;;AAIA;AACA;;;AAKA;AAEA;;;AAGA;;;;AAOA;AACA;;;AAGA;;;AAGA;;AAEA;;AAEA;;;;;AASA;AACA;AAGA;AAGA;AACA;AAGA;;;;AAIA;;;;;;;;AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoSA;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;AChSA;;;;;;;;;ACxGA;;;;;;AAMA;AACA;AACA;;AAIA;;;;AAMA;AAKA;;AAEA;AAIA;;AAEA;AACA;;;;;AAKA;AACA;AACA;AACA;;;;;;AAMA;AAEA;AACA;AACA;;AAGA;AAGA;;AAEA;AACA;;AAEA;;;;AAKA;;AAKA;AAyBA;AACA;AAGA;AACA;;AAEA;;;;;AAKA;AACA;;;AAKA;AAEA;;;AAGA;;;;AAOA;AACA;;;AAGA;;AAEA;;;AAGA;;;;;AAKA;AACA;AAGA;AAGA;AACA;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTA","sources":["webpack://rapidoc/./src/styles/input-styles.js","webpack://rapidoc/./src/styles/flex-styles.js","webpack://rapidoc/./src/styles/table-styles.js","webpack://rapidoc/./src/styles/endpoint-styles.js","webpack://rapidoc/./src/styles/prism-styles.js","webpack://rapidoc/./src/styles/tab-styles.js","webpack://rapidoc/./src/styles/nav-styles.js","webpack://rapidoc/./src/styles/info-styles.js","webpack://rapidoc/./src/styles/custom-styles.js","webpack://rapidoc/./src/templates/security-scheme-template.js","webpack://rapidoc/./src/components/assets/copy-symbol.js","webpack://rapidoc/./src/templates/code-samples-template.js","webpack://rapidoc/./src/templates/callback-template.js","webpack://rapidoc/./src/styles/prism-languages-styles.js","webpack://rapidoc/./src/components/json-tree.js","webpack://rapidoc/./src/components/schema-tree.js","webpack://rapidoc/./src/components/tag-input.js","webpack://rapidoc/./src/components/assets/check-symbol.js","webpack://rapidoc/./src/components/breadcrumbs.js","webpack://rapidoc/./src/components/assets/corner-arrow-symbol.js","webpack://rapidoc/./src/components/toast-component.js","webpack://rapidoc/./src/components/assets/close-symbol.js","webpack://rapidoc/./src/components/base-url.js","webpack://rapidoc/./src/templates/server-template.js","webpack://rapidoc/./src/components/assets/languages/c-icon.js","webpack://rapidoc/./src/components/assets/languages/clojure-icon.js","webpack://rapidoc/./src/components/assets/languages/csharp-icon.js","webpack://rapidoc/./src/components/assets/languages/go-icon.js","webpack://rapidoc/./src/components/assets/languages/java-icon.js","webpack://rapidoc/./src/components/assets/languages/javascript-icon.js","webpack://rapidoc/./src/components/assets/languages/kotlin-icon.js","webpack://rapidoc/./src/components/assets/languages/node-icon.js","webpack://rapidoc/./src/components/assets/languages/objc-icon.js","webpack://rapidoc/./src/components/assets/languages/ocaml-icon.js","webpack://rapidoc/./src/components/assets/languages/php-icon.js","webpack://rapidoc/./src/components/assets/languages/python-icon.js","webpack://rapidoc/./src/components/assets/languages/r-icon.js","webpack://rapidoc/./src/components/assets/languages/ruby-icon.js","webpack://rapidoc/./src/components/assets/languages/shell-icon.js","webpack://rapidoc/./src/components/assets/languages/swift-icon.js","webpack://rapidoc/./src/templates/language-picker-template.js","webpack://rapidoc/./src/components/assets/three-dots.js","webpack://rapidoc/./src/components/api-request.js","webpack://rapidoc/./src/utils/schema-utils.js","webpack://rapidoc/./src/components/schema-table.js","webpack://rapidoc/./src/components/api-response.js","webpack://rapidoc/./src/components/content-copy-button.js","webpack://rapidoc/./src/templates/expanded-endpoint-template.js","webpack://rapidoc/./src/templates/components-template.js","webpack://rapidoc/./src/templates/overview-template.js","webpack://rapidoc/./src/templates/navbar-template.js","webpack://rapidoc/./src/templates/focused-endpoint-template.js","webpack://rapidoc/./src/templates/endpoint-template.js","webpack://rapidoc/./src/templates/logo-template.js","webpack://rapidoc/./src/templates/header-template.js","webpack://rapidoc/./src/templates/advance-search-template.js","webpack://rapidoc/./src/components/dialog-box.js","webpack://rapidoc/./src/utils/theme.js","webpack://rapidoc/./src/templates/main-body-template.js","webpack://rapidoc/./src/rapidoc.js","webpack://rapidoc/./src/rapidoc-mini.js","webpack://rapidoc/./src/templates/json-schema-viewer-template.js","webpack://rapidoc/./src/json-schema-viewer.js"],"sourcesContent":["import { css } from 'lit';\n\n/* eslint-disable max-len */\nexport default css`\n/* Button */\n.m-btn {\n display: flex;\n flex-direction: column;\n align-items: center;\n border-radius: var(--border-radius);\n font-weight: 400;\n padding: 7px 12px 6px;\n outline: none;\n border: none;\n text-align: center;\n white-space: nowrap;\n transition: background-color 0.2s;\n user-select: none;\n cursor: pointer;\n font-family: var(--font-medium);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n}\n.m-btn-primary {\n background-color: var(--primary-color);\n color: var(--primary-color-invert);\n}\n.m-btn-primary:hover {\n background-color: #000711;\n}\n.m-btn-secondary{\n background: #e7e9ee;\n color: #142032;\n}\n.m-btn-secondary:hover {\n background: #ccced8;\n}\n.m-btn-tertiary {\n background: #ffffff;\n color: #142032;\n}\n.m-btn-tertiary:hover {\n color: #000711;\n}\n.m-btn.thin-border { border-width: 1px; }\n.m-btn.large { padding:8px 14px; }\n.m-btn.small { padding:5px 12px; }\n.m-btn.tiny { padding:5px 6px; }\n.m-btn.circle { border-radius: 50%; }\n.m-btn.nav:hover { \n background-color: var(--nav-accent-color);\n}\n.m-btn:disabled{ \n background-color: var(--bg3);\n color: var(--fg3);\n border-color: var(--fg3);\n cursor: not-allowed;\n opacity: 0.4;\n}\n.toolbar-btn{\n cursor: pointer;\n padding: 4px;\n margin:0 2px;\n font-size: var(--font-size-small);\n min-width: 50px;\n color: var(--primary-color-invert);\n border-radius: 2px;\n border: none;\n background-color: var(--primary-color);\n}\n.copy-code {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n cursor: pointer;\n outline: inherit;\n display: block;\n}\n.copy-button{\n opacity: 0.3;\n}\n.check-button, .copy-button:hover{\n opacity: 1;\n}\n\ninput, textarea, select, pre {\n color: #000000;\n outline: none;\n background-color: var(--input-bg);\n border: 1px solid #B9B9B9;\n border-radius: var(--border-radius);\n}\nbutton {\n font-family: var(--font-regular);\n}\n\n/* Form Inputs */\npre,\nselect,\ntextarea,\ninput[type=\"file\"],\ninput[type=\"text\"],\ninput[type=\"password\"] {\n font-family:var(--font-mono); \n font-size: var(--font-size-mono);\n transition: border .2s;\n padding: 6px 8px;\n line-height: 140%;\n}\n\nselect {\n font-family: var(--font-regular);\n padding: 8px;\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E\"); \n background-position: calc(100% - 14px) center;\n background-repeat: no-repeat; \n background-size: 10px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n}\n\nselect:hover {\n border-color: var(--primary-color);\n}\n\ninput[type=\"text\"]:hover {\n border-color: var(--fg2);\n}\n\ntextarea::placeholder,\ninput[type=\"text\"]::placeholder,\ninput[type=\"password\"]::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n}\n\nselect:focus,\ntextarea:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"password\"]:focus,\ntextarea:active,\ninput[type=\"text\"]:active,\ninput[type=\"password\"]:active {\n border-color: none;\n}\n\ninput[type=\"file\"]{\n font-family: var(--font-regular);\n padding:2px;\n cursor:pointer;\n border: 1px solid var(--primary-color);\n min-height: calc(var(--font-size-small) + 18px);\n}\n\ninput[type=\"file\"]::-webkit-file-upload-button {\n font-family: var(--font-regular);\n font-size: var(--font-size-small);\n outline: none;\n cursor:pointer;\n padding: 3px 8px;\n border: 1px solid var(--primary-color);\n background-color: var(--primary-color);\n color: var(--primary-color-invert);\n border-radius: var(--border-radius);;\n -webkit-appearance: none;\n}\n\npre,\ntextarea {\n scrollbar-width: thin;\n scrollbar-color: var(--border-color) var(--input-bg);\n}\n\npre::-webkit-scrollbar,\ntextarea::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n\npre::-webkit-scrollbar-track,\ntextarea::-webkit-scrollbar-track {\n background:var(--input-bg);\n}\n \npre::-webkit-scrollbar-thumb,\ntextarea::-webkit-scrollbar-thumb {\n border-radius: 2px;\n background-color: var(--border-color);\n}\n\n.link {\n font-size:var(--font-size-small);\n text-decoration: underline;\n color:var(--rebel-pink);\n font-family:var(--font-mono);\n margin-bottom:2px;\n}\n\n/* Toggle Body */\ninput[type=\"checkbox\"] {\n appearance: none;\n display: inline-block;\n background-color: var(--light-bg);\n border: 1px solid var(--light-bg);\n border-radius: 9px;\n cursor: pointer;\n height: 18px;\n position: relative;\n transition: border .25s .15s, box-shadow .25s .3s, padding .25s;\n min-width: 36px;\n width: 36px;\n vertical-align: top;\n}\n/* Toggle Thumb */\ninput[type=\"checkbox\"]:after {\n position: absolute;\n background-color: var(--bg);\n border: 1px solid var(--light-bg);\n border-radius: 8px;\n content: '';\n top: 0px;\n left: 0px;\n right: 16px;\n display: block;\n height: 16px;\n transition: border .25s .15s, left .25s .1s, right .15s .175s;\n}\n\n/* Toggle Body - Checked */\ninput[type=\"checkbox\"]:checked {\n background-color: var(--green);\n border-color: var(--green);\n}\n/* Toggle Thumb - Checked*/\ninput[type=\"checkbox\"]:checked:after {\n border: 1px solid var(--green);\n left: 16px;\n right: 1px;\n transition: border .25s, left .15s .25s, right .25s .175s;\n}`;\n","import { css } from 'lit';\n\nexport default css`\n .flex,\n .row,\n .col,\n .row-api {\n display: flex;\n }\n .row-api {\n flex: 1fr 1fr;\n align-items: center;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-evenly;\n }\n .row {\n align-items: center;\n }\n .col {\n align-items: stretch;\n flex-direction: column;\n }\n .row-api-left {\n min-width: 288px;\n max-width: 720px;\n flex: 2 1 0%;\n justify-content: flex-end;\n padding-right: 32px;\n }\n .row-api-right {\n min-width: 288px;\n max-width: 702px;\n flex: 1;\n justify-content: flex-start;\n border-left: 1px solid #E7E9EE;\n }\n .row-api-right-box{\n text-align:left; \n direction:ltr; \n margin-block: 32px 16px; \n padding-left: 32px;\n }\n .clear-btn{\n margin-left: 32px\n }\n\n @media (max-width: 1280px) {\n .row-api {\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n }\n .row-api-right-box{\n padding-left: 0px;\n }\n .clear-btn{\n margin-left: 0px\n }\n\n .row-api-left,\n .row-api-right {\n max-width: unset;\n width: 100%;\n border: none;\n padding: 10px;\n }\n }\n`;\n","import { css } from 'lit';\n\nexport default css`\n.m-table {\n border-spacing: 0; \n border-collapse: separate;\n border: 1px solid var(--light-border-color);\n border-radius: var(--border-radius);\n margin: 0;\n max-width: 100%;\n direction: ltr;\n}\n.m-table tr:first-child td,\n.m-table tr:first-child th {\n border-top: 0 none;\n}\n.m-table td, \n.m-table th {\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 4px);\n padding: 4px 5px 4px;\n vertical-align: top;\n}\n\n.m-table.padded-12 td, \n.m-table.padded-12 th {\n padding: 12px;\n}\n\n.m-table td:not([align]), \n.m-table th:not([align]) {\n text-align: left;\n}\n\n.m-table th {\n color: var(--fg2);\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 18px);\n font-weight: 600;\n letter-spacing: normal;\n background-color: var(--bg2);\n vertical-align: bottom;\n border-bottom: 1px solid var(--light-border-color);\n}\n\n.m-table > tbody > tr > td,\n.m-table > tr > td {\n border-top: 1px solid var(--light-border-color);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.table-title {\n font-size: 16px;\n font-weight: 400;\n line-height: 18px;\n}\n`;\n","import { css } from 'lit';\n\nexport default css`\n.only-large-screen { display:none; }\n.endpoint-head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--font-size-small);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n}\n\n.endpoint-head .descr {\n font-size: var(--font-size-small);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n}\n\n.m-endpoint.expanded{margin-bottom:16px; }\n.m-endpoint > .endpoint-head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n}\n.m-endpoint > .endpoint-head.put:hover,\n.m-endpoint > .endpoint-head.put.expanded{\n color:var(--put-color); \n background-color:var(--put-bg-color);\n border-color:var(--put-border-color);\n}\n.m-endpoint > .endpoint-head.post:hover,\n.m-endpoint > .endpoint-head.post.expanded {\n color:var(--post-color);\n background-color:var(--post-bg-color);\n border-color:var(--post-border-color);\n}\n.m-endpoint > .endpoint-head.get:hover,\n.m-endpoint > .endpoint-head.get.expanded {\n color:var(--get-color); \n background-color:var(--get-bg-color);\n border-color:var(--get-border-color);\n}\n.m-endpoint > .endpoint-head.patch:hover,\n.m-endpoint > .endpoint-head.patch.expanded {\n color:var(--patch-color); \n background-color:var(--patch-bg-color);\n border-color:var(--patch-border-color);\n}\n.m-endpoint > .endpoint-head.delete:hover,\n.m-endpoint > .endpoint-head.delete.expanded {\n color:var(--delete-color); \n background-color:var(--delete-bg-color);\n border-color:var(--delete-border-color);\n}\n\n.m-endpoint > .endpoint-head.head:hover,\n.m-endpoint > .endpoint-head.head.expanded,\n.m-endpoint > .endpoint-head.patch:hover,\n.m-endpoint > .endpoint-head.patch.expanded,\n.m-endpoint > .endpoint-head.options:hover,\n.m-endpoint > .endpoint-head.options.expanded {\n border-color:var(--yellow); \n background-color:var(--light-yellow); \n}\n\n.m-endpoint > .endpoint-head.deprecated:hover,\n.m-endpoint > .endpoint-head.deprecated.expanded {\n border-color:var(--border-color); \n filter:opacity(0.6);\n}\n\n.m-endpoint .endpoint-body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n}\n.m-endpoint .endpoint-body.delete{ border-color:var(--delete-border-color); }\n.m-endpoint .endpoint-body.put{ border-color:var(--put-border-color); }\n.m-endpoint .endpoint-body.post{ border-color:var(--post-border-color); }\n.m-endpoint .endpoint-body.get{ border-color:var(--get-border-color); }\n.m-endpoint .endpoint-body.head,\n.m-endpoint .endpoint-body.patch,\n.m-endpoint .endpoint-body.options { \n border-color:var(--yellow); \n}\n\n.m-endpoint .endpoint-body.deprecated{ \n border-color:var(--border-color);\n filter:opacity(0.6);\n}\n\n.endpoint-head .deprecated{\n color: var(--light-fg);\n filter:opacity(0.6);\n}\n\n.summary{\n padding: 24px 16px;\n}\n.summary .title{\n font-size: 28px;\n margin-bottom: 24px;\n word-break: break-all;\n}\n\n.path-description p {\n font-size: 18px;\n line-height: 24px;\n margin: 0;\n}\n\n.endpoint-head .method{\n padding:2px 5px;\n vertical-align: middle;\n font-size:var(--font-size-small);\n height: calc(var(--font-size-small) + 16px);\n line-height: calc(var(--font-size-small) + 8px);\n width: 60px;\n border-radius: 2px;\n display:inline-block;\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n}\n.endpoint-head .method.delete{ border: 2px solid var(--delete-border-color);}\n.endpoint-head .method.put{ border: 2px solid var(--put-border-color); }\n.endpoint-head .method.post{ border: 2px solid var(--post-border-color); }\n.endpoint-head .method.get{ border: 2px solid var(--get-border-color); }\n.endpoint-head .method.get.deprecated{ border: 2px solid var(--border-color); }\n.endpoint-head .method.head,\n.endpoint-head .method.patch,\n.endpoint-head .method.options { \n border: 2px solid var(--yellow); \n}\n\n.req-resp-container {\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n}\n\n.view-mode-request,\napi-response.view-mode {\n flex:1; \n min-height:100px;\n padding: 0 16px 24px 16px;\n overflow:hidden;\n}\n.view-mode-request {\n border-width: 0;\n border-style:dashed;\n}\n\n.head .view-mode-request,\n.patch .view-mode-request,\n.options .view-mode-request { \n border-color:var(--yellow); \n}\n.put .view-mode-request { \n border-color:var(--put-color); \n}\n.post .view-mode-request { \n border-color:var(--post-color); \n}\n.get .view-mode-request { \n border-color:var(--get-color); \n}\n.delete .view-mode-request { \n border-color:var(--delete-color); \n}\n\nblockquote {\n padding: 20px;\n}\n\nblockquote h3 {\n margin: 0;\n padding: 0;\n}\n\nblockquote.warning {\n border-left: 3px solid #f0ad4e;\n background-color: #fcf8f2;\n}\n\nblockquote.warning h3 {\n color: #f0ad4e;\n}\n\nblockquote.danger {\n border-left: 3px solid #d9534f;\n background-color: #fdf7f7;\n}\n\nblockquote.danger h3 {\n color: #d9534f;\n}\n\nblockquote.info {\n border-left: 3px solid #5bc0de;\n background-color: #e3edf2;\n}\n\nblockquote.info h3 {\n color: #5bc0de;\n}\n\nblockquote.success {\n border-left: 3px solid #50af51;\n background-color: #f3f8f3;\n}\n\nblockquote.success h3 {\n color: #50af51;\n}\n\npre {\n overflow: scroll;\n max-height: 1000px;\n margin-top: 15px!important;\n margin-bottom: 15px!important;\n}\n\ntable {\n border-spacing: 0px;\n border-collapse: collapse;\n}\n\ntable th {\n border: 1px solid #dfe2e5;\n padding: 6px 13px;\n}\n\ntable td {\n border: 1px solid #dfe2e5;\n padding: 6px 13px;\n}\n\n@media only screen and (min-width: 1024px) {\n .only-large-screen { display:block; }\n .endpoint-head .path{\n font-size: var(--font-size-regular);\n }\n .endpoint-head .descr{\n display: flex;\n }\n .endpoint-head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n flex-wrap: nowrap;\n }\n api-response.view-mode {\n padding:16px;\n }\n .view-mode-request.row-layout {\n border-width:0 1px 0 0;\n padding:16px;\n }\n .summary{\n padding:24px 16px;\n }\n}\n`;\n","import { css } from 'lit';\n\nexport default css`\ncode[class*=\"language-\"],\npre[class*=\"language-\"] {\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n line-height: 1.5;\n tab-size: 2;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n padding: 1em;\n margin: .5em 0;\n overflow: auto;\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n white-space: normal;\n}\n\n.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n color: var(--light-fg)\n}\n\n.token.punctuation {\n color: var(--fg);\n}\n\n.token.tag,\n.token.attr-name,\n.token.namespace,\n.token.deleted {\n color:var(--pink);\n}\n\n.token.function-name {\n color: var(--rebel-pink);\n}\n\n.token.boolean,\n.token.number{\n color: var(--red);\n}\n\n.token.function {\n color: #2953B2;\n}\n\n.token.property,\n.token.class-name,\n.token.constant,\n.token.symbol {\n color: var(--code-property-color);\n}\n\n.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin {\n color: var(--code-keyword-color);\n}\n\n.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable { \n color: var(--green);\n}\n\n.token.operator,\n.token.entity,\n.token.url {\n color: var(--code-operator-color);\n}\n\n.token.important,\n.token.bold {\n font-weight: bold;\n}\n.token.italic {\n font-style: italic;\n}\n\n.token.entity {\n cursor: help;\n}\n\n.token.inserted {\n color: green;\n}\n`;\n","import { css } from 'lit';\n\nexport default css`\n.tab-panel {\n border: none;\n}\n.tab-buttons {\n height:30px;\n padding: 4px 4px 0 4px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n overflow-y: hidden;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n.tab-buttons::-webkit-scrollbar {\n height: 1px;\n background-color: var(--border-color);\n}\n.tab-btn {\n border: none;\n border-bottom: 1px solid transparent; \n color: var(--light-fg);\n background-color: transparent;\n white-space: nowrap;\n cursor:pointer;\n outline:none;\n font-family:var(--font-regular); \n width:100%;\n font-weight: bold;\n font-size: 16px;\n}\n.tab-btn.active {\n border-bottom: 1px solid #D71D55; \n font-weight:bold;\n color:#D71D55;\n}\n\n.tab-btn:hover {\n color:#c81e51;\n}\n.tab-content {\n margin:16px 0 0 0;\n position:relative;\n min-height: 50px;\n}\n`;\n","import { css } from 'lit';\n\nexport default css`\n.nav-bar-info:focus-visible,\n.nav-bar-tag:focus-visible,\n.nav-bar-path:focus-visible {\n outline: 1px solid;\n box-shadow: none;\n outline-offset: -4px;\n}\n.nav-bar-expand-all:focus-visible,\n.nav-bar-collapse-all:focus-visible,\n.nav-bar-tag-icon:focus-visible {\n outline: 1px solid;\n box-shadow: none;\n outline-offset: 2px;\n}\n.nav-bar {\n width:0;\n height:100%;\n overflow: hidden;\n color:var(--nav-text-color);\n background-color: var(--nav-bg-color);\n background-blend-mode: multiply;\n line-height: calc(var(--font-size-small) + 4px);\n display:none;\n position:relative;\n flex-direction:column;\n flex-wrap:nowrap;\n word-break:break-word;\n}\n::slotted([slot=nav-logo]){\n padding:16px 16px 0 16px;\n}\n.nav-scroll {\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay;\n scrollbar-width: thin;\n scrollbar-color: var(--nav-hover-bg-color) transparent;\n}\n\n.nav-bar-tag {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: row;\n}\n.nav-bar.read .nav-bar-tag-icon {\n display:none;\n}\n.nav-bar-paths-under-tag {\n overflow:hidden;\n transition: max-height .2s ease-out, visibility .3s;\n}\n.collapsed .nav-bar-paths-under-tag {\n visibility: hidden;\n}\n\n.nav-bar-expand-all {\n transform: rotate(90deg); \n cursor:pointer; \n margin-right:10px;\n}\n.nav-bar-collapse-all {\n transform: rotate(270deg); \n cursor:pointer;\n}\n.nav-bar-expand-all:hover, .nav-bar-collapse-all:hover {\n color: var(--primary-color);\n}\n\n.nav-bar-tag-icon {\n color: var(--nav-text-color);\n font-size: 20px; \n}\n.nav-bar-tag-icon:hover {\n color:var(--nav-hover-text-color);\n}\n.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-tag-icon::after {\n content: '⌵';\n width:16px;\n height:16px;\n text-align: center;\n display: inline-block;\n transform: rotate(-90deg);\n transition: transform 0.2s ease-out 0s;\n}\n.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after {\n content: '⌵';\n width:16px;\n height:16px;\n text-align: center;\n display: inline-block;\n transition: transform 0.2s ease-out 0s;\n}\n.nav-scroll::-webkit-scrollbar {\n width: var(--scroll-bar-width, 8px);\n}\n.nav-scroll::-webkit-scrollbar-track {\n background:transparent;\n}\n.nav-scroll::-webkit-scrollbar-thumb {\n background-color: var(--nav-hover-bg-color);\n}\n\n.nav-bar-tag {\n font-size: var(--font-size-regular);\n color: var(--nav-accent-color);\n border-left:4px solid transparent;\n font-weight:bold;\n padding: 15px 15px 15px 10px;\n text-transform: capitalize;\n}\n\n.nav-bar-components,\n.nav-bar-h1,\n.nav-bar-h2,\n.nav-bar-info,\n.nav-bar-tag,\n.nav-bar-path {\n display:flex;\n cursor: pointer;\n width: 100%;\n border: none;\n border-radius:4px; \n color: var(--nav-text-color);\n background: transparent;\n border-left:4px solid transparent;\n}\n\n.nav-bar-h1,\n.nav-bar-h2,\n.nav-bar-path {\n font-size: calc(var(--font-size-small) + 1px);\n padding: var(--nav-item-padding);\n}\n.nav-bar-path.small-font {\n font-size: var(--font-size-small);\n}\n\n.nav-bar-info {\n font-size: var(--font-size-regular);\n padding: 16px 10px;\n font-weight:bold;\n}\n.nav-bar-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n font-size: var(--font-size-small);\n color: var(--nav-text-color);\n padding: var(--nav-item-padding);\n font-weight:bold;\n}\n.nav-bar-section.operations {\n cursor:pointer;\n}\n.nav-bar-section.operations:hover {\n color:var(--nav-hover-text-color);\n background-color:var(--nav-hover-bg-color);\n}\n\n.nav-bar-section:first-child {\n display: none;\n}\n.nav-bar-h2 {margin-left:12px;}\n\n.nav-bar-h1.left-bar.active,\n.nav-bar-h2.left-bar.active,\n.nav-bar-info.left-bar.active,\n.nav-bar-tag.left-bar.active,\n.nav-bar-path.left-bar.active,\n.nav-bar-section.left-bar.operations.active {\n border-left:4px solid var(--nav-accent-color);\n color:var(--nav-hover-text-color);\n}\n\n.nav-bar-h1.colored-block.active,\n.nav-bar-h2.colored-block.active,\n.nav-bar-info.colored-block.active,\n.nav-bar-tag.colored-block.active,\n.nav-bar-path.colored-block.active,\n.nav-bar-section.colored-block.operations.active {\n background-color: var(--nav-accent-color);\n color: var(--nav-accent-text-color);\n border-radius: 0;\n}\n\n.nav-bar-h1:hover,\n.nav-bar-h2:hover,\n.nav-bar-info:hover,\n.nav-bar-tag:hover,\n.nav-bar-path:hover {\n color:var(--nav-hover-text-color);\n background-color:var(--nav-hover-bg-color);\n}\n`;\n","import { css } from 'lit';\n\nexport default css`\n#api-info {\n font-size: calc(var(--font-size-regular) - 1px);\n margin-top: 8px;\n}\n\n#api-info span:before {\n content: \"|\";\n display: inline-block;\n opacity: 0.5;\n width: 15px;\n text-align: center;\n}\n#api-info span:first-child:before {\n content: \"\";\n width: 0px;\n}\n`;\n","import { css } from 'lit';\n\n/*\nThis file is reserved for any custom css that developers want to add to\ncustomize their theme. Simply add your css to this file and yarn build.\n*/\n\nexport default css`\n.code-container {\n padding-inline: 32px;\n padding-top: 16px;\n}\n.code-container > code {\n font-size: 14px;\n line-height: 20px;\n}\n\n.request-card {\n border: 1px solid #CCCED8;\n border-radius: 4px;\n padding-block: 24px;\n margin-top: 24px;\n}\n\n.request-title-container {\n margin-left: 16px;\n}\n\n.request-title {\n margin-bottom: 8px;\n font-size: 18px;\n font-weight: 400;\n line-height: 18px;\n color: #4A4A4A;\n}\n\n.label-operation-container {\n text-align: left;\n direction: ltr;\n padding: 8px 0;\n color: var(--fg3);\n display: flex;\n width: 100%;\n overflow: hidden;\n}\n\n.label-operation-path-container {\n display: inline-flex;\n flex-direction: row;\n flex-grow: 1;\n justify-content: space-between;\n align-items: stretch;\n width: auto;\n height: 28px;\n left: 0;\n top: 0;\n border: 1px solid var(--border-color);\n border-radius: 0px 4px 4px 0px;\n margin: 4px 0px;\n flex-wrap: nowrap;\n overflow-x: auto;\n position: relative;\n scrollbar-color: transparent transparent;\n}\n\n.label-operation-path-container::-webkit-scrollbar {\n display: none;\n}\n\n.label-operation-path-item {\n flex: 0 0 auto;\n}\n\n.label-operation-method-container {\n display: inline-flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 4px 8px;\n width: auto;\n height: 28px;\n left: 0;\n top: 0;\n border-width: 1px 0px 1px 1px;\n border-style: solid;\n border-radius: 4px 0px 0px 4px;\n margin: 4px 0px;\n text-transform: uppercase;\n}\n\n.right-box-title {\n color: #4A4A4A;\n font-size: 18px;\n line-height: 20px;\n font-weight: 400;\n}\n\n.right-box-container {\n margin-top: 16px;\n}\n\n.right-box-label {\n color: var(--fg2);\n margin-bottom: 4px;\n font-size: 14px;\n font-weight: 400;\n}\n\n.right-box-input {\n width: 100%;\n height: 44px;\n}\n\n.server-template {\n position: relative;\n}\n\n.server-template-vars {\n position: absolute;\n top: calc(100% + 2px);\n \n background-color: var(--bg);\n\n border: 1px solid rgb(204, 206, 216);\n border-radius: 4px;\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\n \n z-index: 1;\n\n max-height: 300px;\n max-width: 100%;\n}\n\n.server-vars {\n padding: 10px 10px 0px 10px;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.language-picker {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n\n padding: 16px 0px;\n gap: 5px;\n}\n\n.language-picker-buttons {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n}\n\n.square-language-button {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 4px;\n gap: 5px;\n\n width: max-content;\n min-width: 50px;\n height: 50px;\n\n flex: none;\n order: 1;\n flex-grow: 0;\n\n background-color: rgba(0, 0, 0, 0);\n border: 1px solid rgba(0, 0, 0, 0);\n border-radius: 4px;\n\n color: var(--fg2);\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n\n cursor: pointer;\n}\n\n.square-language-button:hover {\n border: 1px solid rgb(59, 59, 59);\n}\n\n.square-language-button:active {\n border-color: rgb(59, 59, 59);\n box-shadow: rgb(255 255 255) 0px 0px 0px 1px, rgb(185 185 185) 0px 0px 0px 3px;\n}\n\n.rectangle-language-button {\n display: flex;\n gap: 5px;\n\n width: 100%;\n text-align: left;\n\n background-color: rgba(0, 0, 0, 0);\n border: 1px solid rgba(0, 0, 0, 0);\n border-radius: 0px;\n padding: 6px 6px;\n\n color: var(--fg2);\n cursor: pointer;\n}\n\n.rectangle-language-button:hover {\n background-color: rgb(248, 247, 252);\n}\n\n.rectangle-language-button:active {\n background-color: rgb(204, 206, 216);\n}\n\n.selected-language {\n border: 1px solid rgb(204, 206, 216);\n}\n\n.language-show-more {\n height: 30px;\n width: 30px;\n padding: 4px;\n\n border: 1px solid rgba(0, 0, 0, 0);\n border-radius: 4px;\n\n cursor: pointer;\n}\n\n.language-show-more:hover {\n border: 1px solid rgb(59, 59, 59);\n}\n\n.data-example{\n background: #FFF3F6;\n border: 1px solid #FFE0EF;\n border-radius: 4px;\n font-family: var(--font-mono);\n font-size: var(--font-size-small);\n width: max-content;\n padding: 0.2em 0.4em;\n}\n\n.data-example:hover{\n border: 1px solid #ffb5cb;\n}\n\n.language-show-more:active {\n border-color: rgb(59, 59, 59);\n box-shadow: rgb(255 255 255) 0px 0px 0px 1px, rgb(185 185 185) 0px 0px 0px 3px;\n}\n\n.more-languages-dropdown {\n position: absolute;\n top: 105%;\n right: 0%;\n min-width: 140px;\n\n background-color: var(--bg);\n\n border: 1px solid rgb(204, 206, 216);\n border-radius: 4px;\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\n \n z-index: 1;\n\n transition: visibility 0.3s linear,opacity 0.3s linear;\n}\n`;\n","/* eslint-disable arrow-body-style */\nimport { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport updateCodeExample from '../utils/update-code-example';\n\nconst codeVerifier = '731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890';\nconst codeChallenge = '4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc'; // Base64 encoded SHA-256\n\nconst localStorageKey = 'rapidoc';\n\nexport function applyApiKey(securitySchemeId, username = '', password = '', providedApikeyVal = '') {\n const securityObj = this.resolvedSpec.securitySchemes?.find((v) => (v.securitySchemeId === securitySchemeId));\n if (!securityObj) {\n return false;\n }\n let finalApiKeyValue = '';\n if (securityObj.scheme?.toLowerCase() === 'basic') {\n if (username) {\n finalApiKeyValue = `Basic ${Buffer.from(`${username}:${password}`, 'utf8').toString('base64')}`;\n }\n } else if (providedApikeyVal) {\n securityObj.value = providedApikeyVal;\n finalApiKeyValue = `${securityObj.scheme?.toLowerCase() === 'bearer' ? 'Bearer ' : ''}${providedApikeyVal}`;\n }\n if (finalApiKeyValue) {\n securityObj.finalKeyValue = finalApiKeyValue;\n this.requestUpdate();\n return true;\n }\n return false;\n}\n\nexport function onClearAllApiKeys() {\n this.resolvedSpec.securitySchemes?.forEach((v) => {\n v.user = '';\n v.password = '';\n v.value = '';\n v.finalKeyValue = '';\n });\n this.requestUpdate();\n}\n\nfunction getPersistedApiKeys() {\n return JSON.parse(localStorage.getItem(localStorageKey)) || {};\n}\n\nfunction setPersistedApiKeys(obj) {\n localStorage.setItem(localStorageKey, JSON.stringify(obj));\n}\n\nexport function recoverPersistedApiKeys() {\n const rapidocLs = getPersistedApiKeys.call(this);\n Object.values(rapidocLs).forEach((p) => {\n applyApiKey.call(this, p.securitySchemeId, p.username, p.password, p.value);\n });\n}\n\nfunction onApiKeyChange(securitySchemeId) {\n let apiKeyValue = '';\n const securityObj = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === securitySchemeId));\n if (securityObj) {\n const trEl = this.shadowRoot.getElementById(`security-scheme-${securitySchemeId}`);\n if (trEl) {\n if (securityObj.type && securityObj.scheme && securityObj.type === 'http' && securityObj.scheme.toLowerCase() === 'basic') {\n const userVal = trEl.querySelector('.api-key-user').value.trim();\n const passwordVal = trEl.querySelector('.api-key-password').value.trim();\n applyApiKey.call(this, securitySchemeId, userVal, passwordVal);\n } else {\n apiKeyValue = trEl.querySelector('.api-key-input').value.trim();\n applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\n }\n if (this.persistAuth === 'true') {\n const rapidocLs = getPersistedApiKeys.call(this);\n rapidocLs[securitySchemeId] = securityObj;\n setPersistedApiKeys.call(this, rapidocLs);\n }\n }\n }\n}\n\n// Updates the OAuth Access Token (API key), so it reflects in UI and gets used in TRY calls\nfunction updateOAuthKey(securitySchemeId, accessToken, tokenType = 'Bearer') {\n const securityObj = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === securitySchemeId));\n securityObj.finalKeyValue = `${(tokenType.toLowerCase() === 'bearer' ? 'Bearer' : (tokenType.toLowerCase() === 'mac' ? 'MAC' : tokenType))} ${accessToken}`;\n this.requestUpdate();\n}\n\n/* eslint-disable no-console */\n// Gets Access-Token in exchange of Authorization Code\nasync function fetchAccessToken(tokenUrl, clientId, clientSecret, redirectUrl, grantType, authCode, securitySchemeId, authFlowDivEl, sendClientSecretIn = 'header', scopes = null, username = null, password = null) {\n const respDisplayEl = authFlowDivEl ? authFlowDivEl.querySelector('.oauth-resp-display') : undefined;\n const urlFormParams = new URLSearchParams();\n const headers = new Headers();\n urlFormParams.append('grant_type', grantType);\n if (grantType === 'authorization_code') {\n urlFormParams.append('client_id', clientId);\n urlFormParams.append('client_secret', clientSecret);\n }\n if (grantType !== 'client_credentials' && grantType !== 'password') {\n urlFormParams.append('redirect_uri', redirectUrl);\n }\n if (authCode) {\n urlFormParams.append('code', authCode);\n urlFormParams.append('code_verifier', codeVerifier); // for PKCE\n }\n if (sendClientSecretIn === 'header') {\n headers.set('Authorization', `Basic ${Buffer.from(`${clientId}:${clientSecret}`, 'utf8').toString('base64')}`);\n } else if (grantType !== 'authorization_code') {\n urlFormParams.append('client_id', clientId);\n urlFormParams.append('client_secret', clientSecret);\n }\n if (grantType === 'password') {\n urlFormParams.append('username', username);\n urlFormParams.append('password', password);\n }\n if (scopes) {\n urlFormParams.append('scope', scopes);\n }\n\n try {\n const resp = await fetch(tokenUrl, { method: 'POST', headers, body: urlFormParams });\n const tokenResp = await resp.json();\n if (resp.ok) {\n if (tokenResp.token_type && tokenResp.access_token) {\n updateOAuthKey.call(this, securitySchemeId, tokenResp.access_token, tokenResp.token_type);\n if (respDisplayEl) {\n respDisplayEl.innerHTML = 'Access Token Received';\n }\n return true;\n }\n } else {\n if (respDisplayEl) {\n respDisplayEl.innerHTML = `${tokenResp.error_description || tokenResp.error_description || 'Unable to get access token'}`;\n }\n return false;\n }\n } catch (err) {\n if (respDisplayEl) {\n respDisplayEl.innerHTML = 'Failed to get access token';\n }\n return false;\n }\n}\n\n// Gets invoked when it receives the Authorization Code from the other window via message-event\nasync function onWindowMessageEvent(msgEvent, winObj, tokenUrl, clientId, clientSecret, redirectUrl, grantType, sendClientSecretIn, securitySchemeId, authFlowDivEl) {\n sessionStorage.removeItem('winMessageEventActive');\n winObj.close();\n if (msgEvent.data.fake) {\n return;\n }\n if (!msgEvent.data) {\n console.warn('RapiDoc: Received no data with authorization message');\n }\n if (msgEvent.data.error) {\n console.warn('RapiDoc: Error while receiving data');\n }\n if (msgEvent.data) {\n if (msgEvent.data.responseType === 'code') {\n // Authorization Code flow\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrl, grantType, msgEvent.data.code, securitySchemeId, authFlowDivEl, sendClientSecretIn);\n } else if (msgEvent.data.responseType === 'token') {\n // Implicit flow\n updateOAuthKey.call(this, securitySchemeId, msgEvent.data.access_token, msgEvent.data.token_type);\n }\n }\n}\n\n// code_challenge generator for PKCE flow\n// TODO: Implement dynamic generation of code-challenge based on code-verifier\n/*\nasync function generateCodeChallenge() {\n const encoder = new TextEncoder();\n const data = encoder.encode(codeVerifier);\n const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array\n // const utf8Decoder = new TextDecoder();\n // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash));\n const b64EncodedSha256 = base64encode(sha256Hash);\n return b64EncodedSha256;\n}\n*/\n\nasync function onInvokeOAuthFlow(securitySchemeId, flowType, authUrl, tokenUrl, e) {\n const authFlowDivEl = e.target.closest('.oauth-flow');\n const clientId = authFlowDivEl.querySelector('.oauth-client-id') ? authFlowDivEl.querySelector('.oauth-client-id').value.trim() : '';\n const clientSecret = authFlowDivEl.querySelector('.oauth-client-secret') ? authFlowDivEl.querySelector('.oauth-client-secret').value.trim() : '';\n const username = authFlowDivEl.querySelector('.api-key-user') ? authFlowDivEl.querySelector('.api-key-user').value.trim() : '';\n const password = authFlowDivEl.querySelector('.api-key-password') ? authFlowDivEl.querySelector('.api-key-password').value.trim() : '';\n const sendClientSecretIn = authFlowDivEl.querySelector('.oauth-send-client-secret-in') ? authFlowDivEl.querySelector('.oauth-send-client-secret-in').value.trim() : 'header';\n const checkedScopeEls = [...authFlowDivEl.querySelectorAll('.scope-checkbox:checked')];\n const pkceCheckboxEl = authFlowDivEl.querySelector(`#${securitySchemeId}-pkce`);\n const state = (`${Math.random().toString(36).slice(2, 9)}random${Math.random().toString(36).slice(2, 9)}`);\n const nonce = (`${Math.random().toString(36).slice(2, 9)}random${Math.random().toString(36).slice(2, 9)}`);\n // const codeChallenge = await generateCodeChallenge(codeVerifier);\n const redirectUrlObj = new URL(`${window.location.origin}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))}/${this.oauthReceiver}`);\n let grantType = '';\n let responseType = '';\n let newWindow;\n\n // clear previous error messages\n const errEls = [...authFlowDivEl.parentNode.querySelectorAll('.oauth-resp-display')];\n errEls.forEach((v) => { v.innerHTML = ''; });\n\n if (flowType === 'authorizationCode' || flowType === 'implicit') {\n const authUrlObj = new URL(authUrl);\n if (flowType === 'authorizationCode') {\n grantType = 'authorization_code';\n responseType = 'code';\n } else if (flowType === 'implicit') {\n responseType = 'token';\n }\n const authCodeParams = new URLSearchParams(authUrlObj.search);\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\n if (selectedScopes) {\n authCodeParams.set('scope', selectedScopes);\n }\n authCodeParams.set('client_id', clientId);\n authCodeParams.set('redirect_uri', redirectUrlObj.toString());\n authCodeParams.set('response_type', responseType);\n authCodeParams.set('state', state);\n authCodeParams.set('nonce', nonce);\n if (pkceCheckboxEl && pkceCheckboxEl.checked) {\n authCodeParams.set('code_challenge', codeChallenge);\n authCodeParams.set('code_challenge_method', 'S256');\n }\n authCodeParams.set('show_dialog', true);\n authUrlObj.search = authCodeParams.toString();\n // If any older message-event-listener is active then fire a fake message to remove it (these are single time listeners)\n if (sessionStorage.getItem('winMessageEventActive') === 'true') {\n window.postMessage({ fake: true }, this);\n }\n setTimeout(() => {\n newWindow = window.open(authUrlObj.toString());\n if (!newWindow) {\n console.error(`RapiDoc: Unable to open ${authUrlObj.toString()} in a new window`);\n } else {\n sessionStorage.setItem('winMessageEventActive', 'true');\n window.addEventListener(\n 'message',\n (msgEvent) => onWindowMessageEvent.call(this, msgEvent, newWindow, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, sendClientSecretIn, securitySchemeId, authFlowDivEl),\n { once: true },\n );\n }\n }, 10);\n } else if (flowType === 'clientCredentials') {\n grantType = 'client_credentials';\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, '', securitySchemeId, authFlowDivEl, sendClientSecretIn, selectedScopes);\n } else if (flowType === 'password') {\n grantType = 'password';\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, '', securitySchemeId, authFlowDivEl, sendClientSecretIn, selectedScopes, username, password);\n }\n}\n/* eslint-enable no-console */\n\n/* eslint-disable indent */\n\nfunction oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, authFlow, defaultScopes = [], receiveTokenIn = 'header') {\n let { authorizationUrl, tokenUrl, refreshUrl } = authFlow;\n const pkceOnly = authFlow['x-pkce-only'] || false;\n const isUrlAbsolute = (url) => (url.indexOf('://') > 0 || url.indexOf('//') === 0);\n // Calculcate base URL\n const url = new URL(this.selectedServer.computedUrl);\n const baseUrl = url.origin;\n\n if (refreshUrl && !isUrlAbsolute(refreshUrl)) {\n refreshUrl = `${baseUrl}/${refreshUrl.replace(/^\\//, '')}`;\n }\n if (tokenUrl && !isUrlAbsolute(tokenUrl)) {\n tokenUrl = `${baseUrl}/${tokenUrl.replace(/^\\//, '')}`;\n }\n if (authorizationUrl && !isUrlAbsolute(authorizationUrl)) {\n authorizationUrl = `${baseUrl}/${authorizationUrl.replace(/^\\//, '')}`;\n }\n let flowNameDisplay;\n if (flowName === 'authorizationCode') {\n flowNameDisplay = 'Authorization Code Flow';\n } else if (flowName === 'clientCredentials') {\n flowNameDisplay = 'Client Credentials Flow';\n } else if (flowName === 'implicit') {\n flowNameDisplay = 'Implicit Flow';\n } else if (flowName === 'password') {\n flowNameDisplay = 'Password Flow';\n } else {\n flowNameDisplay = flowName;\n }\n return html`\n
    \n
    ${flowNameDisplay}
    \n ${authorizationUrl\n ? html`
    Auth URL ${authorizationUrl}
    `\n : ''\n }\n ${tokenUrl\n ? html`
    Token URL ${tokenUrl}
    `\n : ''\n }\n ${refreshUrl\n ? html`
    Refresh URL ${refreshUrl}
    `\n : ''\n }\n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'implicit' || flowName === 'password'\n ? html`\n ${authFlow.scopes\n ? html`\n Scopes \n
    \n ${Object.entries(authFlow.scopes).map((scopeAndDescr, index) => html`\n
    \n \n \n
    \n `)}\n
    \n `\n : ''\n }\n ${flowName === 'password'\n ? html`\n
    \n \n \n
    `\n : ''\n }\n
    \n ${flowName === 'authorizationCode'\n ? html`\n
    \n \n \n
    \n `\n : ''\n }\n \n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'password'\n ? html`\n \n `\n : ''\n }\n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'implicit' || flowName === 'password'\n ? html`\n `\n : ''\n }\n
    \n
    \n `\n : ''\n }\n
    \n `;\n}\n\nfunction removeApiKey(securitySchemeId) {\n const securityObj = this.resolvedSpec.securitySchemes?.find((v) => (v.securitySchemeId === securitySchemeId));\n securityObj.user = '';\n securityObj.password = '';\n securityObj.value = '';\n securityObj.finalKeyValue = '';\n if (this.persistAuth === 'true') {\n const rapidocLs = getPersistedApiKeys.call(this);\n delete rapidocLs[securityObj.securitySchemeId];\n setPersistedApiKeys.call(this, rapidocLs);\n }\n this.requestUpdate();\n}\n\nfunction handleApiKeyChange(e, securitySchemeId, apiKey) {\n if (apiKey === '') removeApiKey.call(this, securitySchemeId);\n else onApiKeyChange.call(this, securitySchemeId);\n\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n}\n\nexport default function securitySchemeTemplate() {\n if (!this.resolvedSpec) { return ''; }\n const providedApiKeys = this.resolvedSpec.securitySchemes?.filter((v) => (v.finalKeyValue));\n if (!providedApiKeys) {\n return;\n }\n return html`\n
    \n
    Header Auth
    \n\n ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0\n ? html`\n
    \n ${this.resolvedSpec.securitySchemes.map((v) => html`\n
    \n
    ${v.name}
    \n ${v.description\n ? html`\n
    \n ${unsafeHTML(marked(v.description || ''))}\n
    `\n : ''\n }\n\n ${(v.type.toLowerCase() === 'apikey') || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer')\n ? html`\n
    \n ${v.in !== 'cookie'\n ? html`\n { handleApiKeyChange.call(this, e, v.securitySchemeId, e.target.value); }}\"\n >`\n : html` cookies cannot be set from here`\n }\n
    `\n : ''\n }\n ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic'\n ? html`\n
    \n Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password.\n
    \n
    \n {\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }}\n >\n {\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }}\n >\n \n
    `\n : ''\n }\n
    \n ${v.type.toLowerCase() === 'oauth2'\n ? html`\n
    \n ${Object.keys(v.flows).map((f) => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))}\n
    \n `\n : ''\n }\n `)}\n
    `\n : ''\n }\n \n \n \n
    \n`;\n}\n\nexport function pathSecurityTemplate(pathSecurity) {\n if (this.resolvedSpec.securitySchemes && pathSecurity) {\n const orSecurityKeys1 = [];\n if (Array.isArray(pathSecurity)) {\n if (pathSecurity.length === 0) {\n return '';\n }\n } else {\n return '';\n }\n pathSecurity.forEach((pSecurity) => {\n const andSecurityKeys1 = [];\n const andKeyTypes = [];\n if (Object.keys(pSecurity).length === 0) {\n orSecurityKeys1.push({\n securityTypes: 'None',\n securityDefs: [],\n });\n } else {\n Object.keys(pSecurity).forEach((pathSecurityKey) => {\n let pathScopes = '';\n const s = this.resolvedSpec.securitySchemes.find((ss) => ss.securitySchemeId === pathSecurityKey);\n if (pSecurity[pathSecurityKey] && Array.isArray(pSecurity[pathSecurityKey])) {\n pathScopes = pSecurity[pathSecurityKey].join(', ');\n }\n if (s) {\n andKeyTypes.push(s.typeDisplay);\n andSecurityKeys1.push({ ...s, ...({ scopes: pathScopes }) });\n }\n });\n orSecurityKeys1.push({\n securityTypes: andKeyTypes.length > 1 ? `${andKeyTypes[0]} + ${andKeyTypes.length - 1} more` : andKeyTypes[0],\n securityDefs: andSecurityKeys1,\n });\n }\n });\n return html`
    \n
    \n \n ${orSecurityKeys1.map((orSecurityItem1, i) => html`\n ${orSecurityItem1.securityTypes\n ? html`\n ${i !== 0 ? html`
    OR
    ` : ''}\n
    \n
    \n ${this.updateRoute === 'true' && this.allowAuthentication === 'true'\n ? html` ${orSecurityItem1.securityTypes} `\n : html`${orSecurityItem1.securityTypes}`\n }\n
    \n
    \n ${orSecurityItem1.securityDefs.length > 1 ? html`
    Requires all of the following
    ` : ''}\n
    \n ${orSecurityItem1.securityDefs.map((andSecurityItem, j) => {\n const scopeHtml = html`${andSecurityItem.scopes !== ''\n ? html`\n
    \n Required scopes:\n
    \n
    \n ${andSecurityItem.scopes.split(',').map((scope, cnt) => html`${cnt === 0 ? '' : '┃'}${scope}`)}\n
    \n
    `\n : ''\n }`;\n\n return html`\n ${andSecurityItem.type === 'oauth2'\n ? html`\n
    \n ${orSecurityItem1.securityDefs.length > 1\n ? html`${j + 1}.  `\n : 'Needs'\n }\n OAuth Token ${andSecurityItem.securitySchemeId} in Authorization header\n ${scopeHtml}\n
    `\n : andSecurityItem.type === 'http'\n ? html`\n
    \n ${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`}\n ${andSecurityItem.scheme === 'basic' ? 'Base 64 encoded username:password' : 'Bearer Token'} in Authorization header\n ${scopeHtml}\n
    `\n : html`\n
    \n ${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`}\n Token in ${andSecurityItem.name} ${andSecurityItem.in}\n ${scopeHtml}\n
    `\n }`;\n })}\n
    \n
    \n
    \n `\n : ''\n }\n `)\n }\n
    \n `;\n }\n return '';\n}\n\n/* eslint-enable indent */\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function copySymbol() {\nreturn html`\n \n \n \n \n`;\n}\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport Prism from 'prismjs';\nimport { copyToClipboard } from '../utils/common-utils';\nimport copySymbol from '../components/assets/copy-symbol';\n\n/* eslint-disable indent */\nexport default function codeSamplesTemplate(xCodeSamples) {\n return html`\n
    CODE SAMPLES
    \n
    {\n if (!e.target.classList.contains('tab-btn')) { return; }\n const clickedTab = e.target.dataset.tab;\n\n const tabButtons = [...e.currentTarget.querySelectorAll('.tab-btn')];\n const tabContents = [...e.currentTarget.querySelectorAll('.tab-content')];\n tabButtons.forEach((tabBtnEl) => tabBtnEl.classList[tabBtnEl.dataset.tab === clickedTab ? 'add' : 'remove']('active'));\n tabContents.forEach((tabBodyEl) => { tabBodyEl.style.display = (tabBodyEl.dataset.tab === clickedTab ? 'block' : 'none'); });\n }\n }\">\n
    \n ${xCodeSamples.map((v, i) => html``)}\n
    \n ${xCodeSamples.map((v, i) => html`\n
    \n \n
    ${Prism.languages[v.lang?.toLowerCase()] ? unsafeHTML(Prism.highlight(v.source, Prism.languages[v.lang?.toLowerCase()], v.lang?.toLowerCase())) : v.source}
    \n
    `)\n }\n
    \n `;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function callbackTemplate(callbacks) {\n return html`\n
    CALLBACKS
    \n ${Object.entries(callbacks).map((kv) => html`\n
    \n ${kv[0]}\n ${Object.entries(kv[1]).map((pathObj) => html`\n
    \n
    \n ${Object.entries(pathObj[1]).map((method) => html`\n
    \n
    \n
    \n \n ${method[0]} \n
    \n ${pathObj[0]} \n
    \n
    \n \n\n \n
    \n
    \n `)}\n
    \n
    \n `)}\n
    \n `)}\n `;\n}\n/* eslint-enable indent */\n","import { css } from 'lit';\n\nconst ShellStyle = css`\n.shell-token.shell-function {\n color: #2953B2;\n}\n\n.shell-token.shell-method {\n color: #4A4A4A;\n}\n\n.shell-token.shell-punctuation {\n color: #4A4A4A;\n}\n\n.shell-token.shell-string {\n color: var(--green);\n}\n\n`;\n\nconst JavascriptStyle = css`\n.node-token.node-builtin {\n color: #4A4A4A;\n}\n\n.node-token.node-keyword {\n color: #2953B2;\n}\n\n.node-token.node-punctuation {\n color: #4A4A4A;\n}\n\n.node-token.node-operator {\n color: #4A4A4A;\n}\n\n.node-token.node-string {\n color: var(--green);\n}\n\n.node-token.node-property {\n color: var(--green);\n}\n`;\n\nconst RubyStyle = css``;\n\nconst PhpStyle = css``;\n\nconst JsonStyle = css`\n.json-token.json-boolean {\n color: #2953B2;\n}\n\n.json-token.json-keyword {\n color: #2953B2;\n}\n\n.json-token.json-punctuation {\n color: #4A4A4A;\n}\n\n.json-token.json-comment {\n color: #4A4A4A;\n}\n\n.json-token.json-string {\n color: var(--green);\n}\n\n.json-token.json-property {\n color: var(--green);\n}\n`;\n\nconst PythonStyle = css`\n.python-token.python-builtin {\n color: #4A4A4A;\n}\n\n.python-token.python-keyword {\n color: #2953B2;\n}\n\n.python-token.python-punctuation {\n color: #4A4A4A;\n}\n\n.python-token.python-string {\n color: var(--green);\n}\n`;\n\nexport default [\n ShellStyle,\n JavascriptStyle,\n RubyStyle,\n PhpStyle,\n PythonStyle,\n JsonStyle,\n];\n","import { LitElement, html, css } from 'lit';\nimport { copyToClipboard } from '../utils/common-utils';\nimport FontStyles from '../styles/font-styles';\nimport BorderStyles from '../styles/border-styles';\nimport InputStyles from '../styles/input-styles';\nimport CustomStyles from '../styles/custom-styles';\nimport copySymbol from './assets/copy-symbol';\n\nexport default class JsonTree extends LitElement {\n static get properties() {\n return {\n data: { type: Object },\n renderStyle: { type: String, attribute: 'render-style' },\n };\n }\n\n static get styles() {\n return [\n FontStyles,\n BorderStyles,\n InputStyles,\n css`\n :host{\n display:flex;\n }\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\n .json-tree {\n position: relative;\n font-family: var(--font-mono);\n font-size: var(--font-size-small);\n display:inline-block;\n overflow:hidden;\n word-break: break-all;\n flex:1;\n line-height: calc(var(--font-size-small) + 6px);\n min-height: 40px;\n direction: ltr; \n text-align: left;\n }\n\n .open-bracket {\n display:inline-block;\n padding: 0 20px 0 0;\n cursor:pointer;\n border: 1px solid transparent;\n border-radius:3px;\n }\n .close-bracket {\n border: 1px solid transparent;\n border-radius:3px;\n display:inline-block;\n }\n .open-bracket:hover {\n color:var(--primary-color);\n background-color:var(--hover-color);\n border: 1px solid var(--border-color);\n }\n .open-bracket.expanded:hover ~ .inside-bracket {\n border-left: 1px solid var(--fg3);\n }\n .open-bracket.expanded:hover ~ .close-bracket {\n color:var(--primary-color);\n }\n .inside-bracket {\n padding-left:12px;\n overflow: hidden;\n border-left:1px dotted var(--border-color);\n }\n .open-bracket.collapsed + .inside-bracket,\n .open-bracket.collapsed + .inside-bracket + .close-bracket {\n display:none;\n }\n\n .string{color:var(--green);}\n .number{color:var(--blue);}\n .null{color:var(--red);}\n .boolean{color:var(--purple);}\n .object{color:var(--fg)}\n .toolbar {\n position: absolute;\n top:5px;\n right:6px;\n display:flex;\n padding:2px;\n align-items: center;\n }`,\n CustomStyles,\n ];\n }\n\n /* eslint-disable indent */\n render() {\n return html`\n
    \n
    \n \n
    \n ${this.generateTree(this.data, true)}\n
    \n `;\n }\n\n generateTree(data, isLast = false) {\n if (data === null) {\n return html`
    null
    `;\n }\n if (typeof data === 'object' && (data instanceof Date === false)) {\n const detailType = Array.isArray(data) ? 'array' : 'pure_object';\n if (Object.keys(data).length === 0) {\n return html`${(Array.isArray(data) ? '[ ],' : '{ },')}`;\n }\n return html`\n
    ${detailType === 'array' ? '[' : '{'}
    \n
    \n ${Object.keys(data).map((key, i, a) => html`\n
    \n ${detailType === 'pure_object' ? html`\"${key}\":` : ''}\n ${this.generateTree(data[key], i === (a.length - 1))}\n
    `)\n }\n
    \n
    ${detailType === 'array' ? ']' : '}'}${isLast ? '' : ','}
    \n `;\n }\n return (typeof data === 'string' || data instanceof Date)\n ? html`\"${data}\"${isLast ? '' : ','}`\n : html`${data}${isLast ? '' : ','}`;\n }\n /* eslint-enable indent */\n\n toggleExpand(e) {\n const openBracketEl = e.target;\n if (e.target.classList.contains('open-bracket')) {\n if (openBracketEl.classList.contains('expanded')) {\n openBracketEl.classList.replace('expanded', 'collapsed');\n e.target.innerHTML = e.target.classList.contains('array') ? '[...]' : '{...}';\n } else {\n openBracketEl.classList.replace('collapsed', 'expanded');\n e.target.innerHTML = e.target.classList.contains('array') ? '[' : '{';\n }\n }\n }\n}\n// Register the element with the browser\nif (!customElements.get('json-tree')) customElements.define('json-tree', JsonTree);\n","import { LitElement, html, css } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport FontStyles from '../styles/font-styles';\nimport SchemaStyles from '../styles/schema-styles';\nimport BorderStyles from '../styles/border-styles';\nimport CustomStyles from '../styles/custom-styles';\n\nexport default class SchemaTree extends LitElement {\n static get properties() {\n return {\n data: { type: Object },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\n };\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\n if (!this.schemaDescriptionExpanded || !'true false'.includes(this.schemaDescriptionExpanded)) { this.schemaDescriptionExpanded = 'false'; }\n if (!this.schemaHideReadOnly || !'true false'.includes(this.schemaHideReadOnly)) { this.schemaHideReadOnly = 'true'; }\n if (!this.schemaHideWriteOnly || !'true false'.includes(this.schemaHideWriteOnly)) { this.schemaHideWriteOnly = 'true'; }\n }\n\n static get styles() {\n return [\n FontStyles,\n SchemaStyles,\n BorderStyles,\n css`\n .tree {\n font-size:var(--font-size-small);\n text-align: left;\n direction: ltr;\n line-height:calc(var(--font-size-small) + 6px);\n }\n .tree .tr:hover{\n background-color:var(--hover-color);\n }\n .collapsed-all-descr .tr:not(.expanded-descr) {\n overflow: hidden;\n max-height:calc(var(--font-size-small) + 8px);\n }\n .tree .key {\n max-width: 300px;\n }\n .key.deprecated .key-label {\n color: var(--red);\n }\n .tr.expanded:hover > .td.key > .open-bracket {\n color: var(--primary-color);\n }\n .tr.expanded:hover + .inside-bracket {\n border-left: 1px solid var(--fg3);\n }\n .tr.expanded:hover + .inside-bracket + .close-bracket {\n color: var(--primary-color);\n }\n .inside-bracket.xxx-of-option {\n border-left: 1px solid transparent;\n }\n .open-bracket{\n display:inline-block;\n padding: 0 20px 0 0;\n cursor:pointer;\n border: 1px solid transparent;\n border-radius:3px;\n }\n .open-bracket:hover {\n color:var(--primary-color);\n background-color:var(--hover-color);\n border: 1px solid var(--border-color);\n }\n .close-bracket{\n display:inline-block;\n font-family: var(--font-mono);\n }\n .tr.collapsed + .inside-bracket,\n .tr.collapsed + .inside-bracket + .close-bracket{\n overflow: hidden;\n display:none;\n }\n .inside-bracket.object,\n .inside-bracket.array {\n border-left: 1px dotted var(--border-color);\n }`,\n CustomStyles,\n ];\n }\n\n /* eslint-disable indent */\n render() {\n return html`\n
    this.handleAllEvents(e)}\">\n
    \n
    ${this.data?.['::type'] || ''}
    \n ${this.allowSchemaDescriptionExpandToggle === 'true'\n ? html`\n
    \n
    \n ${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}\n
    `\n : ''\n }\n
    \n ${unsafeHTML(marked(this.data?.['::description'] || ''))}\n ${this.data\n ? html`\n ${this.generateTree(\n this.data['::type'] === 'array' ? this.data['::props'] : this.data,\n this.data['::type'],\n this.data['::array-type'] || '',\n )}`\n : html` Schema not found `\n }\n
    \n `;\n }\n\n generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '') {\n if (this.schemaHideReadOnly === 'true') {\n if (dataType === 'array') {\n if (readOrWrite === 'readonly') {\n return;\n }\n }\n if (data?.['::readwrite'] === 'readonly') {\n return;\n }\n }\n if (this.schemaHideWriteOnly === 'true') {\n if (dataType === 'array') {\n if (readOrWrite === 'writeonly') {\n return;\n }\n }\n if (data?.['::readwrite'] === 'writeonly') {\n return;\n }\n }\n\n if (!data) {\n return html`
    \n ${key.replace('::OPTION~', '')}\n ${\n dataType === 'array'\n ? html` [ ] `\n : dataType === 'object'\n ? html` { } `\n : html` schema undefined `\n }\n
    `;\n }\n if (Object.keys(data).length === 0) {\n return html`${key}:{ }`;\n }\n let keyLabel = '';\n let keyDescr = '';\n if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) {\n keyLabel = key.replace('::', '').replace('~', ' ');\n } else if (key.startsWith('::OPTION')) {\n const parts = key.split('~');\n [, keyLabel, keyDescr] = parts;\n } else {\n keyLabel = key;\n }\n\n const leftPadding = 12;\n const minFieldColWidth = 400 - (indentLevel * leftPadding);\n let openBracket = '';\n let closeBracket = '';\n const newSchemaLevel = data['::type']?.startsWith('xxx-of') ? schemaLevel : (schemaLevel + 1);\n // const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' ? indentLevel : (indentLevel + 1);\n const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' || key.startsWith('::OPTION') ? indentLevel : (indentLevel + 1);\n if (data['::type'] === 'object') {\n if (dataType === 'array') {\n if (schemaLevel < this.schemaExpandLevel) {\n openBracket = html`[{`;\n } else {\n openBracket = html`[{...}]`;\n }\n closeBracket = '}]';\n } else {\n if (schemaLevel < this.schemaExpandLevel) {\n openBracket = html`{`;\n } else {\n openBracket = html`{...}`;\n }\n closeBracket = '}';\n }\n } else if (data['::type'] === 'array') {\n if (dataType === 'array') {\n const arrType = arrayType !== 'object' ? arrayType : '';\n if (schemaLevel < this.schemaExpandLevel) {\n openBracket = html`[[ ${arrType} `;\n } else {\n openBracket = html`[[...]]`;\n }\n closeBracket = ']]';\n } else {\n if (schemaLevel < this.schemaExpandLevel) {\n openBracket = html`[`;\n } else {\n openBracket = html`[...]`;\n }\n closeBracket = ']';\n }\n }\n if (typeof data === 'object') {\n return html`\n
    \n
    \n ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION')\n ? html` ${keyLabel}${keyDescr}`\n : keyLabel === '::props' || keyLabel === '::ARRAY~OF'\n ? ''\n : schemaLevel > 0\n ? html`\n ${data['::deprecated'] ? '✗' : ''}\n ${keyLabel.replace(/\\*$/, '')}${keyLabel.endsWith('*') ? html`*` : ''}${readOrWrite === 'readonly' ? html` 🆁` : readOrWrite === 'writeonly' ? html` 🆆` : readOrWrite}:\n `\n : ''\n }\n ${openBracket}\n
    \n
    ${unsafeHTML(marked(description || ''))}
    \n
    \n
    \n ${Array.isArray(data) && data[0]\n ? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}`\n : html`\n ${Object.keys(data).map((dataKey) => html`\n ${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey)\n ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'\n ? html`${this.generateTree(\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\n data[dataKey]['::type'],\n data[dataKey]['::array-type'] || '',\n dataKey,\n data[dataKey]['::description'],\n newSchemaLevel,\n newIndentLevel,\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\n )}`\n : ''\n : html`${this.generateTree(\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\n data[dataKey]['::type'],\n data[dataKey]['::array-type'] || '',\n dataKey,\n data[dataKey]?.['::description'] || '',\n newSchemaLevel,\n newIndentLevel,\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\n )}`\n }\n `)}\n `\n }\n
    \n ${data['::type'] && data['::type'].includes('xxx-of')\n ? ''\n : html`
    ${closeBracket}
    `\n }\n `;\n }\n\n // For Primitive types and array of Primitives\n // eslint-disable-next-line no-unused-vars\n const [type, primitiveReadOrWrite, constraint, defaultValue, allowedValues, pattern, schemaDescription, schemaTitle, deprecated] = data.split('~|~');\n if (primitiveReadOrWrite === '🆁' && this.schemaHideReadOnly === 'true') {\n return;\n }\n if (primitiveReadOrWrite === '🆆' && this.schemaHideWriteOnly === 'true') {\n return;\n }\n const dataTypeCss = type.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+]/g, '').substring(0, 4).toLowerCase();\n const descrExpander = `${constraint || defaultValue || allowedValues || pattern ? `` : ''}`;\n let finalReadWriteText = '';\n let finalReadWriteTip = '';\n if (dataType === 'array') {\n if (readOrWrite === 'readonly') {\n finalReadWriteText = '🆁';\n finalReadWriteTip = 'Read-Only';\n } else if (readOrWrite === 'writeonly') {\n finalReadWriteText = '🆆';\n finalReadWriteTip = 'Write-Only';\n }\n } else if (primitiveReadOrWrite === '🆁') {\n finalReadWriteText = '🆁';\n finalReadWriteTip = 'Read-Only';\n } else if (primitiveReadOrWrite === '🆆') {\n finalReadWriteText = '🆆';\n finalReadWriteTip = 'Write-Only';\n }\n\n return html`\n
    \n
    \n ${deprecated ? html`` : ''}\n ${keyLabel.endsWith('*')\n ? html`${keyLabel.substring(0, keyLabel.length - 1)}*:`\n : key.startsWith('::OPTION')\n ? html`${keyLabel}${keyDescr}`\n : html`${keyLabel}:`\n }\n \n ${dataType === 'array' ? `[${type}]` : `${type}`}\n ${finalReadWriteText}\n \n
    \n
    \n ${description || schemaTitle || schemaDescription\n ? html`${html`\n ${unsafeHTML(marked(dataType === 'array'\n ? `${descrExpander} ${description}`\n : schemaTitle\n ? `${descrExpander} ${schemaTitle}: ${schemaDescription}`\n : `${descrExpander} ${schemaDescription}`))}\n `\n }`\n : ''\n } \n ${constraint ? html`
    Constraints: ${constraint}
    ` : ''}\n ${defaultValue ? html`
    Default: ${defaultValue}
    ` : ''}\n ${allowedValues ? html`
    ${type === 'const' ? 'Value' : 'Allowed'}: ${allowedValues}
    ` : ''}\n ${pattern ? html`
    Pattern: ${pattern}
    ` : ''}\n
    \n
    \n `;\n }\n /* eslint-enable indent */\n\n handleAllEvents(e) {\n if (e.target.classList.contains('open-bracket')) {\n this.toggleObjectExpand(e);\n } else if (e.target.classList.contains('schema-multiline-toggle')) {\n this.schemaDescriptionExpanded = (this.schemaDescriptionExpanded === 'true' ? 'false' : 'true');\n } else if (e.target.classList.contains('descr-expand-toggle')) {\n const trEl = e.target.closest('.tr');\n if (trEl) {\n trEl.classList.toggle('expanded-descr');\n trEl.style.maxHeight = trEl.scrollHeight;\n }\n }\n }\n\n toggleObjectExpand(e) {\n const rowEl = e.target.closest('.tr');\n if (rowEl.classList.contains('expanded')) {\n rowEl.classList.replace('expanded', 'collapsed');\n e.target.innerHTML = e.target.classList.contains('array-of-object')\n ? '[{...}]'\n : e.target.classList.contains('array-of-array')\n ? '[[...]]'\n : e.target.classList.contains('array')\n ? '[...]'\n : '{...}';\n } else {\n rowEl.classList.replace('collapsed', 'expanded');\n e.target.innerHTML = e.target.classList.contains('array-of-object')\n ? '[{'\n : e.target.classList.contains('array-of-array')\n ? `[[ ${e.target.dataset.arrayType}`\n : e.target.classList.contains('object')\n ? '{'\n : '[';\n }\n }\n}\nif (!customElements.get('schema-tree')) customElements.define('schema-tree', SchemaTree);\n","import { LitElement, html, css } from 'lit';\n\nexport default class TagInput extends LitElement {\n /* eslint-disable indent */\n render() {\n let tagItemTmpl = '';\n if (Array.isArray(this.value)) {\n tagItemTmpl = html`${this.value\n .filter((v) => typeof v === 'string' && v.trim() !== '')\n .map((v) => html`${v}`)\n }`;\n }\n return html`\n
    \n ${tagItemTmpl}\n this.afterPaste(e)}\" @keydown=\"${this.afterKeyDown}\" @blur=\"${this.onBlur}\" placeholder=\"${this.placeholder || ''}\">\n
    \n `;\n }\n /* eslint-enable indent */\n\n static get properties() {\n return {\n placeholder: { type: String },\n value: { type: Array, attribute: 'value' },\n };\n }\n\n attributeChangedCallback(name, oldVal, newVal) {\n if (name === 'value') {\n if (newVal && oldVal !== newVal) {\n this.value = newVal.split(',').filter((v) => v.trim() !== '');\n }\n }\n super.attributeChangedCallback(name, oldVal, newVal);\n }\n\n afterPaste(e) {\n const clipboardData = e.clipboardData || window.clipboardData;\n const pastedData = clipboardData.getData('Text');\n const pastedArray = pastedData ? pastedData.split(',').filter((v) => v.trim() !== '') : '';\n if (pastedArray) {\n if (Array.isArray(this.value)) {\n this.value = [...this.value, ...pastedArray];\n } else {\n this.value = pastedArray;\n }\n }\n e.preventDefault();\n }\n\n afterKeyDown(e) {\n if (e.keyCode === 13) {\n e.stopPropagation();\n e.preventDefault();\n if (e.target.value) {\n if (Array.isArray(this.value)) {\n this.value = [...this.value, e.target.value];\n } else {\n this.value = [e.target.value];\n }\n e.target.value = '';\n }\n } else if (e.keyCode === 8) {\n if (e.target.value.length === 0) {\n if (Array.isArray(this.value) && this.value.length > 0) {\n this.value.splice(-1);\n this.value = [...this.value];\n }\n }\n }\n }\n\n onBlur(e) {\n if (e.target.value) {\n if (Array.isArray(this.value)) {\n this.value = [...this.value, e.target.value];\n } else {\n this.value = [e.target.value];\n }\n e.target.value = '';\n }\n }\n\n static get styles() {\n return [css`\n .tags {\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--border-color);\n cursor:text;\n overflow:hidden;\n background:var(--input-bg);\n }\n .tag, .editor {\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg3);\n color:var(--fg3);\n border-radius:var(--border-radius);\n word-break: break-all;\n font-size: var(--font-size-small);\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor {\n flex:1;\n border:1px solid transparent;\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n background:transparent;\n font-size: calc(var(--font-size-small) + 1px);\n }\n .editor:focus-visible {\n outline: 1px solid;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }\n `];\n }\n}\n// Register the element with the browser\nif (!customElements.get('tag-input')) customElements.define('tag-input', TagInput);\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function checkSymbol(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n \n `;\n}\n","import { LitElement, html, css } from 'lit';\n\nimport CustomStyles from '../styles/custom-styles';\nimport cornerArrowSymbol from './assets/corner-arrow-symbol';\n\nexport default class Breadcrumbs extends LitElement {\n static get properties() {\n return {\n headers: { type: Array },\n };\n }\n\n static get styles() {\n return [\n css`\n .container {\n display: flex;\n align-items: center;\n }\n\n .header {\n font-size: 16px;\n font-weight: 400;\n line-height: 18px;\n color: #A1A8B3;\n text-decoration: none;\n }\n\n .header:hover {\n color: #4A596B;\n }\n\n .header:active {\n color: #0C1522;\n }\n\n .caret {\n margin: 0 2px;\n }\n\n .tooltip {\n position: relative;\n display: inline-block;\n }\n\n .tooltip .tooltiptext {\n visibility: hidden;\n width: max-content;\n max-width: 150px;\n padding: 8px;\n\n border-radius: 4px;\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\n\n background-color: #FFFFFF;\n color: #A1A8B3;\n \n position: absolute;\n transform: translateX(-50%);\n top: 135%;\n left: 50%;\n z-index: 1;\n }\n\n .tooltip:hover .tooltiptext {\n visibility: visible;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .tooltiptext::after {\n content: \"\";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: transparent transparent #fff transparent;\n }\n\n @media(max-width: 1024px) {\n .header {\n font-size: 12px;\n line-height: 16px;\n }\n }\n `,\n CustomStyles,\n ];\n }\n\n render() {\n let headers = this.headers.map(({ title, link }) => ({\n title: title.slice(0, 25) + (title.length > 25 ? '...' : ''),\n link,\n hasTooltip: (title.length > 25),\n tooltip: [{ title, link }],\n }));\n\n if (headers.length > 3) {\n const ellipsis = headers.slice(1, -1).reduce((acc, curr) => {\n acc.tooltip.push({ title: curr.tooltip[0].title, link: curr.tooltip[0].link });\n return acc;\n }, { title: '...', link: '', hasTooltip: true, tooltip: [] });\n\n headers = [headers[0], ellipsis, headers[headers.length - 1]];\n }\n\n return html`\n
    \n ${headers.map((header, index) => html`\n ${index > 0 ? html`\n \n \n \n ` : ''}\n
    \n ${header.title}\n ${header.hasTooltip ? html`\n
    \n ${header.tooltip.map((content) => html`\n
    \n ${header.tooltip.length > 1 ? cornerArrowSymbol() : ''}\n ${content.title}\n
    \n `)}\n
    ` : ''}\n
    \n `)}\n
    \n `;\n }\n}\n\nif (!customElements.get('bread-crumbs')) customElements.define('bread-crumbs', Breadcrumbs);\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function cornerArrowSymbol(style) {\nreturn html`\n
    \n \n \n \n \n
    \n`;\n}\n","/* eslint-disable max-len */\nimport { LitElement, html, css } from 'lit';\nimport checkSymbol from './assets/check-symbol';\nimport closeSymbol from './assets/close-symbol';\n\n// eslint-disable-next-line import/prefer-default-export\nexport class Toast extends LitElement {\n static properties = {\n tone: { type: String },\n tones: { type: {} },\n message: { type: String },\n active: { type: Boolean },\n };\n\n constructor(tone, message) {\n super();\n this.active = true;\n this.message = message ?? '';\n this.tone = tone ?? 'positive';\n this.tones = {\n info: {\n borderColor: css`#7CBBEA`,\n bgColor: css`#DEECF7`,\n icon: checkSymbol,\n },\n positive: {\n borderColor: css`#83D187`,\n bgColor: css`#DFF1E0`,\n icon: checkSymbol,\n },\n warning: {\n borderColor: css`#F5AE70`,\n bgColor: css`#FFEBD7`,\n icon: checkSymbol,\n },\n critical: {\n borderColor: css`#F49494`,\n bgColor: css`#F8E3E3`,\n icon: checkSymbol,\n },\n };\n }\n\n firstUpdated() {\n const onFadeOut = (event) => {\n if (this.renderRoot.querySelectorAll('.toast-active').length > 0 && event.animationName === 'fadeOut') {\n this.onClose();\n }\n };\n this.renderRoot.getElementById('toast').addEventListener('animationend', onFadeOut);\n this.renderRoot.getElementById('toast').addEventListener('webkitAnimationEnd', onFadeOut);\n }\n\n onClose() {\n this.active = false;\n const options = {\n detail: 'closed toast',\n bubbles: true,\n composed: true,\n };\n this.dispatchEvent(new CustomEvent('closed-toast', options));\n }\n\n render() {\n return html`\n \n
    \n ${this.tones[this.tone].icon({ width: 24, height: 24 })}\n

    ${this.message}

    \n
    \n
    \n ${closeSymbol({})}\n
    \n
    \n `;\n }\n\n static get styles() {\n return [\n css`\n .close-button {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n padding: 0px;\n width: 44px;\n height: 36px;\n }\n\n .close-button:hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n .toast-icon-text {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0px 0px 0px 4px;\n gap: 12px;\n width: auto;\n min-height: 40px;\n }\n\n .text {\n overflow-wrap: break-word;\n font-style: normal;\n font-family:var(--font-regular); \n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n display: flex;\n align-items: center;\n letter-spacing: 0.002em;\n color: black;\n margin: 0;\n }\n\n .toast {\n opacity: 0;\n pointer-events: none;\n display: none;\n }\n\n .toast-active {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 16px 16px 16px 20px;\n gap: 12px;\n min-width: 16.125rem;\n width: auto;\n border: 1px solid;\n box-shadow: 0px 12px 16px rgba(0, 0, 0, 0.16);\n border-radius: 4px;\n position: fixed;\n overflow: hidden;\n pointer-events: all;\n bottom: 32px;\n right: 50%;\n transform: translateX(50%);\n z-index: 1001;\n -webkit-animation:\n fadeIn .3s ease,\n slideIn .3s ease,\n fadeOut .3s ease 10s forwards;\n animation:\n fadeIn .3s ease,\n slideIn .3s ease,\n fadeOut .3s ease 10s forwards;\n }\n\n @media only screen and (min-width: 768px) {\n .toast-active {\n right: 96px;\n transform: none;\n }\n }\n \n @keyframes slideIn {\n from { transform: translateY(0, 10px) }\n }\n\n @keyframes fadeIn {\n from { opacity: 0 }\n }\n \n @keyframes fadeOut {\n to {\n opacity: 0;\n pointer-events: none;\n display: none;\n }\n }\n\n @-webkit-keyframes slideIn {\n from { transform: translateY(0, 10px) }\n }\n\n @-webkit-keyframes fadeIn {\n from { opacity: 0 }\n }\n \n @-webkit-keyframes fadeOut {\n to {\n opacity: 0;\n pointer-events: none;\n display: none;\n }\n }\n `,\n ];\n }\n}\n\nif (!customElements.get('toast-component')) customElements.define('toast-component', Toast);\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function closeSymbol(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { LitElement, html, css } from 'lit';\n// eslint-disable-next-line import/extensions\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { joinURLandPath } from '../utils/url';\nimport checkSymbol from './assets/check-symbol';\nimport copySymbol from './assets/copy-symbol';\nimport './toast-component';\n\n/* eslint-disable indent */\n// eslint-disable-next-line import/prefer-default-export\nexport class BaseUrl extends LitElement {\n static properties = {\n id: { type: String },\n url: { type: String },\n path: { type: String },\n computedUrl: { type: String },\n copied: { type: Boolean },\n showButton: { type: Boolean },\n showToast: { type: Boolean },\n };\n\n constructor(id, url, path, computedUrl, variables) {\n super();\n this.id = id;\n this.url = url;\n this.path = path;\n this.computedUrl = computedUrl;\n this.variables = variables;\n this.copied = false;\n this.showButton = false;\n this.showToast = false;\n this.addEventListener('closed-toast', () => { this.showToast = false; });\n }\n\n reset() {\n this.copied = false;\n this.showButton = false;\n }\n\n willUpdate(changedProperties) {\n if (changedProperties.has('id')) {\n this.reset();\n }\n }\n\n onButtonClick() {\n navigator.clipboard.writeText(joinURLandPath(this.computedUrl, this.path));\n this.copied = true;\n this.showToast = true;\n }\n\n onTextClick() {\n navigator.clipboard.writeText(joinURLandPath(this.computedUrl, this.path));\n this.showToast = true;\n }\n\n onMouseOver() {\n this.showButton = true;\n }\n\n onMouseLeave() {\n this.showButton = false;\n this.copied = false;\n }\n\n parseURL() {\n if (!this.variables) return this.url;\n\n let { url } = this;\n const spanVar = '{var}';\n\n for (const [key, value] of Object.entries(this.variables)) {\n const regex = new RegExp(`{${key}}`, 'g');\n url = url.replace(regex, spanVar.replace('{var}', value.value));\n }\n\n return joinURLandPath(url, this.path);\n }\n\n render() {\n return html`\n
    \n
    \n ${html`${unsafeHTML(this.parseURL())}`}\n \n
    \n \n
    \n ${\n this.showToast\n ? html``\n : ''\n }\n `;\n }\n\n static get styles() {\n return [\n css`\n .svg-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: flex-start;\n padding: 0px 8px 0px 0px;\n gap: 10px;\n width: 57px;\n height: 20px;\n background: linear-gradient(270deg, #FFFFFF 51.22%, rgba(255, 255, 255, 0) 104.88%);\n }\n\n .url {\n flex: 1 0 auto;\n padding: 4px 8px;\n font-family: var(--font-mono);\n font-size: var(--font-size-mono)\n }\n\n .url:hover {\n cursor: pointer;\n }\n\n .variable {\n background-color: rgb(248, 247, 252);\n border: 1px solid rgb(204, 206, 216);\n border-radius: 4px;\n padding: 0px 2px;\n }\n\n .container {\n height: 42px;\n font-size:14px;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin: 4px 0px;\n position: relative;\n }\n\n .container slot {\n visibility: hidden;\n }\n\n .container:hover slot {\n visibility: visible;\n }\n\n .container::-webkit-scrollbar {\n display: none;\n }\n\n button {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n cursor: pointer;\n outline: inherit;\n right: 0;\n display: block;\n position: -webkit-sticky;\n position: sticky;\n }\n\n .copy-container {\n width: inherit;\n height: inherit;\n opacity: 0;\n filter: alpha(opacity = 0);\n position: absolute;\n top:0; bottom:0; left:0; right:0;\n display: block;\n z-index: 2;\n background: transparent;\n }\n\n .content-copy-container {\n width: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-wrap: nowrap;\n font-size: 14px;\n white-space: nowrap;\n overflow-y: hidden;\n overflow-x: auto;\n align-items: center;\n }\n\n .content-copy-container::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n .content-copy-container::-webkit-scrollbar-track {\n background:var(--input-bg);\n }\n \n .content-copy-container::-webkit-scrollbar-thumb {\n border-radius: 2px;\n background-color: var(--border-color);\n }\n `,\n ];\n }\n}\n\nif (!customElements.get('base-url')) customElements.define('base-url', BaseUrl);\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport '../components/base-url';\nimport updateCodeExample from '../utils/update-code-example';\n\nexport function setApiServer(serverUrl) {\n const serverObj = this.resolvedSpec?.servers.find((s) => s.url === serverUrl);\n if (!serverObj) {\n return false;\n }\n this.selectedServer = serverObj;\n this.requestUpdate();\n this.dispatchEvent(new CustomEvent('api-server-change', {\n bubbles: true,\n composed: true,\n detail: {\n selectedServer: serverObj,\n },\n }));\n return true;\n}\n\nfunction onApiServerVarChange(e, serverObj) {\n const inputEls = [...e.currentTarget.closest('.server-vars').querySelectorAll('input, select')];\n let tempUrl = serverObj.url;\n inputEls.forEach((v) => {\n serverObj.variables[v.dataset.var].value = v.value;\n const regex = new RegExp(`{${v.dataset.var}}`, 'g');\n tempUrl = tempUrl.replace(regex, v.value.trim());\n });\n serverObj.computedUrl = tempUrl;\n\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n\n this.requestUpdate();\n}\n\n/* eslint-disable indent */\nfunction serverVarsTemplate() {\n // const selectedServerObj = this.resolvedSpec.servers.find((v) => (v.url === this.selectedServer));\n return this.selectedServer && this.selectedServer.variables\n ? html`\n
    \n ${Object.entries(this.selectedServer.variables).map((kv) => html`\n
    \n
    ${kv[0]}
    \n
    \n ${kv[1].enum\n ? html`\n { onApiServerVarChange.call(this, e, this.selectedServer); }}\n >\n ${Object.entries(kv[1].enum).map((e) => (kv[1].default === e[1]\n ? html`\n `\n : html`\n `\n ))}\n `\n : html`\n { onApiServerVarChange.call(this, e, this.selectedServer); }}\n />`}\n
    \n
    \n ${kv[1].description\n ? html`
    ${unsafeHTML(marked(kv[1].description))}
    `\n : ''\n }\n `)}\n
    \n `\n : '';\n}\n\nexport default function serverTemplate() {\n if (!this.resolvedSpec || this.resolvedSpec.specLoadError) { return ''; }\n return html`\n
    \n Base URL\n
    \n ${this.selectedServer?.computedUrl\n ? html`\n \n
    \n ${serverVarsTemplate.call(this)}\n
    \n
    \n
    `\n : ''\n }\n \n
    `;\n}\n/* eslint-enable indent */\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function cIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function clojureIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function csharpIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function goIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function javaIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function javascriptIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function kotlinIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function nodeIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function objcIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function ocamlIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function phpIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function pythonIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function rIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function rubyIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function shellIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n \n \n \n \n \n \n \n \n \n \n `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function swiftIcon(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","import { html } from 'lit';\nimport HTTPSnippet from 'httpsnippet';\nimport languageIcons from '../components/assets/languages/language-icons';\nimport threeDots from '../components/assets/three-dots';\n\nfunction onClickMoreLanguages() {\n this.showMoreLanguages = !this.showMoreLanguages;\n}\n\nfunction onLeaveMoreLanguages() {\n this.showMoreLanguages = false;\n}\n\nfunction moreLanguagesTemplate(numberOfButtons, languages) {\n if (numberOfButtons >= languages.length) return '';\n\n return html`\n
    \n
    ${threeDots()}
    \n
    \n ${languages.slice(numberOfButtons).map((language) => html`\n { this.selectedLanguage = language.key; this.requestUpdate(); }}\n >\n ${languageIcons[language.key] ? languageIcons[language.key]({ width: 15, height: 15 }) : ''}\n ${language.title}\n \n `)}\n
    \n
    \n `;\n}\n\nexport default function languagePickerTemplate() {\n const selectedLanguages = ['node', 'shell', 'python'];\n const languages = HTTPSnippet.availableTargets().filter((language) => selectedLanguages.includes(language.key));\n const numberOfButtons = 3;\n\n return html`\n
    \n Language\n
    \n
    \n ${languages.slice(0, numberOfButtons).map((language) => html`\n { this.selectedLanguage = language.key; this.requestUpdate(); }}\n >\n ${languageIcons[language.key] ? languageIcons[language.key]() : ''}\n ${language.title}\n \n `)}\n
    \n ${moreLanguagesTemplate.call(this, numberOfButtons, languages)}\n
    \n
    `;\n}\n","/* eslint-disable max-len */\nimport { html } from 'lit';\n\nexport default function threeDots(dimensions) {\n const width = dimensions?.width ?? 20;\n const height = dimensions?.height ?? 20;\n return html`\n \n \n \n `;\n}\n","import { LitElement, html, css } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { guard } from 'lit/directives/guard.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport formatXml from 'xml-but-prettier';\nimport Prism from 'prismjs';\nimport TableStyles from '../styles/table-styles';\nimport FlexStyles from '../styles/flex-styles';\nimport InputStyles from '../styles/input-styles';\nimport FontStyles from '../styles/font-styles';\nimport BorderStyles from '../styles/border-styles';\nimport TabStyles from '../styles/tab-styles';\nimport PrismStyles from '../styles/prism-styles';\nimport PrismLanguagesStyles from '../styles/prism-languages-styles';\nimport CustomStyles from '../styles/custom-styles';\nimport { copyToClipboard, downloadResource, viewResource } from '../utils/common-utils';\nimport { schemaInObjectNotation,\n getTypeInfo,\n generateExample,\n normalizeExamples,\n getSchemaFromParam,\n nestExampleIfPresent,\n anyExampleWithSummaryOrDescription } from '../utils/schema-utils';\nimport './json-tree';\nimport './schema-tree';\nimport './tag-input';\nimport './breadcrumbs';\n\nimport serverTemplate from '../templates/server-template';\nimport securitySchemeTemplate from '../templates/security-scheme-template';\nimport languagePickerTemplate from '../templates/language-picker-template';\nimport updateCodeExample from '../utils/update-code-example';\nimport copySymbol from './assets/copy-symbol';\n\nexport default class ApiRequest extends LitElement {\n constructor() {\n super();\n this.resolvedSpec = {};\n this.responseMessage = '';\n this.resultLoad = false;\n this.responseStatus = 'success';\n this.responseHeaders = '';\n this.responseText = '';\n this.responseUrl = '';\n this.codeExample = '';\n this.activeResponseTab = 'response'; // allowed values: response, headers, curl\n this.selectedRequestBodyType = '';\n this.selectedRequestBodyExample = '';\n this.activeParameterSchemaTabs = {};\n this.showCurlBeforeTry = true;\n this.selectedLanguage = 'shell';\n }\n\n static get properties() {\n return {\n schemaShortSummary: { type: String, attribute: 'schema-short-summary' },\n serverUrl: { type: String, attribute: 'server-url' },\n resolvedSpec: { type: Object },\n selectedServer: { type: Object },\n servers: { type: Array },\n method: { type: String },\n path: { type: String },\n security: { type: Array },\n parameters: { type: Array },\n request_body: { type: Object },\n api_keys: { type: Array },\n parser: { type: Object },\n accept: { type: String },\n callback: { type: String },\n webhook: { type: String },\n responseMessage: { type: String, attribute: false },\n responseText: { type: String, attribute: false },\n responseHeaders: { type: String, attribute: false },\n responseStatus: { type: String, attribute: false },\n responseUrl: { type: String, attribute: false },\n codeExample: { type: String, attribute: false },\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\n allowTry: { type: String, attribute: 'allow-try' },\n showCurlBeforeTry: { type: String, attribute: 'show-curl-before-try' },\n renderStyle: { type: String, attribute: 'render-style' },\n schemaStyle: { type: String, attribute: 'schema-style' },\n activeSchemaTab: { type: String, attribute: 'active-schema-tab' },\n activeParameterSchemaTabs: {\n type: Object,\n converter: {\n fromAttribute: (attr) => JSON.parse(attr),\n toAttribute: (prop) => JSON.stringify(prop),\n },\n attribute: 'active-parameter-schema-tabs',\n },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\n\n // properties for internal tracking\n activeResponseTab: { type: String }, // internal tracking of response-tab not exposed as a attribute\n selectedRequestBodyType: { type: String, attribute: 'selected-request-body-type' }, // internal tracking of selected request-body type\n selectedRequestBodyExample: { type: String, attribute: 'selected-request-body-example' }, // internal tracking of selected request-body example\n\n selectedLanguage: { type: String },\n\n // open-api file download\n specUrl: { type: String, attribute: 'spec-url' },\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\n };\n }\n\n static get styles() {\n return [\n TableStyles,\n InputStyles,\n FontStyles,\n FlexStyles,\n BorderStyles,\n TabStyles,\n PrismStyles,\n PrismLanguagesStyles,\n css`\n *, *:before, *:after { box-sizing: border-box; }\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\n tag-input:focus-within { outline: 1px solid;}\n .read-mode {\n border-top: 1px solid #E7E9EE;\n margin-top: 24px;\n }\n\n .param-name {\n font-size: 14px;\n font-weight: normal;\n line-height: 20px;\n color: #545454; \n margin-block: 24px 4px;\n font-family: var(--font-regular);\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .param-name.deprecated { \n color: #DC5A41;\n }\n .param-type{\n line-height: 16px;\n color: #4A4A4A; \n font-family: var(--font-mono);\n font-size: var(--font-size-mono);\n }\n\n .param-type > span {\n margin-left: 8px;\n }\n\n .param-constraint{\n min-width:100px;\n }\n .param-constraint:empty{\n display:none;\n }\n\n .param-description {\n font-size: 13px;\n line-height: 18px;\n color: #4A4A4A;\n }\n\n .top-gap{margin-top:24px;}\n\n .textarea {\n min-height:220px; \n padding:5px;\n resize:vertical;\n direction: ltr;\n }\n .example:first-child {\n margin-top: -9px;\n }\n\n .response-message{\n font-weight:bold;\n text-overflow: ellipsis;\n }\n .response-message.error {\n color:var(--red);\n }\n .response-message.success {\n color:var(--blue);\n }\n\n .file-input-container {\n align-items:flex-end;\n }\n .file-input-container .input-set:first-child .file-input-remove-btn{\n visibility:hidden;\n }\n\n .file-input-remove-btn{\n font-size:16px;\n color:var(--red);\n outline: none;\n border: none;\n background:none;\n cursor:pointer;\n }\n\n .v-tab-btn {\n font-size: var(--smal-font-size);\n height:24px; \n border:none; \n background:none; \n opacity: 0.3;\n cursor: pointer;\n padding: 4px 8px;\n }\n .v-tab-btn.active {\n font-weight: bold;\n background: var(--bg);\n opacity: 1;\n }\n\n @media only screen and (min-width: 768px) {\n .textarea {\n padding:8px;\n }\n }\n\n @media only screen and (max-width: 470px) {\n .hide-in-small-screen {\n display:none;\n }\n }\n `,\n CustomStyles,\n ];\n }\n\n render() {\n return html`\n
    \n
    \n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('path'))}\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('query'))}\n ${this.requestBodyTemplate()}\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}\n ${this.allowTry === 'false' ? '' : html`${this.apiCallTemplate()}`}\n
    \n
    \n ${languagePickerTemplate.call(this)}\n ${securitySchemeTemplate.call(this)}\n ${serverTemplate.call(this)}\n ${this.apiResponseTabTemplate()}\n
    \n
    \n `;\n }\n\n async updated() {\n if (this.showCurlBeforeTry === 'true') {\n updateCodeExample.call(this, this.shadowRoot);\n }\n\n // In focused mode after rendering the request component, update the text-areas(which contains examples) using\n // the original values from hidden textareas\n // This is done coz, user may update the dom by editing the textarea's and once the DOM is updated externally change detection wont happen, therefore update the values manually\n\n // if (this.renderStyle === 'focused') {\n // if (changedProperties.size === 1 && changedProperties.has('activeSchemaTab')) {\n // // dont update example as only tabs is switched\n // } else {\n // this.requestUpdate();\n // }\n // }\n\n if (this.webhook === 'true') {\n this.allowTry = 'false';\n }\n }\n\n async saveExampleState() {\n if (this.renderStyle === 'focused') {\n const reqBodyTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea.request-body-param-user-input')];\n reqBodyTextAreaEls.forEach((el) => {\n el.dataset.user_example = el.value;\n });\n const exampleTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea[data-ptype=\"form-data\"]')];\n exampleTextAreaEls.forEach((el) => {\n el.dataset.user_example = el.value;\n });\n this.requestUpdate();\n }\n }\n\n async updateExamplesFromDataAttr() {\n // In focused mode after rendering the request component, update the text-areas(which contains examples) using\n // the original values from hidden textareas\n // This is done coz, user may update the dom by editing the textarea's and once the DOM is updated externally change detection wont happen, therefore update the values manually\n if (this.renderStyle === 'focused') {\n const reqBodyTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea.request-body-param-user-input')];\n reqBodyTextAreaEls.forEach((el) => {\n el.value = el.dataset.user_example || el.dataset.example;\n });\n const exampleTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea[data-ptype=\"form-data\"]')];\n exampleTextAreaEls.forEach((el) => {\n el.value = el.dataset.user_example || el.dataset.example;\n });\n this.requestUpdate();\n }\n }\n\n /* eslint-disable indent */\n renderExample(example, paramType, paramName) {\n return html`\n ${paramType === 'array' ? '[' : ''}\n {\n const inputEl = e.target.closest('.request-card').querySelector(`[data-pname=\"${paramName}\"]`);\n if (inputEl) {\n inputEl.value = e.target.dataset.exampleType === 'array' ? e.target.dataset.example.split('~|~') : e.target.dataset.example;\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }\n }}\"\n > ${example.printableValue || example.value} \n ${paramType === 'array' ? '] ' : ''}\n `;\n }\n\n renderShortFormatExamples(examples, paramType, paramName) {\n return html`${examples.map((x, i) => html`\n ${i === 0 ? '' : '┃'}\n ${this.renderExample(x, paramType, paramName)}`)}`;\n }\n\n renderLongFormatExamples(exampleList, paramType, paramName) {\n return html`
      \n ${exampleList.map((v) => html`\n
    • \n ${this.renderExample(v, paramType, paramName)}\n ${v.summary?.length > 0 ? html`(${v.summary})` : ''}\n ${v.description?.length > 0 ? html`

      ${unsafeHTML(marked(v.description))}

      ` : ''}\n
    • \n `)}\n
    `;\n }\n\n exampleListTemplate(paramName, paramType, exampleList = []) {\n return html` ${\n exampleList.length > 0\n ? html`Example: \n ${anyExampleWithSummaryOrDescription(exampleList)\n ? this.renderLongFormatExamples(exampleList, paramType, paramName)\n : this.renderShortFormatExamples(exampleList, paramType, paramName)}`\n : ''\n }`;\n }\n\n inputParametersTemplate(paramType) {\n const filteredParams = this.parameters ? this.parameters.filter((param) => param.in === paramType) : [];\n if (filteredParams.length === 0) {\n return '';\n }\n let title = '';\n if (paramType === 'path') {\n title = 'Path Params';\n } else if (paramType === 'query') {\n title = 'Query-String Params';\n } else if (paramType === 'header') {\n title = 'Headers';\n } else if (paramType === 'cookie') {\n title = 'Cookies';\n }\n\n const tableRows = [];\n for (const param of filteredParams) {\n const [declaredParamSchema, serializeStyle, mimeTypeElem] = getSchemaFromParam(param);\n if (!declaredParamSchema) {\n continue;\n }\n const paramSchema = getTypeInfo(declaredParamSchema);\n if (!paramSchema) {\n continue; // eslint-disable-line no-continue\n }\n const schemaAsObj = schemaInObjectNotation(declaredParamSchema, {});\n // let exampleVal = '';\n // let exampleList = [];\n let paramStyle = 'form';\n let paramExplode = true;\n let paramAllowReserved = false;\n if (paramType === 'query') {\n if (param.style && 'form spaceDelimited pipeDelimited'.includes(param.style)) {\n paramStyle = param.style;\n } else if (serializeStyle) {\n paramStyle = serializeStyle;\n }\n if (typeof param.explode === 'boolean') {\n paramExplode = param.explode;\n }\n if (typeof param.allowReserved === 'boolean') {\n paramAllowReserved = param.allowReserved;\n }\n }\n // openapi 3.1.0 spec based examples (which must be Object(string : { value:any, summary?: string, description?: string})\n const example = normalizeExamples(\n (param.examples\n || nestExampleIfPresent(param.example)\n || nestExampleIfPresent(mimeTypeElem?.example)\n || mimeTypeElem?.examples\n || nestExampleIfPresent(paramSchema.examples)\n || nestExampleIfPresent(paramSchema.example)\n ),\n paramSchema.type,\n );\n if (!example.exampleVal && paramSchema.type === 'object') {\n example.exampleVal = generateExample(\n declaredParamSchema,\n serializeStyle || 'json',\n '',\n '',\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\n true,\n 'text',\n false,\n )[0].exampleValue;\n }\n if (!this.resolvedSpec.securitySchemes.some((e) => e.name === param.name)) {\n tableRows.push(html`\n
    \n ${param.name}\n\n
    \n ${paramSchema.type === 'array'\n ? `${paramSchema.arrayType}`\n : `${paramSchema.format ? paramSchema.format : paramSchema.type}`\n }\n ${param.deprecated ? html`deprecated` : ''}\n ${param.required ? html`required` : ''}\n
    \n
    \n\n ${this.allowTry === 'true'\n ? html`\n ${paramSchema.type === 'array'\n ? html`\n \n `\n : paramSchema.type === 'object'\n ? html`\n
    \n
    {\n if (e.target.tagName.toLowerCase() === 'button') {\n const newState = { ...this.activeParameterSchemaTabs };\n newState[param.name] = e.target.dataset.tab;\n this.activeParameterSchemaTabs = newState;\n }\n }}\">\n \n \n
    \n ${this.activeParameterSchemaTabs[param.name] === 'example'\n ? html`
    \n \n
    `\n : html`\n
    \n \n
    `\n }\n
    `\n : html`\n {\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }}\n />`\n }`\n : ''\n }\n ${unsafeHTML(marked(param.description || ''))}\n ${this.exampleListTemplate.call(this, param.name, paramSchema.type, example.exampleList)}\n `);\n }\n }\n\n return html`\n
    \n
    \n
    ${title}
    \n \n \n
    \n
    \n
    \n
    \n ${tableRows}\n
    \n
    \n
    `;\n }\n\n // This method is called before navigation change in focused mode\n async beforeNavigationFocusedMode() {\n // this.saveExampleState();\n }\n\n // This method is called after navigation change in focused mode\n async afterNavigationFocusedMode() {\n this.selectedRequestBodyType = '';\n this.selectedRequestBodyExample = '';\n this.updateExamplesFromDataAttr();\n this.clearResponseData();\n }\n\n // Request-Body Event Handlers\n onSelectExample(e) {\n this.selectedRequestBodyExample = e.target.value;\n const exampleDropdownEl = e.target;\n window.setTimeout((selectEl) => {\n const readOnlyExampleEl = selectEl.closest('.example-panel').querySelector('.request-body-param');\n const userInputExampleTextareaEl = selectEl.closest('.example-panel').querySelector('.request-body-param-user-input');\n userInputExampleTextareaEl.value = readOnlyExampleEl.innerText;\n\n const requestPanelEl = this.getRequestPanel({ target: selectEl });\n updateCodeExample.call(this, requestPanelEl);\n }, 0, exampleDropdownEl);\n }\n\n onMimeTypeChange(e) {\n this.selectedRequestBodyType = e.target.value;\n const mimeDropdownEl = e.target;\n this.selectedRequestBodyExample = '';\n window.setTimeout((selectEl) => {\n const readOnlyExampleEl = selectEl.closest('.request-body-container').querySelector('.request-body-param');\n if (readOnlyExampleEl) {\n const userInputExampleTextareaEl = selectEl.closest('.request-body-container').querySelector('.request-body-param-user-input');\n userInputExampleTextareaEl.value = readOnlyExampleEl.innerText;\n }\n }, 0, mimeDropdownEl);\n }\n\n requestBodyTemplate() {\n if (!this.request_body) {\n return '';\n }\n if (Object.keys(this.request_body).length === 0) {\n return '';\n }\n\n // Variable to store partial HTMLs\n let reqBodyTypeSelectorHtml = '';\n let reqBodyFileInputHtml = '';\n let reqBodyFormHtml = '';\n let reqBodySchemaHtml = '';\n let reqBodyExampleHtml = '';\n\n const requestBodyTypes = [];\n const { content } = this.request_body;\n for (const mimeType in content) {\n requestBodyTypes.push({\n mimeType,\n schema: content[mimeType].schema,\n example: content[mimeType].example,\n examples: content[mimeType].examples,\n });\n if (!this.selectedRequestBodyType) {\n this.selectedRequestBodyType = mimeType;\n }\n }\n // MIME Type selector\n reqBodyTypeSelectorHtml = requestBodyTypes.length === 1\n ? ''\n : html`\n \n `;\n\n // For Loop - Main\n requestBodyTypes.forEach((reqBody) => {\n let schemaAsObj;\n let reqBodyExamples = [];\n\n if (this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose')) {\n // Generate Example\n if (reqBody.mimeType === this.selectedRequestBodyType) {\n reqBodyExamples = generateExample(\n reqBody.schema,\n reqBody.mimeType,\n reqBody.examples,\n reqBody.example,\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\n 'text',\n false,\n );\n if (!this.selectedRequestBodyExample) {\n this.selectedRequestBodyExample = (reqBodyExamples.length > 0 ? reqBodyExamples[0].exampleId : '');\n }\n reqBodyExampleHtml = html`\n ${reqBodyExampleHtml}\n
    \n ${reqBodyExamples.length === 1\n ? ''\n : html`\n \n `\n }\n ${reqBodyExamples\n .filter((v) => v.exampleId === this.selectedRequestBodyExample)\n .map((v) => html`\n
    \n ${v.exampleSummary && v.exampleSummary.length > 80 ? html`
    ${v.exampleSummary}
    ` : ''}\n ${v.exampleDescription ? html`
    ${unsafeHTML(marked(v.exampleDescription || ''))}
    ` : ''}\n \n
    ${(v.exampleFormat === 'text' ? v.exampleValue : JSON.stringify(v.exampleValue, null, 2))}
    \n\n \n \n
    \n `)}\n\n
    \n `;\n }\n } else if (this.selectedRequestBodyType.includes('form-urlencoded') || this.selectedRequestBodyType.includes('form-data')) {\n if (reqBody.mimeType === this.selectedRequestBodyType) {\n const ex = generateExample(\n reqBody.schema,\n reqBody.mimeType,\n reqBody.examples,\n reqBody.example,\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\n 'text',\n false,\n );\n if (reqBody.schema) {\n reqBodyFormHtml = this.formDataTemplate(reqBody.schema, reqBody.mimeType, (ex[0] ? ex[0].exampleValue : ''));\n }\n }\n } else if ((/^audio\\/|^image\\/|^video\\/|^font\\/|tar$|zip$|7z$|rtf$|msword$|excel$|\\/pdf$|\\/octet-stream$/.test(this.selectedRequestBodyType))) {\n if (reqBody.mimeType === this.selectedRequestBodyType) {\n reqBodyFileInputHtml = html`\n
    \n \n
    \n `;\n }\n }\n\n // Generate Schema\n if (reqBody.mimeType.includes('json') || reqBody.mimeType.includes('xml') || reqBody.mimeType.includes('text') || this.selectedRequestBodyType.includes('jose')) {\n schemaAsObj = schemaInObjectNotation(reqBody.schema, {});\n if (this.schemaStyle === 'table') {\n reqBodySchemaHtml = html`\n ${reqBodySchemaHtml}\n \n `;\n } else if (this.schemaStyle === 'tree') {\n reqBodySchemaHtml = html`\n ${reqBodySchemaHtml}\n \n `;\n }\n }\n });\n\n return html`\n
    \n
    \n REQUEST BODY ${this.request_body.required ? html`*` : ''} \n ${this.selectedRequestBodyType}\n \n ${reqBodyTypeSelectorHtml}\n
    \n ${this.request_body.description ? html`
    ${unsafeHTML(marked(this.request_body.description))}
    ` : ''}\n \n ${(this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose'))\n ? html`\n
    \n
    { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}\">\n \n \n
    \n
    ${reqBodyExampleHtml}
    \n
    ${reqBodySchemaHtml}
    \n
    `\n : html` \n ${reqBodyFileInputHtml}\n ${reqBodyFormHtml}`\n }\n
    \n `;\n }\n\n formDataParamAsObjectTemplate(fieldName, fieldSchema, mimeType) {\n // This template is used when form-data param should be send as a object (application/json, application/xml)\n const formdataPartSchema = schemaInObjectNotation(fieldSchema, {});\n const formdataPartExample = generateExample(\n fieldSchema,\n 'json',\n fieldSchema.examples,\n fieldSchema.example,\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\n 'text',\n false,\n );\n\n return html`\n
    \n
    \n
    {\n if (e.target.classList.contains('v-tab-btn')) {\n const { tab } = e.target.dataset;\n if (tab) {\n const tabPanelEl = e.target.closest('.tab-panel');\n const selectedTabBtnEl = tabPanelEl.querySelector(`.v-tab-btn[data-tab=\"${tab}\"]`);\n const otherTabBtnEl = [...tabPanelEl.querySelectorAll(`.v-tab-btn:not([data-tab=\"${tab}\"])`)];\n const selectedTabContentEl = tabPanelEl.querySelector(`.tab-content[data-tab=\"${tab}\"]`);\n const otherTabContentEl = [...tabPanelEl.querySelectorAll(`.tab-content:not([data-tab=\"${tab}\"])`)];\n selectedTabBtnEl.classList.add('active');\n selectedTabContentEl.style.display = 'block';\n otherTabBtnEl.forEach((el) => { el.classList.remove('active'); });\n otherTabContentEl.forEach((el) => { el.style.display = 'none'; });\n }\n }\n if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; }\n }}\">\n \n \n
    \n
    \n ${html`\n
    \n \n
    `\n }\n ${html`\n
    \n \n
    `\n }\n
    \n `;\n }\n\n formDataTemplate(schema, mimeType, exampleValue = '') {\n const formDataTableRows = [];\n if (schema.properties) {\n for (const fieldName in schema.properties) {\n const fieldSchema = schema.properties[fieldName];\n if (fieldSchema.readOnly) {\n continue;\n }\n const fieldExamples = fieldSchema.examples || fieldSchema.example || '';\n const fieldType = fieldSchema.type;\n const paramSchema = getTypeInfo(fieldSchema);\n const labelColWidth = 'read focused'.includes(this.renderStyle) ? '200px' : '160px';\n const example = normalizeExamples((paramSchema.examples || paramSchema.example), paramSchema.type);\n formDataTableRows.push(html`\n \n \n
    \n ${fieldName}${(schema.required?.includes(fieldName) || fieldSchema.required) ? html`*` : ''}\n
    \n
    ${paramSchema.type}
    \n \n \n ${fieldType === 'array'\n ? fieldSchema.items?.format === 'binary'\n ? html`\n
    this.onAddRemoveFileInput(e, fieldName, mimeType)}\">\n
    \n \n \n
    \n \n
    \n `\n : html`\n \n \n `\n : html`\n ${fieldType === 'object'\n ? this.formDataParamAsObjectTemplate.call(this, fieldName, fieldSchema, mimeType)\n : html`\n ${this.allowTry === 'true'\n ? html` {\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }}\n />`\n : ''\n }\n `\n }`\n }\n \n ${fieldType === 'object'\n ? ''\n : html`\n \n ${paramSchema.default || paramSchema.constrain || paramSchema.allowedValues || paramSchema.pattern\n ? html`\n
    \n ${paramSchema.default ? html`Default: ${paramSchema.default}
    ` : ''}\n ${paramSchema.pattern ? html`Pattern: ${paramSchema.pattern}
    ` : ''}\n ${paramSchema.constrain ? html`${paramSchema.constrain}
    ` : ''}\n ${paramSchema.allowedValues && paramSchema.allowedValues.split('┃').map((v, i) => html`\n ${i > 0 ? '┃' : html`Allowed: `}\n ${html`\n {\n const inputEl = e.target.closest('div').querySelector(`[data-pname=\"${fieldName}\"]`);\n if (inputEl) {\n if (e.target.dataset.type === 'array') {\n inputEl.value = [e.target.dataset.enum];\n } else {\n inputEl.value = e.target.dataset.enum;\n }\n\n const requestPanelEl = this.getRequestPanel(e);\n updateCodeExample.call(this, requestPanelEl);\n }\n }}\"\n > \n ${v} \n `\n }`)\n }\n
    `\n : ''\n }\n `\n }\n \n ${fieldType === 'object'\n ? ''\n : html`\n \n \n \n ${unsafeHTML(marked(fieldSchema.description || ''))}\n ${this.exampleListTemplate.call(this, fieldName, paramSchema.type, example.exampleList)}\n \n \n `\n }`);\n }\n return html`\n \n ${formDataTableRows}\n
    \n `;\n }\n\n return html`\n \n ${schema.description ? html`${unsafeHTML(marked(schema.description))}` : ''}\n `;\n }\n\n codeExampleTemplate(display = 'flex') {\n return html`\n
    \n \n
    ${unsafeHTML(Prism.highlight(this.codeExample.trim().replace(/\\\\$/, ''), Prism.languages[this.selectedLanguage], this.selectedLanguage))}
    \n
    \n `;\n }\n\n apiResponseTabTemplate() {\n let responseFormat = '';\n let responseContent = '';\n if (!this.responseIsBlob) {\n if (this.responseHeaders.includes('application/x-ndjson')) {\n responseFormat = 'json';\n const prismLines = this.responseText.split('\\n').map((q) => Prism.highlight(q, Prism.languages[responseFormat], responseFormat)).join('\\n');\n responseContent = html`${unsafeHTML(prismLines)}`;\n } else if (this.responseHeaders.includes('json')) {\n responseFormat = 'json';\n responseContent = html`${unsafeHTML(Prism.highlight(this.responseText, Prism.languages[responseFormat], responseFormat))}`;\n } else if (this.responseHeaders.includes('html') || this.responseHeaders.includes('xml')) {\n responseFormat = 'html';\n responseContent = html`${unsafeHTML(Prism.highlight(this.responseText, Prism.languages[responseFormat], responseFormat))}`;\n } else {\n responseFormat = 'text';\n responseContent = html`${this.responseText}`;\n }\n }\n return html`\n \n
    \n ${this.codeExampleTemplate('flex')}\n
    \n ${this.responseMessage\n ? html`\n
    \n
    \n
    ${this.responseMessage}
    \n
    `\n : ''\n }\n ${this.responseIsBlob\n ? html`\n
    \n \n ${this.responseBlobType === 'view'\n ? html``\n : ''\n }\n
    `\n : html`\n ${this.responseText ? html`\n
    \n \n
    ${responseContent}
    \n
    `\n : ''\n }`\n }\n
    \n
    `;\n }\n\n apiCallTemplate() {\n let selectServerDropdownHtml = '';\n if (this.servers && this.servers.length > 0) {\n selectServerDropdownHtml = html`\n \n `;\n }\n const selectedServerHtml = html`\n
    \n ${selectServerDropdownHtml}\n ${this.serverUrl\n ? html`\n
    \n
    API Server
    \n ${this.serverUrl} \n
    \n `\n : ''\n }\n
    \n `;\n\n if (!this.resultLoad) {\n this.updateComplete.then(() => {\n const el = this.renderRoot.host.shadowRoot.children[0];\n updateCodeExample.call(this, el.target ? el.target : el);\n });\n this.resultLoad = true;\n } else {\n const el = this.renderRoot.host.shadowRoot.children[0];\n updateCodeExample.call(this, el.target ? el.target : el);\n }\n\n return html`\n
    \n
    \n
    \n ${selectedServerHtml}\n
    \n
    \n
    Authentication
    \n ${this.security?.length > 0\n ? html`\n ${this.api_keys.length > 0\n ? html`
    \n ${this.api_keys.length === 1\n ? `${this.api_keys[0]?.typeDisplay} in ${this.api_keys[0].in}`\n : `${this.api_keys.length} API keys applied`\n } \n
    `\n : html`
    Required (None Applied)`\n }`\n : html` Not Required `\n }\n
    \n
    \n \n
    \n `;\n }\n /* eslint-enable indent */\n\n async onFillRequestData(e) {\n const requestPanelEl = e.target.closest('.request-panel');\n const requestPanelInputEls = [...requestPanelEl.querySelectorAll('input, tag-input, textarea:not(.is-hidden)')];\n requestPanelInputEls.forEach((el) => {\n if (el.dataset.example) {\n if (el.tagName.toUpperCase() === 'TAG-INPUT') {\n el.value = el.dataset.example.split('~|~');\n } else {\n el.value = el.dataset.example;\n }\n }\n });\n }\n\n async onClearRequestData(e) {\n const requestPanelEl = e.target.closest('.request-panel');\n const requestPanelInputEls = [...requestPanelEl.querySelectorAll('input, tag-input, textarea:not(.is-hidden)')];\n requestPanelInputEls.forEach((el) => { el.value = ''; });\n }\n\n async onTryClick(e) {\n const tryBtnEl = e.target ? e.target : e;\n\n const { fetchUrl, fetchOptions, reqHeaders } = updateCodeExample.call(this, tryBtnEl);\n const encodedUrl = `/api/proxy/${encodeURIComponent(fetchUrl)}`;\n\n this.responseUrl = '';\n this.responseHeaders = [];\n this.responseStatus = 'success';\n this.responseIsBlob = false;\n\n this.respContentDisposition = '';\n if (this.responseBlobUrl) {\n URL.revokeObjectURL(this.responseBlobUrl);\n this.responseBlobUrl = '';\n }\n if (this.fetchCredentials) {\n fetchOptions.credentials = this.fetchCredentials;\n }\n const controller = new AbortController();\n const { signal } = controller;\n fetchOptions.headers = reqHeaders;\n const tempRequest = { url: encodedUrl, ...fetchOptions };\n this.dispatchEvent(new CustomEvent('before-try', {\n bubbles: true,\n composed: true,\n detail: {\n request: tempRequest,\n controller,\n },\n }));\n const updatedFetchOptions = {\n method: tempRequest.method,\n headers: tempRequest.headers,\n credentials: tempRequest.credentials,\n body: tempRequest.body,\n };\n const fetchRequest = new Request(tempRequest.url, updatedFetchOptions);\n let fetchResponse;\n let responseClone;\n try {\n let respBlob;\n let respJson;\n let respText;\n tryBtnEl.disabled = true;\n this.responseText = '';\n this.responseMessage = '';\n this.requestUpdate();\n const startTime = performance.now();\n fetchResponse = await fetch(fetchRequest, { signal });\n const endTime = performance.now();\n responseClone = fetchResponse.clone(); // create a response clone to allow reading response body again (response.json, response.text etc)\n tryBtnEl.disabled = false;\n this.responseMessage = html`${fetchResponse.statusText ? `${fetchResponse.statusText}:${fetchResponse.status}` : fetchResponse.status}
    Took ${Math.round(endTime - startTime)} milliseconds
    `;\n this.responseUrl = fetchResponse.url;\n const respHeadersObj = {};\n fetchResponse.headers.forEach((hdrVal, hdr) => {\n respHeadersObj[hdr] = hdrVal;\n this.responseHeaders = `${this.responseHeaders}${hdr}: ${hdrVal}\\n`;\n });\n const contentType = fetchResponse.headers.get('content-type');\n const respEmpty = (await fetchResponse.clone().text()).length === 0;\n if (respEmpty) {\n this.responseText = '';\n } else if (contentType) {\n if (contentType === 'application/x-ndjson') {\n this.responseText = await fetchResponse.text();\n } else if (contentType.includes('json')) {\n if ((/charset=[^\"']+/).test(contentType)) {\n const encoding = contentType.split('charset=')[1];\n const buffer = await fetchResponse.arrayBuffer();\n try {\n respText = new TextDecoder(encoding).decode(buffer);\n } catch {\n respText = new TextDecoder('utf-8').decode(buffer);\n }\n try {\n respJson = JSON.parse(respText);\n this.responseText = JSON.stringify(respJson, null, 2);\n } catch {\n this.responseText = respText;\n }\n } else {\n respJson = await fetchResponse.json();\n this.responseText = JSON.stringify(respJson, null, 2);\n }\n // eslint-disable-next-line no-useless-escape\n } else if (/^font\\/|tar$|zip$|7z$|rtf$|msword$|excel$|\\/pdf$|\\/octet-stream$|^application\\/vnd\\./.test(contentType)) {\n this.responseIsBlob = true;\n this.responseBlobType = 'download';\n } else if (/^audio|^image|^video/.test(contentType)) {\n this.responseIsBlob = true;\n this.responseBlobType = 'view';\n } else {\n respText = await fetchResponse.text();\n if (contentType.includes('xml')) {\n this.responseText = formatXml(respText, { textNodesOnSameLine: true, indentor: ' ' });\n } else {\n this.responseText = respText;\n }\n }\n if (this.responseIsBlob) {\n const contentDisposition = fetchResponse.headers.get('content-disposition');\n this.respContentDisposition = contentDisposition ? contentDisposition.split('filename=')[1].replace(/\"|'/g, '') : 'filename';\n respBlob = await fetchResponse.blob();\n this.responseBlobUrl = URL.createObjectURL(respBlob);\n }\n } else {\n respText = await fetchResponse.text();\n this.responseText = respText;\n }\n this.dispatchEvent(new CustomEvent('after-try', {\n bubbles: true,\n composed: true,\n detail: {\n request: fetchRequest,\n response: responseClone,\n responseHeaders: respHeadersObj,\n responseBody: respJson || respText || respBlob,\n responseStatus: responseClone.ok,\n },\n }));\n } catch (err) {\n tryBtnEl.disabled = false;\n if (err.name === 'AbortError') {\n this.dispatchEvent(new CustomEvent('request-aborted', {\n bubbles: true,\n composed: true,\n detail: {\n err,\n request: fetchRequest,\n },\n }));\n this.responseMessage = 'Request Aborted';\n this.responseText = 'Request Aborted';\n } else {\n this.dispatchEvent(new CustomEvent('after-try', {\n bubbles: true,\n composed: true,\n detail: {\n err,\n request: fetchRequest,\n },\n }));\n this.responseMessage = `${err.message} (CORS or Network Issue)`;\n }\n }\n this.requestUpdate();\n }\n\n getRequestPanel(e) {\n return e.target.closest('.request-panel');\n }\n\n onAddRemoveFileInput(e, pname, ptype) {\n if (e.target.tagName.toLowerCase() !== 'button') {\n return;\n }\n\n if (e.target.classList.contains('file-input-remove-btn')) {\n // Remove File Input Set\n const el = e.target.closest('.input-set');\n el.remove();\n return;\n }\n const el = e.target.closest('.file-input-container');\n\n // Add File Input Set\n\n // Container\n const newInputContainerEl = document.createElement('div');\n newInputContainerEl.setAttribute('class', 'input-set row');\n\n // File Input\n const newInputEl = document.createElement('input');\n newInputEl.type = 'file';\n newInputEl.style = 'width:200px; margin-top:2px;';\n newInputEl.setAttribute('data-pname', pname);\n newInputEl.setAttribute('data-ptype', ptype.includes('form-urlencode') ? 'form-urlencode' : 'form-data');\n newInputEl.setAttribute('data-array', 'false');\n newInputEl.setAttribute('data-file-array', 'true');\n\n // Remover Button\n const newRemoveBtnEl = document.createElement('button');\n newRemoveBtnEl.setAttribute('class', 'file-input-remove-btn');\n newRemoveBtnEl.innerHTML = '✕';\n\n newInputContainerEl.appendChild(newInputEl);\n newInputContainerEl.appendChild(newRemoveBtnEl);\n el.insertBefore(newInputContainerEl, e.target);\n // el.appendChild(newInputContainerEl);\n }\n\n clearResponseData() {\n this.responseUrl = '';\n this.responseHeaders = '';\n this.responseText = '';\n this.responseStatus = 'success';\n this.responseMessage = '';\n this.responseIsBlob = false;\n this.responseBlobType = '';\n this.respContentDisposition = '';\n if (this.responseBlobUrl) {\n URL.revokeObjectURL(this.responseBlobUrl);\n this.responseBlobUrl = '';\n }\n }\n\n disconnectedCallback() {\n this.codeExample = '';\n // Cleanup ObjectURL for the blob data if this component created one\n if (this.responseBlobUrl) {\n URL.revokeObjectURL(this.responseBlobUrl);\n this.responseBlobUrl = '';\n }\n super.disconnectedCallback();\n }\n}\n\n// Register the element with the browser\nif (!customElements.get('api-request')) customElements.define('api-request', ApiRequest);\n","// Takes a value as input and provides a printable string to replresent null values, spaces, blankstring etc\nexport function getPrintableVal(val) {\n if (val === undefined) {\n return '';\n }\n if (val === null) {\n return 'null';\n }\n if (val === '') {\n return '∅';\n }\n if (typeof val === 'boolean' || typeof val === 'number') {\n return `${val}`;\n }\n if (Array.isArray(val)) {\n return val.map((v) => (v === null ? 'null' : v === '' ? '∅' : v.toString().replace(/^ +| +$/g, (m) => '●'.repeat(m.length)) || '')).join(', ');\n }\n if (typeof val === 'object') {\n const keys = Object.keys(val);\n return `{ ${keys[0]}:${val[keys[0]]}${keys.length > 1 ? ',' : ''} ... }`;\n }\n return val.toString().replace(/^ +| +$/g, (m) => '●'.repeat(m.length)) || '';\n}\n\n/* Generates an schema object containing type and constraint info */\nexport function getTypeInfo(schema) {\n if (!schema) {\n return;\n }\n let dataType = '';\n let constrain = '';\n // let examples;\n\n if (schema.$ref) {\n const n = schema.$ref.lastIndexOf('/');\n const schemaNode = schema.$ref.substring(n + 1);\n dataType = `{recursive: ${schemaNode}} `;\n } else if (schema.type) {\n dataType = Array.isArray(schema.type) ? schema.type.join(schema.length === 2 ? ' or ' : '┃') : schema.type;\n if (schema.format || schema.enum || schema.const) {\n dataType = dataType.replace('string', schema.enum ? 'enum' : schema.const ? 'const' : schema.format);\n }\n if (schema.nullable) {\n dataType += '┃null';\n }\n } else if (schema.const) {\n dataType = 'const';\n } else if (Object.keys(schema).length === 0) {\n dataType = 'any';\n } else {\n dataType = '{missing-type-info}';\n }\n\n const info = {\n type: dataType,\n format: schema.format || '',\n pattern: (schema.pattern && !schema.enum) ? schema.pattern : '',\n readOrWriteOnly: (schema.readOnly ? '🆁' : schema.writeOnly ? '🆆' : ''),\n deprecated: schema.deprecated ? '❌' : '',\n examples: schema.examples || schema.example,\n default: getPrintableVal(schema.default),\n description: schema.description || '',\n constrain: '',\n allowedValues: '',\n arrayType: '',\n html: '',\n };\n\n if (info.type === '{recursive}') {\n info.description = schema.$ref.substring(schema.$ref.lastIndexOf('/') + 1);\n } else if (info.type === '{missing-type-info}' || info.type === 'any') {\n info.description = info.description || '';\n }\n // Set Allowed Values\n info.allowedValues = schema.const\n ? schema.const\n : Array.isArray(schema.enum)\n ? schema.enum.map((v) => (getPrintableVal(v))).join('┃')\n : '';\n\n if (dataType === 'array' && schema.items) {\n const arrayItemType = schema.items?.type;\n const arrayItemDefault = getPrintableVal(schema.items.default);\n\n info.arrayType = `${schema.type} of ${Array.isArray(arrayItemType) ? arrayItemType.join('') : arrayItemType}`;\n info.default = arrayItemDefault;\n info.allowedValues = schema.items.const\n ? schema.const\n : Array.isArray(schema.items?.enum)\n ? schema.items.enum.map((v) => (getPrintableVal(v))).join('┃')\n : '';\n }\n if (dataType.match(/integer|number/g)) {\n if (schema.minimum !== undefined || schema.exclusiveMinimum !== undefined) {\n constrain += schema.minimum !== undefined ? `Min ${schema.minimum}` : `More than ${schema.exclusiveMinimum}`;\n }\n if (schema.maximum !== undefined || schema.exclusiveMaximum !== undefined) {\n constrain += schema.maximum !== undefined ? `${constrain ? '┃' : ''}Max ${schema.maximum}` : `${constrain ? '┃' : ''}Less than ${schema.exclusiveMaximum}`;\n }\n if (schema.multipleOf !== undefined) {\n constrain += `${constrain ? '┃' : ''} multiple of ${schema.multipleOf}`;\n }\n }\n if (dataType.match(/string/g)) {\n if (schema.minLength !== undefined && schema.maxLength !== undefined) {\n constrain += `${constrain ? '┃' : ''}${schema.minLength} to ${schema.maxLength} chars`;\n } else if (schema.minLength !== undefined) {\n constrain += `${constrain ? '┃' : ''}Min ${schema.minLength} chars`;\n } else if (schema.maxLength !== undefined) {\n constrain += `Max ${constrain ? '┃' : ''}${schema.maxLength} chars`;\n }\n }\n info.constrain = constrain;\n info.html = `${info.type}~|~${info.readOrWriteOnly}~|~${info.constrain}~|~${info.default}~|~${info.allowedValues}~|~${info.pattern}~|~${info.description}~|~${schema.title || ''}~|~${info.deprecated ? 'deprecated' : ''}`;\n return info;\n}\n\nexport function nestExampleIfPresent(example) {\n if (typeof example === 'boolean' || typeof example === 'number') {\n return {\n Example: { value: `${example}` },\n };\n }\n if (example === '') {\n return {\n Example: { value: '' },\n };\n }\n return example ? { Example: { value: example } } : example;\n}\n\n/**\n * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes)\n * [{\n * exampleVal : 'value to be rendered on the input control (text-box)',\n * exampleList : [\n * value : '',\n * printableValue: '',\n * summary : '',\n * description : ''\n * ]\n * }]\n * */\nexport function normalizeExamples(examples, dataType = 'string') {\n if (!examples) {\n return {\n exampleVal: '',\n exampleList: [],\n };\n }\n if (examples.constructor === Object) {\n const exampleList = Object.values(examples)\n .filter((v) => (v['x-example-show-value'] !== false))\n .map((v) => ({\n value: (typeof v.value === 'boolean' || typeof v.value === 'number' ? `${v.value}` : (v.value || '')),\n printableValue: getPrintableVal(v.value),\n summary: v.summary || '',\n description: v.description || '',\n }));\n const exampleVal = exampleList.length > 0\n ? exampleList[0].value\n : '';\n return { exampleVal, exampleList };\n }\n\n // This is non-standard way to provide example but will support for now\n if (!Array.isArray(examples)) {\n examples = examples ? [examples] : [];\n }\n\n if (examples.length === 0) {\n return {\n exampleVal: '',\n exampleList: [],\n };\n }\n\n if (dataType === 'array') {\n const [exampleVal] = examples;\n const exampleList = examples.map((v) => ({\n value: v,\n printableValue: getPrintableVal(v),\n }));\n return { exampleVal, exampleList };\n }\n\n const exampleVal = examples[0].toString();\n const exampleList = examples.map((v) => ({\n value: v.toString(),\n printableValue: getPrintableVal(v),\n }));\n return { exampleVal, exampleList };\n}\n\nexport function anyExampleWithSummaryOrDescription(examples) {\n return examples.some((x) => x.summary?.length > 0 || x.description?.length > 0);\n}\n\nexport function getSampleValueByType(schemaObj) {\n const example = schemaObj.examples\n ? schemaObj.examples[0]\n : schemaObj.example === null\n ? null\n : schemaObj.example || undefined;\n if (example === '') { return ''; }\n if (example === null) { return null; }\n if (example === 0) { return 0; }\n if (example === false) { return false; }\n if (example instanceof Date) {\n switch (schemaObj.format.toLowerCase()) {\n case 'date':\n return example.toISOString().split('T')[0];\n case 'time':\n return example.toISOString().split('T')[1];\n default:\n return example.toISOString();\n }\n }\n if (example) { return example; }\n\n if (Object.keys(schemaObj).length === 0) {\n return null;\n }\n if (schemaObj.$ref) {\n // Indicates a Circular ref\n return schemaObj.$ref;\n }\n if (schemaObj.const === false || schemaObj.const === 0 || schemaObj.const === null || schemaObj.const === '') {\n return schemaObj.const;\n }\n if (schemaObj.const) {\n return schemaObj.const;\n }\n const typeValue = Array.isArray(schemaObj.type) ? schemaObj.type[0] : schemaObj.type;\n if (!typeValue) {\n return '?';\n }\n if (typeValue.match(/^integer|^number/g)) {\n const multipleOf = Number.isNaN(Number(schemaObj.multipleOf)) ? undefined : Number(schemaObj.multipleOf);\n const maximum = Number.isNaN(Number(schemaObj.maximum)) ? undefined : Number(schemaObj.maximum);\n const minimumPossibleVal = Number.isNaN(Number(schemaObj.minimum))\n ? Number.isNaN(Number(schemaObj.exclusiveMinimum))\n ? maximum || 0\n : Number(schemaObj.exclusiveMinimum) + (typeValue.startsWith('integer') ? 1 : 0.001)\n : Number(schemaObj.minimum);\n const finalVal = multipleOf\n ? multipleOf >= minimumPossibleVal\n ? multipleOf\n : minimumPossibleVal % multipleOf === 0\n ? minimumPossibleVal\n : Math.ceil(minimumPossibleVal / multipleOf) * multipleOf\n : minimumPossibleVal;\n return finalVal;\n }\n if (typeValue.match(/^boolean/g)) { return false; }\n if (typeValue.match(/^null/g)) { return null; }\n if (typeValue.match(/^string/g)) {\n if (schemaObj.enum) { return schemaObj.enum[0]; }\n if (schemaObj.const) { return schemaObj.const; }\n if (schemaObj.pattern) { return schemaObj.pattern; }\n if (schemaObj.format) {\n const u = `${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);\n switch (schemaObj.format.toLowerCase()) {\n case 'url':\n case 'uri':\n return 'http://example.com';\n case 'date':\n return (new Date(0)).toISOString().split('T')[0];\n case 'time':\n return (new Date(0)).toISOString().split('T')[1];\n case 'date-time':\n return (new Date(0)).toISOString();\n case 'duration':\n return 'P3Y6M4DT12H30M5S'; // P=Period 3-Years 6-Months 4-Days 12-Hours 30-Minutes 5-Seconds\n case 'email':\n case 'idn-email':\n return 'user@example.com';\n case 'hostname':\n case 'idn-hostname':\n return 'www.example.com';\n case 'ipv4':\n return '198.51.100.42';\n case 'ipv6':\n return '2001:0db8:5b96:0000:0000:426f:8e17:642a';\n case 'uuid':\n return [u.substr(0, 8), u.substr(8, 4), `4000-8${u.substr(13, 3)}`, u.substr(16, 12)].join('-');\n default:\n return '';\n }\n } else {\n const minLength = Number.isNaN(schemaObj.minLength) ? undefined : Number(schemaObj.minLength);\n const maxLength = Number.isNaN(schemaObj.maxLength) ? undefined : Number(schemaObj.maxLength);\n const finalLength = minLength || (maxLength > 6 ? 6 : maxLength || undefined);\n return finalLength ? 'A'.repeat(finalLength) : 'string';\n }\n }\n // If type cannot be determined\n return '?';\n}\n\n/*\njson2xml- TestCase\n {\n 'prop1' : 'one',\n 'prop2' : 'two',\n 'prop3' : [ 'a', 'b', 'c' ],\n 'prop4' : {\n 'ob1' : 'val-1',\n 'ob2' : 'val-2'\n }\n }\n \n simple\n \n <0>a\n <1>b\n <2>c\n \n \n val-1\n val-2\n \n \n*/\nexport function json2xml(obj, level = 1) {\n const indent = ' '.repeat(level);\n let xmlText = '';\n if (level === 1 && typeof obj !== 'object') {\n return `\\n${indent}${obj.toString()}`;\n }\n for (const prop in obj) {\n const tagNameOrProp = (obj[prop]['::XML_TAG'] || prop);\n let tagName = '';\n if (Array.isArray(obj[prop])) {\n tagName = tagNameOrProp[0]['::XML_TAG'] || `${prop}`;\n } else {\n tagName = tagNameOrProp;\n }\n if (prop.startsWith('::')) {\n continue;\n }\n if (Array.isArray(obj[prop])) {\n xmlText = `${xmlText}\\n${indent}<${tagName}>${json2xml(obj[prop], level + 1)}\\n${indent}`;\n } else if (typeof obj[prop] === 'object') {\n xmlText = `${xmlText}\\n${indent}<${tagName}>${json2xml(obj[prop], level + 1)}\\n${indent}`;\n } else {\n xmlText = `${xmlText}\\n${indent}<${tagName}>${obj[prop].toString()}`;\n }\n }\n return xmlText;\n}\n\nfunction addSchemaInfoToExample(schema, obj) {\n if (typeof obj !== 'object' || obj === null) {\n return;\n }\n if (schema.title) {\n obj['::TITLE'] = schema.title;\n }\n if (schema.description) {\n obj['::DESCRIPTION'] = schema.description;\n }\n if (schema.xml?.name) {\n obj['::XML_TAG'] = schema.xml?.name;\n }\n if (schema.xml?.wrapped) {\n obj['::XML_WRAP'] = schema.xml?.wrapped.toString();\n }\n}\n\nfunction removeTitlesAndDescriptions(obj) {\n if (typeof obj !== 'object' || obj === null) {\n return;\n }\n delete obj['::TITLE'];\n delete obj['::DESCRIPTION'];\n delete obj['::XML_TAG'];\n delete obj['::XML_WRAP'];\n for (const k in obj) {\n removeTitlesAndDescriptions(obj[k]);\n }\n}\n\nfunction addPropertyExampleToObjectExamples(example, obj, propertyKey) {\n for (const key in obj) {\n obj[key][propertyKey] = example;\n }\n}\n\nfunction mergePropertyExamples(obj, propertyName, propExamples) {\n // Create an example for each variant of the propertyExample, merging them with the current (parent) example\n let i = 0;\n const maxCombinations = 10;\n const mergedObj = {};\n for (const exampleKey in obj) {\n for (const propExampleKey in propExamples) {\n mergedObj[`example-${i}`] = { ...obj[exampleKey] };\n mergedObj[`example-${i}`][propertyName] = propExamples[propExampleKey];\n i++;\n if (i >= maxCombinations) {\n break;\n }\n }\n if (i >= maxCombinations) {\n break;\n }\n }\n return mergedObj;\n}\n\n/* For changing JSON-Schema to a Sample Object, as per the schema (to generate examples based on schema) */\nexport function schemaToSampleObj(schema, config = { }) {\n let obj = {};\n if (!schema) {\n return;\n }\n if (schema.allOf) {\n const objWithAllProps = {};\n\n if (schema.allOf.length === 1 && !schema.allOf[0]?.properties && !schema.allOf[0]?.items) {\n // If allOf has single item and the type is not an object or array, then its a primitive\n if (schema.allOf[0].$ref) {\n return '{ }';\n }\n if (schema.allOf[0].readOnly && config.includeReadOnly) {\n const tempSchema = schema.allOf[0];\n return getSampleValueByType(tempSchema);\n }\n return;\n }\n\n schema.allOf.forEach((v) => {\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\n const partialObj = schemaToSampleObj(v, config);\n Object.assign(objWithAllProps, partialObj);\n } else if (v.type === 'array' || v.items) {\n const partialObj = [schemaToSampleObj(v, config)];\n Object.assign(objWithAllProps, partialObj);\n } else if (v.type) {\n const prop = `prop${Object.keys(objWithAllProps).length}`;\n objWithAllProps[prop] = getSampleValueByType(v);\n } else {\n return '';\n }\n });\n\n obj = objWithAllProps;\n } else if (schema.oneOf) {\n // 1. First create example with scheme.properties\n const objWithSchemaProps = {};\n if (schema.properties) {\n for (const propertyName in schema.properties) {\n if (schema.properties[propertyName].properties || schema.properties[propertyName].properties?.items) {\n objWithSchemaProps[propertyName] = schemaToSampleObj(schema.properties[propertyName], config);\n } else {\n objWithSchemaProps[propertyName] = getSampleValueByType(schema.properties[propertyName]);\n }\n }\n }\n\n if (schema.oneOf.length > 0) {\n /*\n oneOf:\n - type: object\n properties:\n option1_PropA:\n type: string\n option1_PropB:\n type: string\n - type: object\n properties:\n option2_PropX:\n type: string\n properties:\n prop1:\n type: string\n prop2:\n type: string\n minLength: 10\n\n The aboove Schem should generate the following 2 examples\n\n Example-1\n {\n prop1: 'string',\n prop2: 'AAAAAAAAAA', <-- min-length 10\n option1_PropA: 'string',\n option1_PropB: 'string'\n }\n\n Example-2\n {\n prop1: 'string',\n prop2: 'AAAAAAAAAA', <-- min-length 10\n option2_PropX: 'string'\n }\n */\n let i = 0;\n // Merge all examples of each oneOf-schema\n for (const key in schema.oneOf) {\n const oneOfSamples = schemaToSampleObj(schema.oneOf[key], config);\n for (const sampleKey in oneOfSamples) {\n // 2. In the final example include a one-of item along with properties\n let finalExample;\n if (Object.keys(objWithSchemaProps).length > 0) {\n if (oneOfSamples[sampleKey] === null || typeof oneOfSamples[sampleKey] !== 'object') {\n // This doesn't really make sense since every oneOf schema _should_ be an object if there are common properties, so we'll skip this\n continue;\n } else {\n finalExample = Object.assign(oneOfSamples[sampleKey], objWithSchemaProps);\n }\n } else {\n finalExample = oneOfSamples[sampleKey];\n }\n obj[`example-${i}`] = finalExample;\n addSchemaInfoToExample(schema.oneOf[key], obj[`example-${i}`]);\n i++;\n }\n }\n }\n } else if (schema.anyOf) {\n // First generate values for regular properties\n let commonObj;\n if (schema.type === 'object' || schema.properties) {\n commonObj = { 'example-0': {} };\n for (const propertyName in schema.properties) {\n if (schema.example) {\n commonObj = schema;\n break;\n }\n if (schema.properties[propertyName].deprecated && !config.includeDeprecated) { continue; }\n if (schema.properties[propertyName].readOnly && !config.includeReadOnly) { continue; }\n if (schema.properties[propertyName].writeOnly && !config.includeWriteOnly) { continue; }\n commonObj = mergePropertyExamples(commonObj, propertyName, schemaToSampleObj(schema.properties[propertyName], config));\n }\n }\n\n // Combine every variant of the regular properties with every variant of the anyOf samples\n let i = 0;\n for (const key in schema.anyOf) {\n const anyOfSamples = schemaToSampleObj(schema.anyOf[key], config);\n for (const sampleKey in anyOfSamples) {\n if (typeof commonObj !== 'undefined') {\n for (const commonKey in commonObj) {\n obj[`example-${i}`] = { ...commonObj[commonKey], ...anyOfSamples[sampleKey] };\n }\n } else {\n obj[`example-${i}`] = anyOfSamples[sampleKey];\n }\n addSchemaInfoToExample(schema.anyOf[key], obj[`example-${i}`]);\n i++;\n }\n }\n } else if (schema.type === 'object' || schema.properties) {\n obj['example-0'] = {};\n addSchemaInfoToExample(schema, obj['example-0']);\n if (schema.example) {\n obj['example-0'] = schema.example;\n } else {\n for (const propertyName in schema.properties) {\n if (schema.properties[propertyName]?.deprecated && !config.includeDeprecated) { continue; }\n if (schema.properties[propertyName]?.readOnly && !config.includeReadOnly) { continue; }\n if (schema.properties[propertyName]?.writeOnly && !config.includeWriteOnly) { continue; }\n if (schema.properties[propertyName]?.type === 'array' || schema.properties[propertyName]?.items) {\n if (schema.properties[propertyName].example) {\n addPropertyExampleToObjectExamples(schema.properties[propertyName].example, obj, propertyName);\n } else if (schema.properties[propertyName]?.items?.example) { // schemas and properties support single example but not multiple examples.\n addPropertyExampleToObjectExamples([schema.properties[propertyName].items.example], obj, propertyName);\n } else {\n const itemSamples = schemaToSampleObj(schema.properties[propertyName].items, config);\n if (config.useXmlTagForProp) {\n const xmlTagName = schema.properties[propertyName].xml?.name || propertyName;\n if (schema.properties[propertyName].xml?.wrapped) {\n const wrappedItemSample = JSON.parse(`{ \"${xmlTagName}\" : { \"${xmlTagName}\" : ${JSON.stringify(itemSamples['example-0'])} } }`);\n obj = mergePropertyExamples(obj, xmlTagName, wrappedItemSample);\n } else {\n obj = mergePropertyExamples(obj, xmlTagName, itemSamples);\n }\n } else {\n const arraySamples = [];\n for (const key in itemSamples) {\n arraySamples[key] = [itemSamples[key]];\n }\n obj = mergePropertyExamples(obj, propertyName, arraySamples);\n }\n }\n continue;\n }\n obj = mergePropertyExamples(obj, propertyName, schemaToSampleObj(schema.properties[propertyName], config));\n }\n }\n } else if (schema.type === 'array' || schema.items) {\n if (schema.items || schema.example) {\n if (schema.example) {\n obj['example-0'] = schema.example;\n } else if (schema.items?.example) { // schemas and properties support single example but not multiple examples.\n obj['example-0'] = [schema.items.example];\n } else {\n const samples = schemaToSampleObj(schema.items, config);\n let i = 0;\n for (const key in samples) {\n obj[`example-${i}`] = [samples[key]];\n addSchemaInfoToExample(schema.items, obj[`example-${i}`]);\n i++;\n }\n }\n } else {\n obj['example-0'] = [];\n }\n } else {\n return { 'example-0': getSampleValueByType(schema) };\n }\n return obj;\n}\n\nfunction generateMarkdownForArrayAndObjectDescription(schema, level = 0) {\n let markdown = ((schema.description || schema.title) && (schema.minItems || schema.maxItems)) ? '' : '';\n if (schema.title) {\n if (schema.description) {\n markdown = `${markdown} ${schema.title}: ${schema.description}
    `;\n } else {\n markdown = `${markdown} ${schema.title}
    `;\n }\n } else if (schema.description) {\n markdown = `${markdown} ${schema.description}
    `;\n }\n if (schema.minItems) {\n markdown = `${markdown} Min Items: ${schema.minItems}`;\n }\n if (schema.maxItems) {\n markdown = `${markdown} Max Items: ${schema.maxItems}`;\n }\n if (level > 0 && schema.items?.description) {\n let itemsMarkdown = '';\n if (schema.items.minProperties) {\n itemsMarkdown = `Min Properties: ${schema.items.minProperties}`;\n }\n if (schema.items.maxProperties) {\n itemsMarkdown = `${itemsMarkdown} Max Properties: ${schema.items.maxProperties}`;\n }\n markdown = `${markdown} ⮕ ${itemsMarkdown} [ ${schema.items.description} ] `;\n }\n return markdown;\n}\n/**\n * For changing OpenAPI-Schema to an Object Notation,\n * This Object would further be an input to UI Components to generate an Object-Tree\n * @param {object} schema - Schema object from OpenAPI spec\n * @param {object} obj - recursivly pass this object to generate object notation\n * @param {number} level - recursion level\n * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion\n */\nexport function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {\n if (!schema) {\n return;\n }\n if (schema.allOf) {\n const objWithAllProps = {};\n if (schema.allOf.length === 1 && !schema.allOf[0].properties && !schema.allOf[0].items) {\n // If allOf has single item and the type is not an object or array, then its a primitive\n const tempSchema = schema.allOf[0];\n return `${getTypeInfo(tempSchema).html}`;\n }\n // If allOf is an array of multiple elements, then all the keys makes a single object\n schema.allOf.map((v, i) => {\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\n const propSuffix = (v.anyOf || v.oneOf) && i > 0 ? i : '';\n const partialObj = schemaInObjectNotation(v, {}, (level + 1), propSuffix);\n Object.assign(objWithAllProps, partialObj);\n } else if (v.type === 'array' || v.items) {\n const partialObj = schemaInObjectNotation(v, {}, (level + 1));\n Object.assign(objWithAllProps, partialObj);\n } else if (v.type) {\n const prop = `prop${Object.keys(objWithAllProps).length}`;\n const typeObj = getTypeInfo(v);\n objWithAllProps[prop] = `${typeObj.html}`;\n } else {\n return '';\n }\n });\n obj = objWithAllProps;\n } else if (schema.anyOf || schema.oneOf) {\n obj['::description'] = schema.description || '';\n // 1. First iterate the regular properties\n if (schema.type === 'object' || schema.properties) {\n obj['::description'] = schema.description || '';\n obj['::type'] = 'object';\n // obj['::deprecated'] = schema.deprecated || false;\n for (const key in schema.properties) {\n if (schema.required && schema.required.includes(key)) {\n obj[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n } else {\n obj[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n }\n }\n }\n // 2. Then show allof/anyof objects\n const objWithAnyOfProps = {};\n const xxxOf = schema.anyOf ? 'anyOf' : 'oneOf';\n schema[xxxOf].forEach((v, index) => {\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\n const partialObj = schemaInObjectNotation(v, {});\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`] = partialObj;\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`]['::readwrite'] = ''; // xxx-options cannot be read or write only\n objWithAnyOfProps['::type'] = 'xxx-of-option';\n } else if (v.type === 'array' || v.items) {\n // This else-if block never seems to get executed\n const partialObj = schemaInObjectNotation(v, {});\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`] = partialObj;\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`]['::readwrite'] = ''; // xxx-options cannot be read or write only\n objWithAnyOfProps['::type'] = 'xxx-of-array';\n } else {\n const prop = `::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`;\n objWithAnyOfProps[prop] = `${getTypeInfo(v).html}`;\n objWithAnyOfProps['::type'] = 'xxx-of-option';\n }\n });\n obj[(schema.anyOf ? `::ANY~OF ${suffix}` : `::ONE~OF ${suffix}`)] = objWithAnyOfProps;\n // obj['::type'] = 'object';\n obj['::type'] = 'object';\n } else if (Array.isArray(schema.type)) {\n // When a property has multiple types, then check further if any of the types are array or object, if yes then modify the schema using one-of\n // Clone the schema - as it will be modified to replace multi-data-types with one-of;\n const subSchema = JSON.parse(JSON.stringify(schema));\n const primitiveType = [];\n const complexTypes = [];\n subSchema.type.forEach((v) => {\n if (v.match(/integer|number|string|null|boolean/g)) {\n primitiveType.push(v);\n } else if (v === 'array' && typeof subSchema.items?.type === 'string' && subSchema.items?.type.match(/integer|number|string|null|boolean/g)) {\n // Array with primitive types should also be treated as primitive type\n if (subSchema.items.type === 'string' && subSchema.items.format) {\n primitiveType.push(`[${subSchema.items.format}]`);\n } else {\n primitiveType.push(`[${subSchema.items.type}]`);\n }\n } else {\n complexTypes.push(v);\n }\n });\n let multiPrimitiveTypes;\n if (primitiveType.length > 0) {\n subSchema.type = primitiveType.join(primitiveType.length === 2 ? ' or ' : '┃');\n multiPrimitiveTypes = getTypeInfo(subSchema);\n if (complexTypes.length === 0) {\n return `${multiPrimitiveTypes?.html || ''}`;\n }\n }\n if (complexTypes.length > 0) {\n obj['::type'] = 'object';\n const multiTypeOptions = {\n '::type': 'xxx-of-option',\n };\n\n // Generate ONE-OF options for complexTypes\n complexTypes.forEach((v, i) => {\n if (v === 'null') {\n multiTypeOptions[`::OPTION~${i + 1}`] = 'NULL~|~~|~~|~~|~~|~~|~~|~~|~';\n } else if ('integer, number, string, boolean,'.includes(`${v},`)) {\n subSchema.type = Array.isArray(v) ? v.join('┃') : v;\n const primitiveTypeInfo = getTypeInfo(subSchema);\n multiTypeOptions[`::OPTION~${i + 1}`] = primitiveTypeInfo.html;\n } else if (v === 'object') {\n // If object type iterate all the properties and create an object-type-option\n const objTypeOption = {\n '::title': schema.title || '',\n '::description': schema.description || '',\n '::type': 'object',\n '::deprecated': schema.deprecated || false,\n };\n for (const key in schema.properties) {\n if (schema.required && schema.required.includes(key)) {\n objTypeOption[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n } else {\n objTypeOption[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n }\n }\n multiTypeOptions[`::OPTION~${i + 1}`] = objTypeOption;\n } else if (v === 'array') {\n multiTypeOptions[`::OPTION~${i + 1}`] = {\n '::title': schema.title || '',\n '::description': schema.description || '',\n '::type': 'array',\n '::props': schemaInObjectNotation(schema.items, {}, (level + 1)),\n };\n }\n });\n multiTypeOptions[`::OPTION~${complexTypes.length + 1}`] = multiPrimitiveTypes?.html || '';\n obj['::ONE~OF'] = multiTypeOptions;\n }\n } else if (schema.type === 'object' || schema.properties) { // If Object\n obj['::title'] = schema.title || '';\n obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);\n obj['::type'] = 'object';\n if ((Array.isArray(schema.type) && schema.type.includes('null')) || schema.nullable) {\n obj['::dataTypeLabel'] = 'object or null';\n }\n obj['::deprecated'] = schema.deprecated || false;\n obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';\n for (const key in schema.properties) {\n if (schema.required && schema.required.includes(key)) {\n obj[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n } else {\n obj[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\n }\n }\n for (const key in schema.patternProperties) {\n obj[`[pattern: ${key}]`] = schemaInObjectNotation(schema.patternProperties[key], obj, (level + 1));\n }\n if (schema.additionalProperties) {\n obj['[any-key]'] = schemaInObjectNotation(schema.additionalProperties, {});\n }\n } else if (schema.type === 'array' || schema.items) { // If Array\n obj['::title'] = schema.title || '';\n obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);\n obj['::type'] = 'array';\n if ((Array.isArray(schema.type) && schema.type.includes('null')) || schema.nullable) {\n obj['::dataTypeLabel'] = 'array or null';\n }\n obj['::deprecated'] = schema.deprecated || false;\n obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';\n if (schema.items?.items) {\n obj['::array-type'] = schema.items.items.type;\n }\n obj['::props'] = schemaInObjectNotation(schema.items, {}, (level + 1));\n } else {\n const typeObj = getTypeInfo(schema);\n if (typeObj?.html) {\n return `${typeObj.html}`;\n }\n return '';\n }\n return obj;\n}\n\n/* Create Example object */\nexport function generateExample(schema, mimeType, examples = '', example = '', includeReadOnly = true, includeWriteOnly = true, outputType = 'json', includeGeneratedExample = false) {\n const finalExamples = [];\n // First check if examples is provided\n if (examples) {\n for (const eg in examples) {\n let egContent = '';\n let egFormat = 'json';\n if (mimeType?.toLowerCase().includes('json')) {\n if (outputType === 'text') {\n egContent = typeof examples[eg].value === 'string' ? examples[eg].value : JSON.stringify(examples[eg].value, undefined, 2);\n egFormat = 'text';\n } else {\n egContent = examples[eg].value;\n if (typeof examples[eg].value === 'string') {\n try {\n // const fixedJsonString = examples[eg].value.replace((/([\\w]+)(:)/g), '\"$1\"$2').replace((/'/g), '\"');\n const fixedJsonString = examples[eg].value;\n egContent = JSON.parse(fixedJsonString);\n egFormat = 'json';\n } catch (err) {\n egFormat = 'text';\n egContent = examples[eg].value;\n }\n }\n }\n } else {\n egContent = examples[eg].value;\n egFormat = 'text';\n }\n\n finalExamples.push({\n exampleId: eg,\n exampleSummary: examples[eg].summary || eg,\n exampleDescription: examples[eg].description || '',\n exampleType: mimeType,\n exampleValue: egContent,\n exampleFormat: egFormat,\n });\n }\n } else if (example) {\n let egContent = '';\n let egFormat = 'json';\n if (mimeType?.toLowerCase().includes('json')) {\n if (outputType === 'text') {\n egContent = typeof example === 'string' ? example : JSON.stringify(example, undefined, 2);\n egFormat = 'text';\n } else if (typeof example === 'object') {\n egContent = example;\n egFormat = 'json';\n } else if (typeof example === 'string') {\n try {\n egContent = JSON.parse(example);\n egFormat = 'json';\n } catch (err) {\n egFormat = 'text';\n egContent = example;\n }\n }\n } else {\n egContent = example;\n egFormat = 'text';\n }\n finalExamples.push({\n exampleId: 'Example',\n exampleSummary: '',\n exampleDescription: '',\n exampleType: mimeType,\n exampleValue: egContent,\n exampleFormat: egFormat,\n });\n }\n // If schema-level examples are not provided or includeGeneratedExample === true then generate one based on the schema field types\n if (finalExamples.length === 0 || includeGeneratedExample === true) {\n if (schema) {\n if (schema.example) {\n // Note: Deprecated: The 'example' property has been deprecated in 3.1.0 in favor of the JSON Schema 'examples' keyword\n finalExamples.push({\n exampleId: 'Example',\n exampleSummary: '',\n exampleDescription: '',\n exampleType: mimeType,\n exampleValue: schema.example,\n exampleFormat: ((mimeType?.toLowerCase().includes('json') && typeof schema.example === 'object') ? 'json' : 'text'),\n });\n } else if (mimeType?.toLowerCase().includes('json') || mimeType?.toLowerCase().includes('text') || mimeType?.toLowerCase().includes('*/*') || mimeType?.toLowerCase().includes('xml')) {\n let xmlRootStart = '';\n let xmlRootEnd = '';\n let exampleFormat = '';\n let exampleValue = '';\n if (mimeType?.toLowerCase().includes('xml')) {\n xmlRootStart = schema.xml?.name ? `<${schema.xml.name} ${schema.xml.namespace ? `xmlns=\"${schema.xml.namespace}\"` : ''}>` : '';\n xmlRootEnd = schema.xml?.name ? `` : '';\n exampleFormat = 'text';\n } else {\n exampleFormat = outputType;\n }\n const samples = schemaToSampleObj(schema, { includeReadOnly, includeWriteOnly, deprecated: true, useXmlTagForProp: mimeType?.toLowerCase().includes('xml') });\n let i = 0;\n for (const samplesKey in samples) {\n if (!samples[samplesKey]) {\n continue;\n }\n const summary = samples[samplesKey]['::TITLE'] || `Example ${++i}`;\n const description = samples[samplesKey]['::DESCRIPTION'] || '';\n if (mimeType?.toLowerCase().includes('xml')) {\n exampleValue = `\\n${xmlRootStart}${json2xml(samples[samplesKey], 1)}\\n${xmlRootEnd}`;\n } else {\n removeTitlesAndDescriptions(samples[samplesKey]);\n exampleValue = outputType === 'text' ? JSON.stringify(samples[samplesKey], null, 2) : samples[samplesKey];\n }\n\n finalExamples.push({\n exampleId: samplesKey,\n exampleSummary: summary,\n exampleDescription: description,\n exampleType: mimeType,\n exampleFormat,\n exampleValue,\n });\n }\n } else if (mimeType?.toLowerCase().includes('jose')) {\n finalExamples.push({\n exampleId: 'Example',\n exampleSummary: 'Base64 Encoded',\n exampleDescription: '',\n exampleType: mimeType,\n exampleValue: schema.pattern || 'bXJpbg==',\n exampleFormat: 'text',\n });\n } else {\n finalExamples.push({\n exampleId: 'Example',\n exampleSummary: '',\n exampleDescription: '',\n exampleType: mimeType,\n exampleValue: '',\n exampleFormat: 'text',\n });\n }\n } else {\n // No Example or Schema provided (should never reach here)\n finalExamples.push({\n exampleId: 'Example',\n exampleSummary: '',\n exampleDescription: '',\n exampleType: mimeType,\n exampleValue: '',\n exampleFormat: 'text',\n });\n }\n }\n return finalExamples;\n}\n\nfunction getSerializeStyleForContentType(contentType) {\n if (contentType === 'application/json') {\n return 'json';\n }\n if (contentType === 'application/xml') {\n return 'xml';\n }\n return null;\n}\n\nexport function getSchemaFromParam(param) {\n if (param.schema) {\n return [param.schema, null, null];\n }\n if (param.content) {\n // we gonna use the first content-encoding\n for (const contentType of Object.keys(param.content)) {\n if (param.content[contentType].schema) {\n return [param.content[contentType].schema, getSerializeStyleForContentType(contentType), param.content[contentType]];\n }\n }\n }\n return [null, null, null];\n}\n","import { LitElement, html, css } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport FontStyles from '../styles/font-styles';\nimport SchemaStyles from '../styles/schema-styles';\nimport CustomStyles from '../styles/custom-styles';\n\nexport default class SchemaTable extends LitElement {\n static get properties() {\n return {\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\n data: { type: Object },\n };\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\n if (!this.schemaDescriptionExpanded || !'true false'.includes(this.schemaDescriptionExpanded)) { this.schemaDescriptionExpanded = 'false'; }\n if (!this.schemaHideReadOnly || !'true false'.includes(this.schemaHideReadOnly)) { this.schemaHideReadOnly = 'true'; }\n if (!this.schemaHideWriteOnly || !'true false'.includes(this.schemaHideWriteOnly)) { this.schemaHideWriteOnly = 'true'; }\n }\n\n static get styles() {\n return [\n FontStyles,\n SchemaStyles,\n css`\n .table {\n font-size: var(--font-size-small);\n text-align: left;\n line-height: calc(var(--font-size-small) + 6px);\n }\n .param-table{\n border-radius: 4px;\n border:1px solid var(--light-border-color);\n border-bottom: none;\n margin-top: 10px;\n font-size: 14px;\n }\n .param-table .tr {\n border-bottom: 1px solid var(--light-border-color);\n display: grid;\n grid-template-columns: 3fr 2fr 4fr;\n overflow: hidden;\n }\n .param-table .td {\n padding: 4px 0;\n }\n .param-table .key {\n padding: 12px 10px 12px;\n }\n .table .key-descr {\n padding: 12px 10px 12px;\n }\n .table .key-descr p {\n margin: 0px;\n display: inline;\n }\n .key.deprecated .key-label {\n color: var(--red);\n }\n .deprecated-label{\n color: #ef6660;\n padding: 1px 5px;\n font-size: 12px;\n border: 1px solid #ef6660;\n border-radius: 4px;\n }\n .key-label {\n background-color: #f8f7fc;\n border-radius: 4px;\n padding: 0.2em 0.4em;\n font-family: var(--font-mono);\n font-size: 12px;\n }\n .param-table .key-type {\n border-left:1px solid var(--light-border-color);\n border-right:1px solid var(--light-border-color);\n padding: 12px 10px 12px;\n }\n .object-body .key-type {\n white-space: normal;\n color:#4A4A4A;\n font-family: var(--font-mono);\n font-size: 12px;\n }\n .collapsed-all-descr .tr:not(.expanded-descr) {\n max-height: calc(var(--font-size-regular) + var(--font-size-regular) + 10px);\n }\n .collapsed-all-descr .tr:not(.expanded-descr) .td p, .collapsed-all-descr .tr:not(.expanded-descr) .key, .collapsed-all-descr .tr:not(.expanded-descr) .key-type {\n text-overflow: ellipsis;\n display: inline;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n }\n .obj-toggle {\n padding: 0 2px;\n border-radius:2px;\n border: 1px solid transparent;\n display: inline-block;\n margin-left: -16px;\n color:var(--primary-color);\n cursor:pointer;\n font-size: calc(var(--font-size-small) + 4px);\n font-family: var(--font-mono);\n background-clip: border-box;\n }\n .obj-toggle:hover {\n border-color: var(--primary-color);\n }\n .tr.expanded + .object-body {\n display:block;\n }\n .tr.collapsed + .object-body {\n display:none;\n }`,\n CustomStyles,\n ];\n }\n\n /* eslint-disable indent */\n render() {\n return html`\n
    this.handleAllEvents(e)}\">\n
    \n
    ${this.data?.['::type'] || ''}
    \n ${(this.data && this.allowSchemaDescriptionExpandToggle === 'true')\n ? html`\n
    \n
    \n ${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}\n
    \n `\n : ''\n }\n
    \n ${this.data?.['::description']\n ? html` ${unsafeHTML(marked(this.data['::description'] || ''))}`\n : ''\n }\n ${this.data\n ? html`
    \n
    \n
    Field
    \n
    Type
    \n
    Description
    \n
    \n ${this.generateTree(\n this.data['::type'] === 'array' ? this.data['::props'] : this.data,\n this.data['::type'],\n this.data['::array-type'],\n )}\n
    \n
    `\n : html`

    Schema not found

    `\n }\n \n `;\n }\n\n generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '') {\n if (this.schemaHideReadOnly === 'true') {\n if (dataType === 'array') {\n if (readOrWrite === 'readonly') {\n return;\n }\n }\n if (data && data['::readwrite'] === 'readonly') {\n return;\n }\n }\n if (this.schemaHideWriteOnly === 'true') {\n if (dataType === 'array') {\n if (readOrWrite === 'writeonly') {\n return;\n }\n }\n if (data && data['::readwrite'] === 'writeonly') {\n return;\n }\n }\n if (!data) {\n return html`
    \n
    \n ${key.replace('::OPTION~', '')}\n
    \n
    \n ${\n dataType === 'array'\n ? html` [ ] `\n : dataType === 'object'\n ? html` { } `\n : html` schema undefined `\n }\n
    \n
    ${unsafeHTML(marked(description)) || ''}
    \n
    `;\n }\n\n const newSchemaLevel = data['::type']?.startsWith('xxx-of') ? schemaLevel : (schemaLevel + 1);\n const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' || key.startsWith('::OPTION') ? indentLevel : (indentLevel + 1);\n const leftPadding = 10 * newIndentLevel; // 2 space indentation at each level\n if (Object.keys(data).length === 0) {\n return html`${key}`;\n }\n let keyLabel = '';\n let keyDescr = '';\n let isOneOfLabel = false;\n if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) {\n keyLabel = key.replace('::', '').replace('~', ' ');\n isOneOfLabel = true;\n } else if (key.startsWith('::OPTION')) {\n const parts = key.split('~');\n keyLabel = parts[1]; // eslint-disable-line prefer-destructuring\n keyDescr = parts[2]; // eslint-disable-line prefer-destructuring\n } else {\n keyLabel = key;\n }\n\n let detailObjType = '';\n if (data['::type'] === 'object') {\n if (dataType === 'array') {\n detailObjType = 'array of object'; // Array of Object\n } else {\n detailObjType = data['::dataTypeLabel'] || data['::type'];\n }\n } else if (data['::type'] === 'array') {\n if (dataType === 'array') {\n // detailObjType = 'array of array'; // Array of array\n detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array\n } else {\n detailObjType = data['::dataTypeLabel'] || data['::type'];\n }\n }\n\n if (typeof data === 'object') {\n return html`\n ${newSchemaLevel >= 0 && key\n ? html`\n
    \n
    \n ${(keyLabel || keyDescr)\n ? html`\n \n ${schemaLevel < this.schemaExpandLevel ? '-' : '+'}\n `\n : ''\n }\n ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION')\n ? html`${keyLabel}${keyDescr}`\n : keyLabel.endsWith('*')\n ? html`${data['::deprecated'] ? '❌' : ''} ${keyLabel.substring(0, keyLabel.length - 1)}*`\n : html`${data['::deprecated'] ? '❌' : ''} ${keyLabel === '::props' ? '' : keyLabel}`\n }\n ${data['::type'] === 'xxx-of' && dataType === 'array' ? html`ARRAY` : ''} \n
    \n
    \n ${(data['::type'] || '').includes('xxx-of') ? '' : detailObjType}\n ${data['::readwrite'] === 'readonly' ? ' 🆁' : data['::readwrite'] === 'writeonly' ? ' 🆆' : ''}\n
    \n
    ${unsafeHTML(marked(description || ''))}
    \n
    `\n : html`\n ${data['::type'] === 'array' && dataType === 'array'\n ? html`\n
    \n
    \n
    \n ${arrayType && arrayType !== 'object' ? `${dataType} of ${arrayType}` : dataType}\n
    \n
    \n
    `\n : ''\n }`\n }\n
    \n ${Array.isArray(data) && data[0]\n ? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}`\n : html`\n ${Object.keys(data).map((dataKey) => html`\n ${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey)\n ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'\n ? html`${this.generateTree(\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\n data[dataKey]['::type'],\n data[dataKey]['::array-type'] || '',\n dataKey,\n data[dataKey]['::description'],\n newSchemaLevel,\n newIndentLevel,\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\n )}`\n : ''\n : html`${this.generateTree(\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\n data[dataKey]['::type'],\n data[dataKey]['::array-type'] || '',\n dataKey,\n data[dataKey]?.['::description'] || '',\n newSchemaLevel,\n newIndentLevel,\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\n )}`\n }\n `)}\n `\n }\n
    \n `;\n }\n\n // For Primitive Data types\n // eslint-disable-next-line no-unused-vars\n const [type, readOrWriteOnly, constraint, defaultValue, allowedValues, pattern, schemaDescription, schemaTitle, deprecated] = data.split('~|~');\n if (readOrWriteOnly === '🆁' && this.schemaHideReadOnly === 'true') {\n return;\n }\n if (readOrWriteOnly === '🆆' && this.schemaHideWriteOnly === 'true') {\n return;\n }\n const dataTypeCss = type.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+]/g, '').substring(0, 4).toLowerCase();\n const typeDivider = type.replaceAll('┃', ' | ');\n const descrExpander = `${schemaDescription.length >= 50 || constraint || defaultValue || allowedValues || pattern ? '' : ''}`;\n let dataTypeHtml = '';\n if (dataType === 'array') {\n dataTypeHtml = html` \n
    \n [${typeDivider}] ${readOrWrite === 'readonly' ? '🆁' : readOrWrite === 'writeonly' ? '🆆' : ''}\n
    `;\n } else {\n dataTypeHtml = html` \n
    \n ${typeDivider} ${readOrWriteOnly}\n
    `;\n }\n return html`\n
    \n
    \n ${keyLabel?.endsWith('*')\n ? html`\n ${keyLabel.substring(0, keyLabel.length - 1)}*`\n : key.startsWith('::OPTION')\n ? html`${keyLabel}${keyDescr}`\n : html`${keyLabel ? html` ${keyLabel}` : html`${schemaTitle}`}`\n }\n
    \n ${dataTypeHtml}\n
    \n ${html`\n ${deprecated ? html`Deprecated` : ''}\n ${unsafeHTML(marked(dataType === 'array'\n ? `${descrExpander} ${description}`\n : schemaTitle\n ? `${descrExpander} ${schemaTitle}: ${schemaDescription}`\n : `${descrExpander} ${schemaDescription}`))}\n `\n }\n ${constraint ? html`
    Constraints: ${constraint}
    ` : ''}\n ${defaultValue ? html`
    Default: ${defaultValue}
    ` : ''}\n ${allowedValues ? html`
    ${type === 'const' ? 'Value' : 'Allowed'}: ${allowedValues}
    ` : ''}\n ${pattern ? html`
    Pattern: ${pattern}
    ` : ''}\n
    \n
    \n `;\n }\n /* eslint-enable indent */\n\n handleAllEvents(e) {\n if (e.target.classList.contains('obj-toggle')) {\n this.toggleObjectExpand(e);\n } else if (e.target.classList.contains('schema-multiline-toggle')) {\n this.schemaDescriptionExpanded = (this.schemaDescriptionExpanded === 'true' ? 'false' : 'true');\n } else if (e.target.classList.contains('descr-expand-toggle')) {\n const trEl = e.target.closest('.tr');\n if (trEl) {\n trEl.classList.toggle('expanded-descr');\n trEl.style.maxHeight = trEl.scrollHeight;\n }\n }\n }\n\n toggleObjectExpand(e) {\n const rowEl = e.target.closest('.tr');\n if (rowEl.classList.contains('expanded')) {\n rowEl.classList.add('collapsed');\n rowEl.classList.remove('expanded');\n e.target.innerText = '+';\n } else {\n rowEl.classList.remove('collapsed');\n rowEl.classList.add('expanded');\n e.target.innerText = '-';\n }\n }\n}\nif (!customElements.get('schema-table')) customElements.define('schema-table', SchemaTable);\n","import { LitElement, html, css } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport { schemaInObjectNotation, generateExample } from '../utils/schema-utils';\nimport FontStyles from '../styles/font-styles';\nimport FlexStyles from '../styles/flex-styles';\nimport TableStyles from '../styles/table-styles';\nimport InputStyles from '../styles/input-styles';\nimport TabStyles from '../styles/tab-styles';\nimport BorderStyles from '../styles/border-styles';\nimport CustomStyles from '../styles/custom-styles';\nimport './json-tree';\nimport './schema-tree';\nimport './schema-table';\n\nexport default class ApiResponse extends LitElement {\n constructor() {\n super();\n this.selectedStatus = '';\n this.headersForEachRespStatus = {};\n this.mimeResponsesForEachStatus = {};\n this.activeSchemaTab = 'schema';\n }\n\n static get properties() {\n return {\n callback: { type: String },\n webhook: { type: String },\n responses: { type: Object },\n parser: { type: Object },\n schemaStyle: { type: String, attribute: 'schema-style' },\n renderStyle: { type: String, attribute: 'render-style' },\n selectedStatus: { type: String, attribute: 'selected-status' },\n selectedMimeType: { type: String, attribute: 'selected-mime-type' },\n activeSchemaTab: { type: String, attribute: 'active-schema-tab' },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\n };\n }\n\n static get styles() {\n return [\n FontStyles,\n FlexStyles,\n TabStyles,\n TableStyles,\n InputStyles,\n BorderStyles,\n css`\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\n .response-panel {\n padding: 10px;\n border: 1px solid var(--light-border-color);\n border-radius: 4px;\n }\n .response-panel-header {\n border-bottom: 1px solid var(--light-border-color);\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-descr{\n font-size:calc(var(--font-size-small) + 1px);\n color:var(--light-fg);\n text-align:left;\n }\n .resp-box{\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n justify-content: space-around;\n align-items: center;\n column-gap: 12px;\n padding: 12px;\n }\n .resp-box:hover {\n cursor: pointer;\n color: var(--vtex-pink);\n font-weight: bold;\n }\n .resp-box.active {\n font-weight: bold;\n color: var(--vtex-pink);\n border-bottom: 2px solid var(--vtex-pink);\n }\n .resp-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n flex: 1 1 auto;\n height: 45px;\n text-transform: uppercase;\n }\n .resp-content {\n padding: 24px 40px;\n max-height: calc(100vh - 5rem - 48px);\n overflow: auto;\n background-color: #FFFFFF;\n }\n .resp-content-body {\n overflow: auto;\n scrollbar-width: thin;\n scrollbar-color: white white;\n }\n .resp-content-body:hover {\n scrollbar-color: #CCCED8 white;\n }\n .resp-content-body::-webkit-scrollbar {\n display: block;\n width: 6px;\n height: 6px;\n background-color: white;\n }\n .resp-content-body::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: white;\n }\n .resp-content-body:hover::-webkit-scrollbar-thumb {\n background: #CCCED8;\n }\n .resp-content-container {\n display: none;\n background-color: rgba(0,0,0,0.1);\n }\n .top-gap{margin-top:16px;}\n .example-panel{\n font-size:var(--font-size-small);\n margin:0;\n }\n .focused-mode,\n .read-mode {\n margin: 32px 0px;\n display: flex;\n flex-direction: column;\n }\n .dot {\n height: 8px;\n width: 8px;\n border-radius: 50%;\n display: inline-block;\n }\n .success {\n background-color: var(--success-color);\n }\n .informational {\n background-color: var(--informational-color);\n }\n .redirection {\n background-color: var(--redirection-color);\n }\n .error {\n background-color: var(--error-color);\n }\n `,\n CustomStyles,\n ];\n }\n\n render() {\n return html`\n
    \n ${this.responseTemplate()}\n
    \n `;\n }\n\n resetSelection() {\n this.selectedStatus = '';\n this.selectedMimeType = '';\n }\n\n getResponseStatusType(respStatus) {\n const status = respStatus.toString();\n return status.startsWith('1')\n ? 'informational'\n : status.startsWith('2')\n ? 'success'\n : status.startsWith('3')\n ? 'redirection'\n : (status.startsWith('4') || status.startsWith('5'))\n ? 'error'\n : '';\n }\n\n /* eslint-disable indent */\n responseTemplate() {\n if (!this.responses) { return ''; }\n for (const statusCode in this.responses) {\n if (!this.selectedStatus) {\n this.selectedStatus = statusCode;\n }\n const allMimeResp = {};\n for (const mimeResp in this.responses[statusCode]?.content) {\n const mimeRespObj = this.responses[statusCode].content[mimeResp];\n if (!this.selectedMimeType) {\n this.selectedMimeType = mimeResp;\n }\n // Generate Schema\n const schemaTree = schemaInObjectNotation(mimeRespObj.schema, {});\n // Generate Example\n const respExamples = generateExample(\n mimeRespObj.schema,\n mimeResp,\n mimeRespObj.examples,\n mimeRespObj.example,\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\n mimeResp.includes('json') ? 'json' : 'text',\n );\n allMimeResp[mimeResp] = {\n description: this.responses[statusCode].description,\n examples: respExamples,\n selectedExample: respExamples[0]?.exampleId || '',\n schemaTree,\n };\n }\n // Headers for each response status\n const tempHeaders = [];\n for (const key in this.responses[statusCode]?.headers) {\n tempHeaders.push({ name: key, ...this.responses[statusCode].headers[key] });\n }\n this.headersForEachRespStatus[statusCode] = tempHeaders;\n this.mimeResponsesForEachStatus[statusCode] = allMimeResp;\n }\n return html`\n ${Object.keys(this.responses).length >= 1\n ? html`
    \n ${Object.keys(this.responses).map((respStatus) => html`\n ${respStatus === '$$ref' // Swagger-Client parser creates '$$ref' object if JSON references are used to create responses - this should be ignored\n ? ''\n : html`\n
    {\n this.selectedStatus = respStatus;\n if (this.responses[respStatus].content && Object.keys(this.responses[respStatus].content)[0]) {\n this.selectedMimeType = Object.keys(this.responses[respStatus].content)[0]; // eslint-disable-line prefer-destructuring\n } else {\n this.selectedMimeType = undefined;\n }\n }}\"\n >\n
    \n
    \n ${this.callback === 'true' ? 'Callback Response' : 'Response'}\n
    \n
    \n
    \n
    \n \n
    \n
    \n ${respStatus}\n
    \n
    \n
    \n `\n }`)\n }
    `\n : ''\n }\n
    \n\n ${Object.keys(this.responses).map((status) => html`\n
    \n
    \n
    \n
    \n
    \n ${this.callback === 'true' ? 'Callback Response' : 'Response'}\n
    \n
    \n
    \n
    \n \n
    \n
    \n ${status}\n
    \n
    \n
    \n
    \n
    \n ${unsafeHTML(marked(this.responses[status]?.description || ''))}\n ${(this.headersForEachRespStatus[status] && this.headersForEachRespStatus[status]?.length > 0)\n ? html`${this.responseHeaderListTemplate(this.headersForEachRespStatus[status])}`\n : ''\n }\n
    \n ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 0\n ? ''\n : html` \n
    \n ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 1\n ? html` ${Object.keys(this.mimeResponsesForEachStatus[status])[0]} `\n : html`${this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[status]))}`\n } \n
    { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}\" >\n \n \n
    \n
    \n ${this.activeSchemaTab === 'example'\n ? html`
    \n ${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}\n
    `\n : html`
    \n ${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}\n
    `\n }\n
    \n `\n }\n
    \n
    \n
    \n `)}\n `;\n }\n\n responseHeaderListTemplate(respHeaders) {\n return html`\n
    Response headers
    \n \n ${respHeaders.map((v) => html`\n \n \n \n ${v.schema?.type\n ? html` `\n : ''\n }\n \n ${v.description?.type\n ? html``\n : ''\n }\n \n ${v.schema?.example\n ? html`\n `\n : ''\n }\n \n `)}\n
    \n ${v.name || ''}\n \n ${v.schema?.type || ''}\n \n
    ${unsafeHTML(marked(v.description || ''))}
    \n
    \n ${v.schema?.example || ''}\n
    `;\n }\n\n mimeTypeDropdownTemplate(mimeTypes) {\n return html`\n `;\n }\n\n onSelectExample(e) {\n const exampleContainerEl = e.target.closest('.example-panel');\n const exampleEls = [...exampleContainerEl.querySelectorAll('.example')];\n\n exampleEls.forEach((v) => {\n v.style.display = v.dataset.example === e.target.value ? 'block' : 'none';\n });\n }\n\n mimeExampleTemplate(mimeRespDetails) {\n if (!mimeRespDetails) {\n return html`\n
     No example provided 
    \n `;\n }\n return html`\n ${mimeRespDetails.examples.length === 1\n ? html`\n ${mimeRespDetails.examples[0].exampleFormat === 'json'\n ? html`\n ${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`
    ${mimeRespDetails.examples[0].exampleSummary}
    ` : ''}\n ${mimeRespDetails.examples[0].exampleDescription ? html`
    ${unsafeHTML(marked(mimeRespDetails.examples[0].exampleDescription || ''))}
    ` : ''}\n `\n : html`\n ${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`
    ${mimeRespDetails.examples[0].exampleSummary}
    ` : ''}\n ${mimeRespDetails.examples[0].exampleDescription ? html`
    ${unsafeHTML(marked(mimeRespDetails.examples[0].exampleDescription || ''))}
    ` : ''}\n
    ${mimeRespDetails.examples[0].exampleValue}
    \n `\n }`\n : html`\n \n \n ${mimeRespDetails.examples.map((v) => html`\n
    \n ${v.exampleSummary && v.exampleSummary.length > 80 ? html`
    ${v.exampleSummary}
    ` : ''}\n ${v.exampleDescription ? html`
    ${unsafeHTML(marked(v.exampleDescription || ''))}
    ` : ''}\n ${v.exampleFormat === 'json'\n ? html`\n `\n : html`
    ${v.exampleValue}
    `\n }\n
    \n `)}\n
    \n `\n }\n `;\n }\n\n mimeSchemaTemplate(mimeRespDetails) {\n if (!mimeRespDetails) {\n return html`\n
     Schema not found
    \n `;\n }\n return html`\n ${this.schemaStyle === 'table'\n ? html`\n `\n : html`\n `\n }`;\n }\n /* eslint-enable indent */\n}\n\n// Register the element with the browser\nif (!customElements.get('api-response')) customElements.define('api-response', ApiResponse);\n","/* eslint-disable max-len */\nimport { LitElement, html, css } from 'lit';\n// eslint-disable-next-line import/extensions\nimport checkSymbol from './assets/check-symbol';\nimport copySymbol from './assets/copy-symbol';\nimport './toast-component';\n\n/* eslint-disable indent */\n// eslint-disable-next-line import/prefer-default-export\nexport class ContentCopyButton extends LitElement {\n static properties = {\n id: { type: String },\n content: { type: String },\n copied: { type: Boolean },\n showButton: { type: Boolean },\n showToast: { type: Boolean },\n };\n\n constructor(id, content) {\n super();\n this.id = id;\n this.content = content;\n this.copied = false;\n this.showButton = false;\n this.showToast = false;\n this.addEventListener('closed-toast', () => { this.showToast = false; });\n }\n\n reset() {\n this.copied = false;\n this.showButton = false;\n }\n\n willUpdate(changedProperties) {\n if (changedProperties.has('id')) {\n this.reset();\n }\n }\n\n onButtonClick() {\n navigator.clipboard.writeText(this.content);\n this.copied = true;\n }\n\n onTextClick() {\n navigator.clipboard.writeText(this.content);\n this.showToast = true;\n }\n\n onMouseover() {\n this.showButton = true;\n }\n\n onMouseLeave() {\n this.showButton = false;\n this.copied = false;\n }\n\n render() {\n return html`\n
    \n ${this.content}\n \n
    \n ${\n this.showToast\n ? html``\n : ''\n }\n `;\n }\n\n static get styles() {\n return [\n css`\n .svg-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: flex-start;\n padding: 0px 8px 0px 0px;\n gap: 10px;\n width: 57px;\n height: 20px;\n background: linear-gradient(270deg, #FFFFFF 51.22%, rgba(255, 255, 255, 0) 104.88%);\n }\n\n span {\n flex: 1 0 auto;\n padding: 4px 8px;\n }\n\n span:hover {\n cursor: pointer;\n }\n\n button {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n cursor: pointer;\n outline: inherit;\n right: 0;\n display: block;\n position: -webkit-sticky;\n position: sticky;\n }\n\n .copy-container {\n width: inherit;\n height: inherit;\n opacity: 0;\n filter: alpha(opacity = 0);\n position: absolute;\n top:0; bottom:0; left:0; right:0;\n display: block;\n z-index: 2;\n background: transparent;\n }\n\n .content-copy-container {\n width: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-wrap: nowrap;\n font-size: 14px;\n white-space: nowrap;\n overflow-y: hidden;\n overflow-x: auto;\n align-items: center;\n }\n\n .content-copy-container::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n .content-copy-container::-webkit-scrollbar-track {\n background:var(--input-bg);\n }\n \n .content-copy-container::-webkit-scrollbar-thumb {\n border-radius: 2px;\n background-color: var(--border-color);\n }\n `,\n ];\n }\n}\n\nif (!customElements.get('content-copy-button')) customElements.define('content-copy-button', ContentCopyButton);\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport { rapidocApiKey, downloadResource, viewResource } from '../utils/common-utils';\nimport { pathSecurityTemplate } from './security-scheme-template';\nimport codeSamplesTemplate from './code-samples-template';\nimport callbackTemplate from './callback-template';\nimport '../components/api-request';\nimport '../components/api-response';\nimport '../components/content-copy-button';\nimport processPathDescription from '../utils/magic-block-utils';\nimport { joinURLandPath } from '../utils/url';\nimport renderBlockquote from '../utils/renderBlockquote';\n\n/* eslint-disable indent */\nfunction headingRenderer(tagElementId) {\n const renderer = new marked.Renderer();\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\n return renderer;\n}\n\nexport function expandedEndpointBodyTemplate(path, tagName = '') {\n const acceptContentTypes = new Set();\n for (const respStatus in path.responses) {\n for (const acceptContentType in (path.responses[respStatus]?.content)) {\n acceptContentTypes.add(acceptContentType.trim());\n }\n }\n const accept = [...acceptContentTypes].join(', ');\n\n // Filter API Keys that are non-empty and are applicable to the the path\n const nonEmptyApiKeys = this.resolvedSpec.securitySchemes.filter((v) => (v.finalKeyValue && path.security?.some((ps) => (v.securitySchemeId in ps)))) || [];\n\n // If a RapiDoc API Key is specified on the element and its value is not hyphen(-) then include it for all paths\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === rapidocApiKey && v.value !== '-'));\n if (rapiDocApiKey) {\n nonEmptyApiKeys.push(rapiDocApiKey);\n }\n\n const docUrl = `https://developers.vtex.com/docs/api-reference/${this.specUrl.split('/')[3]}`;\n marked.Renderer.prototype.blockquote = renderBlockquote;\n\n const codeSampleTabPanel = path.xCodeSamples ? codeSamplesTemplate.call(this, path.xCodeSamples) : '';\n path.description = processPathDescription(path.description);\n return html`\n ${this.renderStyle === 'read' ? html`
    ` : ''}\n
    \n \n ${path.deprecated ? html`
    DEPRECATED
    ` : ''}\n ${html`\n ${path.xBadges && path.xBadges?.length > 0\n ? html`\n
    \n ${path.xBadges.map((v) => (\n html`${v.label}`\n ))\n }\n
    \n `\n : ''\n }\n
    \n ${(this.renderStyle === 'focused' && tagName !== 'General ⦂') ? html`\n

    ${this.resolvedSpec.info.title} › ${tagName}

    \n ` : ''}\n ${(this.specUrl && this.allowSpecFileDownload) ? html`
    \n \n \n
    ` : ''}\n
    \n

    ${path.shortSummary || `${path.method.toUpperCase()} ${path.path}`}

    \n ${path.isWebhook\n ? html` WEBHOOK `\n : html`\n
    \n
    \n ${path.method}\n
    \n
    \n \n
    \n
    \n `\n }\n `\n }\n ${path.description ? html`
    ${unsafeHTML(marked(path.description))}
    ` : ''}\n \n ${codeSampleTabPanel}\n
    \n \n\n ${path.callbacks ? callbackTemplate.call(this, path.callbacks) : ''}\n\n \n
    \n
    \n `;\n}\n\nexport default function expandedEndpointTemplate() {\n if (!this.resolvedSpec) { return ''; }\n return html`\n ${this.resolvedSpec.tags.map((tag) => html`\n
    \n
    ${tag.name}
    \n \n
    \n ${unsafeHTML(`\n
    \n ${marked(tag.description || '', this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer(tag.elementId) } : undefined)}\n
    `)\n }\n
    \n
    \n
    \n ${tag.paths.map((path) => expandedEndpointBodyTemplate.call(this, path))}\n
    \n `)\n }\n`;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport { schemaInObjectNotation } from '../utils/schema-utils';\nimport '../components/json-tree';\nimport '../components/schema-tree';\nimport '../components/schema-table';\n\nfunction schemaBodyTemplate(sComponent) {\n return html`\n
    \n
    \n
    ${sComponent.name} Schema
    \n ${this.schemaStyle === 'table'\n ? html`\n `\n : html`\n `\n}\n
    `;\n}\n\nfunction componentBodyTemplate(sComponent, componentType) {\n if (sComponent.id.indexOf('schemas-') !== -1) {\n return schemaBodyTemplate.call(this, sComponent);\n }\n return html`\n
    \n
    \n ${html`\n
    ${sComponent.name} ${componentType}
    \n ${sComponent.component\n ? html`\n
    \n \n
    `\n : ''}\n `}\n
    \n `;\n}\n\nexport default function componentsTemplate() {\n if (!this.resolvedSpec) { return ''; }\n return html`\n ${this.resolvedSpec.components.map((component) => html`\n
    \n
    ${component.name}
    \n
    \n ${unsafeHTML(`
    ${marked(component.description ? component.description : '')}
    `)}\n
    \n
    \n
    \n ${component.subComponents.filter((c) => c.expanded !== false).map((sComponent) => componentBodyTemplate.call(this, sComponent, component.name))}\n
    \n `)\n}\n`;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport processPathDescription from '../utils/magic-block-utils';\nimport { downloadResource, viewResource } from '../utils/common-utils';\nimport renderBlockquote from '../utils/renderBlockquote';\n\n/* eslint-disable indent */\nfunction headingRenderer() {\n const renderer = new marked.Renderer();\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\n return renderer;\n}\n\nexport default function overviewTemplate() {\n this.resolvedSpec.info.description = processPathDescription(this.resolvedSpec.info.description);\n marked.Renderer.prototype.blockquote = renderBlockquote;\n\n return html`\n
    \n \n ${this.resolvedSpec?.info\n ? html`\n ${this.specUrl && this.allowSpecFileDownload === 'true'\n ? html`\n
    \n \n \n
    `\n : ''\n }\n
    \n ${this.resolvedSpec.info.title}\n ${!this.resolvedSpec.info.version ? '' : html`\n \n ${this.resolvedSpec.info.version}\n `\n }\n
    \n
    \n ${this.resolvedSpec.info.contact?.email\n ? html`${this.resolvedSpec.info.contact.name || 'Email'}: \n ${this.resolvedSpec.info.contact.email}\n `\n : ''\n }\n ${this.resolvedSpec.info.contact?.url\n ? html`URL: ${this.resolvedSpec.info.contact.url}`\n : ''\n }\n ${this.resolvedSpec.info.license\n ? html`License: \n ${this.resolvedSpec.info.license.url\n ? html`${this.resolvedSpec.info.license.name}`\n : this.resolvedSpec.info.license.name\n } `\n : ''\n }\n ${this.resolvedSpec.info.termsOfService\n ? html`Terms of Service`\n : ''\n }\n
    \n \n
    \n ${this.resolvedSpec.info.description\n ? html`${\n unsafeHTML(`\n
    \n ${marked(this.resolvedSpec.info.description, this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer() } : undefined)}\n
    `)}`\n : ''\n }\n
    \n `\n : ''\n }\n
    \n `;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport { marked } from 'marked';\nimport { pathIsInSearch } from '../utils/common-utils';\n\nexport function expandCollapseNavBarTag(navLinkEl, action = 'toggle') {\n const tagAndPathEl = navLinkEl?.closest('.nav-bar-tag-and-paths');\n const pathsUnderTagEl = tagAndPathEl?.querySelector('.nav-bar-paths-under-tag');\n if (tagAndPathEl) {\n const isExpanded = tagAndPathEl.classList.contains('expanded');\n if (isExpanded && (action === 'toggle' || action === 'collapse')) {\n pathsUnderTagEl.style.maxHeight = 0;\n tagAndPathEl.classList.replace('expanded', 'collapsed');\n } else if (!isExpanded && (action === 'toggle' || action === 'expand')) {\n tagAndPathEl.classList.replace('collapsed', 'expanded');\n pathsUnderTagEl.style.maxHeight = `${pathsUnderTagEl.scrollHeight}px`;\n }\n }\n}\n\nexport function expandCollapseAll(event, action = 'expand-all') {\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\n return;\n }\n const navEl = event.target.closest('.nav-scroll');\n const elList = [...navEl.querySelectorAll('.nav-bar-tag-and-paths')];\n if (action === 'expand-all') {\n elList.forEach((el) => {\n const navBarPathsUnderTagEl = el.querySelector('.nav-bar-paths-under-tag');\n el.classList.replace('collapsed', 'expanded');\n navBarPathsUnderTagEl.style.maxHeight = `${navBarPathsUnderTagEl?.scrollHeight}px`;\n });\n } else {\n elList.forEach((el) => {\n el.classList.replace('expanded', 'collapsed');\n el.querySelector('.nav-bar-paths-under-tag').style.maxHeight = 0;\n });\n }\n}\n\nexport function navBarClickAndEnterHandler(event) {\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\n return;\n }\n const navEl = event.target;\n event.stopPropagation();\n if (navEl.dataset?.action === 'navigate') {\n this.scrollToEventTarget(event, false);\n } else if (navEl.dataset?.action === 'expand-all' || (navEl.dataset?.action === 'collapse-all')) {\n expandCollapseAll(event, navEl.dataset.action);\n } else if (navEl.dataset?.action === 'expand-collapse-tag') {\n expandCollapseNavBarTag(navEl, 'toggle');\n }\n}\n\n/* eslint-disable indent */\nexport default function navbarTemplate() {\n if (!this.resolvedSpec || this.resolvedSpec.specLoadError) {\n return html`\n \n `;\n }\n return html`\n
    \n ${this.resolvedSpec.infoDescriptionHeaders.length > 0 ? html`
    ` : ''}\n `\n : html``\n }\n `\n }\n \n ${this.allowServerSelection === 'false'\n ? ''\n : html``\n }\n ${(this.allowAuthentication === 'false' || !this.resolvedSpec.securitySchemes)\n ? ''\n : html``\n }\n\n \n\n \n ${this.resolvedSpec.tags\n .filter((tag) => tag.paths.filter((path) => pathIsInSearch(this.matchPaths, path, this.matchType)).length)\n .map((tag) => html`\n `\n }`\n : ''\n }\n \n
    \n `)\n }\n\n \n ${this.resolvedSpec.components && this.showComponents === 'true' && this.renderStyle === 'focused'\n ? html`\n \n ${this.resolvedSpec.components.map((component) => (component.subComponents.length\n ? html`\n \n ${component.subComponents.filter((p) => p.expanded !== false).map((p) => html`\n `)\n }`\n : ''))\n }`\n : ''\n }\n `\n }\n\n`;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport { expandedEndpointBodyTemplate } from './expanded-endpoint-template';\nimport '../components/api-request';\nimport '../components/api-response';\nimport componentsTemplate from './components-template';\nimport overviewTemplate from './overview-template';\nimport serverTemplate from './server-template';\nimport securitySchemeTemplate from './security-scheme-template';\nimport { expandCollapseNavBarTag } from './navbar-template';\n\nfunction headingRenderer(tagElementId) {\n const renderer = new marked.Renderer();\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\n return renderer;\n}\n\nfunction wrapFocusedTemplate(templateToWrap) {\n return html`\n
    \n ${templateToWrap}\n
    `;\n}\n\nfunction defaultContentTemplate() {\n // In focused mode default content is overview or first path\n if (this.showInfo === 'true') {\n return wrapFocusedTemplate(overviewTemplate.call(this));\n }\n const selectedTagObj = this.resolvedSpec.tags[0];\n const selectedPathObj = this.resolvedSpec.tags[0]?.paths[0];\n return (selectedTagObj && selectedPathObj)\n ? wrapFocusedTemplate(expandedEndpointBodyTemplate.call(this, selectedPathObj, selectedTagObj.name))\n : wrapFocusedTemplate('');\n}\n\n/* eslint-disable indent */\nfunction focusedTagBodyTemplate(tag) {\n return html`\n

    ${tag.name}

    \n ${this.onNavTagClick === 'show-description' && tag.description\n ? html`\n
    \n ${\n unsafeHTML(`\n
    \n ${marked(tag.description || '', this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer(tag.elementId) } : undefined)}\n
    `)\n }\n
    `\n : ''\n }\n `;\n}\n\nexport default function focusedEndpointTemplate() {\n if (!this.focusedElementId || !this.resolvedSpec) {\n return;\n }\n const focusElId = this.focusedElementId;\n let selectedPathObj = null;\n let selectedTagObj = null;\n let focusedTemplate;\n let i = 0;\n if (focusElId.startsWith('overview') && this.showInfo === 'true') {\n focusedTemplate = overviewTemplate.call(this);\n } else if (focusElId === 'auth' && this.allowAuthentication === 'true') {\n focusedTemplate = securitySchemeTemplate.call(this);\n } else if (focusElId === 'servers' && this.allowServerSelection === 'true') {\n focusedTemplate = serverTemplate.call(this);\n } else if (focusElId === 'operations-top') {\n focusedTemplate = html`\n
    \n \n
    `;\n } else if (focusElId.startsWith('cmp--') && this.showComponents === 'true') {\n focusedTemplate = componentsTemplate.call(this);\n } else if (focusElId.startsWith('tag--')) {\n const idToFocus = focusElId.indexOf('--', 4) > 0 ? focusElId.substring(0, focusElId.indexOf('--', 5)) : focusElId;\n selectedTagObj = this.resolvedSpec.tags.find((v) => v.elementId === idToFocus);\n if (selectedTagObj) {\n focusedTemplate = wrapFocusedTemplate.call(this, focusedTagBodyTemplate.call(this, selectedTagObj));\n } else {\n focusedTemplate = defaultContentTemplate.call(this);\n }\n } else {\n for (i = 0; i < this.resolvedSpec.tags.length; i += 1) {\n selectedTagObj = this.resolvedSpec.tags[i];\n selectedPathObj = this.resolvedSpec.tags[i].paths.find((v) => `${v.elementId}` === focusElId);\n if (selectedPathObj) {\n break;\n }\n }\n if (selectedPathObj) {\n // In focused mode we must expand the nav-bar tag element if it is collapsed\n const newNavEl = this.shadowRoot.getElementById(`link-${focusElId}`);\n expandCollapseNavBarTag(newNavEl, 'expand');\n focusedTemplate = wrapFocusedTemplate.call(\n this,\n expandedEndpointBodyTemplate.call(this, selectedPathObj, (selectedTagObj.name || ''), (selectedTagObj.description || '')),\n );\n } else {\n // if focusedElementId is not found then show the default content (overview or first-path)\n focusedTemplate = defaultContentTemplate.call(this);\n }\n }\n return focusedTemplate;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\nimport '../components/api-request';\nimport '../components/api-response';\nimport '../components/content-copy-button';\nimport codeSamplesTemplate from './code-samples-template';\nimport callbackTemplate from './callback-template';\nimport { pathSecurityTemplate } from './security-scheme-template';\nimport { pathIsInSearch, rapidocApiKey } from '../utils/common-utils';\nimport processPathDescription from '../utils/magic-block-utils';\nimport { joinURLandPath } from '../utils/url';\n\nfunction toggleExpand(path) {\n if (path.expanded) {\n path.expanded = false; // collapse\n if (this.updateRoute === 'true') {\n this.replaceHistoryState('');\n }\n } else {\n path.expanded = true; // Expand\n if (this.updateRoute === 'true') {\n const newHash = `${this.routePrefix || '#'}${path.elementId}`;\n if (window.location.hash !== newHash) {\n this.replaceHistoryState(path.elementId);\n }\n }\n }\n this.requestUpdate();\n}\n\nexport function expandCollapseAll(operationsRootEl, action = 'expand-all') {\n const elList = [...operationsRootEl.querySelectorAll('.section-tag')];\n if (action === 'expand-all') {\n elList.map((el) => {\n el.classList.replace('collapsed', 'expanded');\n });\n } else {\n elList.map((el) => {\n el.classList.replace('expanded', 'collapsed');\n });\n }\n}\n\nfunction onExpandCollapseAll(e, action = 'expand-all') {\n expandCollapseAll.call(this, e.target.closest('.operations-root'), action);\n}\n\n/* eslint-disable indent */\nfunction endpointHeadTemplate(path, pathsExpanded = false) {\n return html`\n { toggleExpand.call(this, path, e); }}\" part=\"section-endpoint-head-${path.expanded ? 'expanded' : 'collapsed'}\" class='endpoint-head ${path.method} ${path.deprecated ? 'deprecated' : ''} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>\n
    ${path.method}
    \n
    \n ${path.path} \n ${path.isWebhook ? html` Webhook` : ''}\n
    \n ${path.deprecated\n ? html`\n \n deprecated \n `\n : ''\n }\n ${this.showSummaryWhenCollapsed\n ? html`\n
    \n
    ${path.summary || path.shortSummary}
    `\n : ''\n }\n
    \n `;\n}\n\nfunction endpointBodyTemplate(path) {\n const acceptContentTypes = new Set();\n for (const respStatus in path.responses) {\n for (const acceptContentType in (path.responses[respStatus]?.content)) {\n acceptContentTypes.add(acceptContentType.trim());\n }\n }\n const accept = [...acceptContentTypes].join(', ');\n // Filter API Keys that are non-empty and are applicable to the the path\n const nonEmptyApiKeys = this.resolvedSpec.securitySchemes.filter((v) => (v.finalKeyValue && path.security?.some((ps) => (v.securitySchemeId in ps)))) || [];\n\n // If a RapiDoc API Key is specified on the element and its value is not hyphen(-) then include it for all paths\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === rapidocApiKey && v.value !== '-'));\n if (rapiDocApiKey) {\n nonEmptyApiKeys.push(rapiDocApiKey);\n }\n\n const codeSampleTabPanel = path.xCodeSamples ? codeSamplesTemplate(path.xCodeSamples) : '';\n path.description = processPathDescription(path.description);\n return html`\n \n
    \n
    \n ${path.summary\n ? html`
    ${path.summary}
    `\n : path.shortSummary !== path.description\n ? html`
    ${path.shortSummary}
    `\n : ''\n }\n ${path.xBadges && path.xBadges?.length > 0\n ? html`\n
    \n ${path.xBadges.map((v) => (\n html`${v.label}`\n ))\n }\n
    \n `\n : ''\n }\n
    \n
    \n ${path.method}\n
    \n
    \n \n
    \n
    \n ${path.description ? html`
    ${unsafeHTML(path.description)}
    ` : ''}\n \n ${pathSecurityTemplate.call(this, path.security)}\n ${codeSampleTabPanel}\n
    \n
    \n
    \n 0 ? path.servers[0].url : this.selectedServer.computedUrl}\" \n active-schema-tab = \"${this.defaultSchemaTab}\"\n fill-request-fields-with-example = \"${this.fillRequestFieldsWithExample}\"\n allow-try = \"${this.allowTry}\"\n show-curl-before-try = \"${this.showCurlBeforeTry}\"\n accept = \"${accept}\"\n render-style=\"${this.renderStyle}\" \n schema-style = \"${this.schemaStyle}\" \n schema-expand-level = \"${this.schemaExpandLevel}\"\n schema-description-expanded = \"${this.schemaDescriptionExpanded}\"\n allow-schema-description-expand-toggle = \"${this.allowSchemaDescriptionExpandToggle}\"\n schema-hide-read-only = \"${this.schemaHideReadOnly === 'never' ? 'false' : path.isWebhook ? 'false' : 'true'}\"\n schema-hide-write-only = \"${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'true' : 'false'}\"\n fetch-credentials = \"${this.fetchCredentials}\"\n exportparts = \"wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,\n file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, \n anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle\"\n > \n\n ${path.callbacks ? callbackTemplate.call(this, path.callbacks) : ''}\n
    \n\n \n
    \n
    `;\n}\n\nexport default function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpanded = false) {\n if (!this.resolvedSpec) { return ''; }\n return html`\n ${showExpandCollapse\n ? html`\n
    \n onExpandCollapseAll(e, 'expand-all')}\" style=\"color:var(--primary-color); cursor:pointer;\">\n Expand all\n \n  |  \n onExpandCollapseAll(e, 'collapse-all')}\" style=\"color:var(--primary-color); cursor:pointer;\" >\n Collapse all\n \n   sections\n
    `\n : ''\n }\n ${this.resolvedSpec.tags.map((tag) => html`\n ${showTags\n ? html` \n `\n : html`\n \n `\n }\n `)\n }`;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\n\n/* eslint-disable indent */\nexport default function logoTemplate(style) {\nreturn html`\n
    \n \n \n \n \n \n \n \n \n
    \n`;\n}\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport logoTemplate from './logo-template';\n\n/* eslint-disable indent */\nexport default function headerTemplate() {\n return html`\n
    \n
    \n \n ${logoTemplate('height:36px;width:36px;margin-left:5px')}\n \n \n
    ${this.headingText}
    \n
    \n
    \n ${(this.allowSpecUrlLoad === 'false')\n ? ''\n : html`\n \n
    \n `\n } \n ${(this.allowSpecFileLoad === 'false')\n ? ''\n : html`\n \n \n `\n }\n \n ${(this.allowSearch === 'false' || 'read focused'.includes(this.renderStyle))\n ? ''\n : html` \n \n
    \n `\n }\n \n ${(this.allowAdvancedSearch === 'false' || 'read focused'.includes(this.renderStyle))\n ? ''\n : html`\n \n `\n }\n
    \n
    `;\n }\n/* eslint-enable indent */\n","import { html } from 'lit';\nimport '../components/dialog-box';\n\n/* eslint-disable indent */\nexport default function searchByPropertiesModalTemplate() {\n document.addEventListener('close', () => { this.showAdvancedSearchDialog = false; });\n document.addEventListener('open', this.onOpenSearchDialog);\n\n return html`\n \n \n this.onAdvancedSearch(e, 400)}\"\n >\n
    \n
    \n this.onAdvancedSearch(e, 0)}\">\n \n
    \n
    \n this.onAdvancedSearch(e, 0)}\">\n \n
    \n
    \n this.onAdvancedSearch(e, 0)}\">\n \n
    \n
    \n this.onAdvancedSearch(e, 0)}\">\n \n
    \n
    \n this.onAdvancedSearch(e, 0)}\">\n \n
    \n
    \n
    \n \n ${this.advancedSearchMatches?.map((path) => html`\n {\n this.matchPaths = ''; // clear quick filter if applied\n this.showAdvancedSearchDialog = false; // Hide Search Dialog\n this.requestUpdate();\n this.scrollToEventTarget(e, true);\n }\n }\"\n > \n ${path.method} \n ${path.path}\n ${path.summary}\n \n `)\n }\n
    \n `;\n}\n/* eslint-enable indent */\n","import { LitElement, html } from 'lit';\nimport DialogBoxStyles from '../styles/dialog-box-styles';\n\nexport default class DialogBox extends LitElement {\n static get properties() {\n return {\n heading: { type: String, attribute: 'heading' },\n show: { type: String, attribute: 'show' },\n };\n }\n\n static get styles() {\n return [DialogBoxStyles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n document.addEventListener('keydown', (e) => {\n if (e.code === 'Escape') {\n this.onClose();\n }\n });\n }\n\n attributeChangedCallback(name, oldVal, newVal) {\n if (oldVal !== newVal) {\n if (name === 'heading') {\n this.heading = newVal;\n }\n if (name === 'show') {\n this.show = newVal;\n if (newVal === 'true') {\n document.dispatchEvent(new CustomEvent('open', {\n bubbles: true,\n composed: true,\n detail: this,\n }));\n }\n }\n }\n super.attributeChangedCallback(name, oldVal, newVal);\n }\n\n /* eslint-disable indent */\n render() {\n return html`\n ${this.show === 'true'\n ? html`\n
    \n
    \n
    \n ${this.heading}\n \n
    \n
    \n \n
    \n
    \n
    `\n : ''\n }`;\n }\n /* eslint-enable indent */\n\n onClose() {\n document.dispatchEvent(new CustomEvent('close', {\n bubbles: true,\n composed: true,\n }));\n }\n}\n\nif (!customElements.get('dialog-box')) customElements.define('dialog-box', DialogBox);\n","import { html } from 'lit';\nimport ColorUtils from './color-utils';\n/* Generates an schema object containing type and constraint info */\nexport default function setTheme(baseTheme, theme = {}) {\n let newTheme = {};\n\n // Common Theme colors\n const primaryColor = theme.primaryColor ? theme.primaryColor : baseTheme === 'dark' ? '#f76b39' : '#ff591e';\n const primaryColorInvert = ColorUtils.color.invert(primaryColor);\n const primaryColorTrans = ColorUtils.color.opacity(primaryColor, '0.4');\n\n // Dark and Light Theme colors\n if (baseTheme === 'dark') {\n const bg1 = theme.bg1 ? theme.bg1 : '#2a2b2c';\n const fg1 = theme.fg1 ? theme.fg1 : '#bbb';\n\n const bg2 = theme.bg2 ? theme.bg2 : ColorUtils.color.brightness(bg1, 5); // or #383838;\n const bg3 = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, 17); // or #444;\n const lightBg = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, 35);\n const fg2 = theme.fg2 ? theme.fg2 : ColorUtils.color.brightness(fg1, -15); // or #ababab\n const fg3 = theme.fg3 ? theme.fg3 : ColorUtils.color.brightness(fg1, -20); // or #aaa\n const lightFg = theme.fg3 ? theme.fg3 : '#A1A8B3'; // or #777\n const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : '#aaa';\n\n const headerColor = theme.headerColor ? theme.headerColor : ColorUtils.color.brightness(bg1, 10);\n\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, 10);\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.opacity(ColorUtils.color.invert(navBgColor), '0.50');\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : ColorUtils.color.brightness(navBgColor, -15);\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : ColorUtils.color.invert(navBgColor);\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : ColorUtils.color.brightness(primaryColor, 25);\n const navAccentTextColor = theme.navAccentTextColor ? theme.navAccenttextColor : ColorUtils.color.invert(navAccentColor);\n\n const overlayBg = 'rgba(80, 80, 80, 0.4)';\n\n newTheme = {\n bg1,\n bg2,\n bg3,\n lightBg,\n fg1,\n fg2,\n fg3,\n lightFg,\n inlineCodeFg,\n primaryColor,\n primaryColorTrans,\n primaryColorInvert,\n overlayBg,\n navBgColor,\n navTextColor,\n navHoverBgColor,\n navHoverTextColor,\n navAccentColor,\n navAccentTextColor,\n headerColor,\n headerColorInvert: ColorUtils.color.invert(headerColor),\n headerColorDarker: ColorUtils.color.brightness(headerColor, -20),\n headerColorBorder: ColorUtils.color.brightness(headerColor, 10),\n\n borderColor: theme.borderColor || ColorUtils.color.brightness(bg1, 20), // #555\n lightBorderColor: theme.lightBorderColor || '#e7e9ee', // #444\n codeBorderColor: theme.codeBorderColor || ColorUtils.color.brightness(bg1, 30),\n\n inputBg: theme.inputBg || ColorUtils.color.brightness(bg1, -5), // #2f2f2f\n placeHolder: theme.placeHolder || ColorUtils.color.opacity(fg1, '0.3'),\n hoverColor: theme.hoverColor || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n red: theme.red ? theme.red : '#F06560',\n lightRed: theme.lightRed ? theme.lightRed : ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n pink: theme.pink ? theme.pink : '#ffb2b2',\n lightPink: theme.lightPink || ColorUtils.color.brightness(bg1, -10),\n vtexPink: theme.vtexPink ? theme.vtexPink : '#D71D55',\n\n green: theme.green || '#7ec699',\n lightGreen: theme.lightGreen || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n blue: theme.blue || '#71b7ff',\n lightBlue: theme.lightBlue || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n orange: theme.orange ? theme.orange : '#f08d49',\n lightOrange: theme.lightOrange || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n yellow: theme.yellow || '#827717',\n lightYellow: theme.lightYellow || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\n\n purple: theme.purple || '#786FF1',\n brown: theme.brown || '#D4AC0D',\n\n codeBg: theme.codeBg || ColorUtils.color.opacity(ColorUtils.color.brightness(bg1, -15), 0.7),\n codeFg: theme.codeFg || '#aaa',\n codePropertyColor: theme.codePropertyColor || '#f8c555',\n codeKeywordColor: theme.codeKeywordColor || '#cc99cd',\n codeOperatorColor: theme.codeOperatorColor || '#67cdcc',\n };\n } else {\n const bg1 = (theme.bg1 ? theme.bg1 : '#fafbfc');\n const fg1 = (theme.fg1 ? theme.fg1 : '#444444');\n const bg2 = theme.bg2 ? theme.bg2 : ColorUtils.color.brightness(bg1, -5); // or '#fafafa'\n const bg3 = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, -15); // or '#f6f6f6'\n const lightBg = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, -45);\n const fg2 = theme.fg2 ? theme.fg2 : '#545454';\n const fg3 = theme.fg3 ? theme.fg3 : ColorUtils.color.brightness(fg1, 30); // or #666\n const lightFg = theme.fg3 ? theme.fg3 : '#A1A8B3'; // or #999\n const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : 'brown';\n\n const headerColor = theme.headerColor ? theme.headerColor : ColorUtils.color.brightness(bg1, -180);\n\n /*\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10);\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5);\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1;\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor;\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor;\n */\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -200);\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.opacity(ColorUtils.color.invert(navBgColor), '0.65');\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : ColorUtils.color.brightness(navBgColor, -15);\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : ColorUtils.color.invert(navBgColor);\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : ColorUtils.color.brightness(primaryColor, 25);\n const navAccentTextColor = theme.navAccentTextColor ? theme.navAccenttextColor : ColorUtils.color.invert(navAccentColor);\n const overlayBg = 'rgba(0, 0, 0, 0.4)';\n\n newTheme = {\n bg1,\n bg2,\n bg3,\n lightBg,\n fg1,\n fg2,\n fg3,\n lightFg,\n inlineCodeFg,\n primaryColor,\n primaryColorTrans,\n primaryColorInvert,\n overlayBg,\n navBgColor,\n navTextColor,\n navHoverBgColor,\n navHoverTextColor,\n navAccentColor,\n navAccentTextColor,\n headerColor,\n headerColorInvert: ColorUtils.color.invert(headerColor),\n headerColorDarker: ColorUtils.color.brightness(headerColor, -20),\n headerColorBorder: ColorUtils.color.brightness(headerColor, 10),\n\n borderColor: theme.borderColor || '#B9B9B9',\n lightBorderColor: theme.lightBorderColor || '#e7e9ee',\n codeBorderColor: theme.codeBorderColor || 'transparent',\n\n inputBg: theme.inputBg || 'rgba(255, 255, 255, 0.0001)',\n placeHolder: theme.placeHolder || ColorUtils.color.brightness(lightFg, 20), // #dedede\n hoverColor: theme.hoverColor || ColorUtils.color.brightness(bg1, -5), // # f1f1f1\n\n rebelPink: '#e31c58',\n\n red: theme.red || '#F06560',\n lightRed: theme.lightRed || '#fff0f0',\n\n pink: theme.pink ? theme.pink : '#990055',\n lightPink: theme.lightPink ? theme.lightPink : '#ffb2b2',\n vtexPink: theme.vtexPink ? theme.vtexPink : '#D71D55',\n\n green: theme.green || '#690',\n lightGreen: theme.lightGreen || '#fbfff0',\n\n blue: theme.blue || '#47AFE8',\n lightBlue: theme.lightBlue || '#eff8fd',\n\n orange: theme.orange || '#FF9900',\n lightOrange: theme.lightOrange || '#fff5e6',\n\n yellow: theme.yellow || '#827717',\n lightYellow: theme.lightYellow || '#fff5cc',\n\n purple: theme.purple || '#786FF1',\n brown: theme.brown || '#D4AC0D',\n\n fgPositive: '#38853C',\n bgPositive: '#DFF1E0',\n borderPositive: '#83D187',\n\n fgPatch: '#6C6314',\n bgPatch: '#e9e7da',\n borderPatch: '#afa871',\n\n fgWarning: '#D56A00',\n bgWarning: '#FFEBD7',\n borderWarning: '#F5AE70',\n\n fgInfo: '#2978B5',\n bgInfo: '#DEECF7',\n borderInfo: '#7CBBEA',\n\n fgCritical: '#CC3D3D',\n bgCritical: '#F8E3E3',\n borderCritical: '#F49494',\n\n codeBg: theme.codeBg || ColorUtils.color.opacity(ColorUtils.color.brightness(bg1, -15), 0.7),\n codeFg: theme.codeFg || '#666',\n codePropertyColor: theme.codePropertyColor || '#905',\n codeKeywordColor: theme.codeKeywordColor || '#07a',\n codeOperatorColor: theme.codeOperatorColor || '#9a6e3a',\n };\n }\n return html`\n `;\n}\n","import { html } from 'lit';\n\n// Templates\nimport expandedEndpointTemplate from './expanded-endpoint-template';\nimport focusedEndpointTemplate from './focused-endpoint-template';\nimport overviewTemplate from './overview-template';\nimport endpointTemplate from './endpoint-template';\nimport { recoverPersistedApiKeys } from './security-scheme-template';\nimport headerTemplate from './header-template';\nimport navbarTemplate from './navbar-template';\nimport advancedSearchTemplate from './advance-search-template';\nimport SetTheme from '../utils/theme';\nimport { isValidHexColor } from '../utils/color-utils';\n\nexport default function mainBodyTemplate(isMini = false, showExpandCollapse = true, showTags = true, pathsExpanded = false) {\n if (!this.resolvedSpec) {\n return '';\n }\n if (this.persistAuth === 'true') {\n recoverPersistedApiKeys.call(this);\n }\n const newTheme = {\n bg1: isValidHexColor(this.bgColor) ? this.bgColor : '',\n fg1: isValidHexColor(this.textColor) ? this.textColor : '',\n headerColor: isValidHexColor(this.headerColor) ? this.headerColor : '',\n primaryColor: isValidHexColor(this.primaryColor) ? this.primaryColor : '',\n navBgColor: isValidHexColor(this.navBgColor) ? this.navBgColor : '',\n navTextColor: isValidHexColor(this.navTextColor) ? this.navTextColor : '',\n navHoverBgColor: isValidHexColor(this.navHoverBgColor) ? this.navHoverBgColor : '',\n navHoverTextColor: isValidHexColor(this.navHoverTextColor) ? this.navHoverTextColor : '',\n navAccentColor: isValidHexColor(this.navAccentColor) ? this.navAccentColor : '',\n navAccentTextColor: isValidHexColor(this.navAccentTextColor) ? this.navAccentTextColor : '',\n };\n /* eslint-disable indent */\n if (this.resolvedSpec.specLoadError) {\n if (isMini) {\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n
    ${this.resolvedSpec.info.description}
    \n `;\n }\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n \n ${headerTemplate.call(this)}\n
    \n \n
    \n

    ${this.resolvedSpec.info.title}

    \n
    ${this.resolvedSpec.info.description}
    \n
    \n
    \n `;\n }\n if (this.resolvedSpec.isSpecLoading) {\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n
    \n \n
    \n
    \n
    \n
    \n `;\n }\n\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n\n \n ${this.showHeader === 'false' ? '' : headerTemplate.call(this)}\n\n \n ${this.allowAdvancedSearch === 'false' ? '' : advancedSearchTemplate.call(this)}\n\n
    \n \n ${((this.renderStyle === 'read' || this.renderStyle === 'focused')\n && this.showSideNav === 'true'\n && this.resolvedSpec\n ) ? navbarTemplate.call(this) : ''\n }\n\n \n
    \n \n
    \n ${this.loading === true\n ? html`
    `\n : html`\n ${this.loadFailed === true\n ? html`
    Unable to load the Spec
    `\n : html`\n
    \n ${this.renderStyle === 'focused'\n ? html`${focusedEndpointTemplate.call(this)}`\n : html`\n ${this.showInfo === 'true' ? overviewTemplate.call(this) : ''}\n
    \n \n
    \n ${this.renderStyle === 'read'\n ? expandedEndpointTemplate.call(this)\n : endpointTemplate.call(this, showExpandCollapse, showTags, pathsExpanded)\n }\n `\n }\n
    \n `\n }`\n }\n
    \n \n
    \n
    \n `;\n}\n/* eslint-enable indent */\n","import { css, LitElement, unsafeCSS } from 'lit';\nimport { marked } from 'marked';\nimport Prism from 'prismjs';\nimport 'prismjs/components/prism-css';\nimport 'prismjs/components/prism-yaml';\nimport 'prismjs/components/prism-go';\nimport 'prismjs/components/prism-java';\nimport 'prismjs/components/prism-json';\nimport 'prismjs/components/prism-bash';\nimport 'prismjs/components/prism-python';\nimport 'prismjs/components/prism-http';\nimport 'prismjs/components/prism-csharp';\n\n// Styles\nimport FontStyles from './styles/font-styles';\nimport InputStyles from './styles/input-styles';\nimport FlexStyles from './styles/flex-styles';\nimport TableStyles from './styles/table-styles';\nimport EndpointStyles from './styles/endpoint-styles';\nimport PrismStyles from './styles/prism-styles';\nimport TabStyles from './styles/tab-styles';\nimport NavStyles from './styles/nav-styles';\nimport InfoStyles from './styles/info-styles';\nimport CustomStyles from './styles/custom-styles';\n// import { expandCollapseNavBarTag } from '@/templates/navbar-template';\nimport { advancedSearch, pathIsInSearch, componentIsInSearch, rapidocApiKey, sleep } from './utils/common-utils';\nimport ProcessSpec from './utils/spec-parser';\nimport mainBodyTemplate from './templates/main-body-template';\nimport { applyApiKey, onClearAllApiKeys } from './templates/security-scheme-template';\nimport { setApiServer } from './templates/server-template';\n\nexport default class RapiDoc extends LitElement {\n constructor() {\n super();\n /* const intersectionObserverOptions = {\n root: this.getRootNode().host,\n rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom\n threshold: 0,\n };\n this.showSummaryWhenCollapsed = true;\n // Will activate intersection observer only after spec load and hash analyze\n // to scroll to the proper element without being reverted by observer behavior\n this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions);\n */\n this.isIntersectionObserverActive = false;\n }\n\n static get properties() {\n return {\n // Heading\n headingText: { type: String, attribute: 'heading-text' },\n gotoPath: { type: String, attribute: 'goto-path' },\n\n // Spec\n updateRoute: { type: String, attribute: 'update-route' },\n routePrefix: { type: String, attribute: 'route-prefix' },\n specUrl: { type: String, attribute: 'spec-url' },\n spec: { type: String, attribute: 'spec' },\n sortTags: { type: String, attribute: 'sort-tags' },\n generateMissingTags: { type: String, attribute: 'generate-missing-tags' },\n sortEndpointsBy: { type: String, attribute: 'sort-endpoints-by' },\n specFile: { type: String, attribute: false },\n\n // UI Layouts\n layout: { type: String },\n renderStyle: { type: String, attribute: 'render-style' },\n defaultSchemaTab: { type: String, attribute: 'default-schema-tab' },\n responseAreaHeight: { type: String, attribute: 'response-area-height' },\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\n persistAuth: { type: String, attribute: 'persist-auth' },\n onNavTagClick: { type: String, attribute: 'on-nav-tag-click' },\n\n // Schema Styles\n schemaStyle: { type: String, attribute: 'schema-style' },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\n\n // API Server\n apiKeyName: { type: String, attribute: 'api-key-name' },\n apiKeyLocation: { type: String, attribute: 'api-key-location' },\n apiKeyValue: { type: String, attribute: 'api-key-value' },\n defaultApiServerUrl: { type: String, attribute: 'default-api-server' },\n serverUrl: { type: String, attribute: 'server-url' },\n oauthReceiver: { type: String, attribute: 'oauth-receiver' },\n\n // Hide/Show Sections & Enable Disable actions\n showHeader: { type: String, attribute: 'show-header' },\n showSideNav: { type: String, attribute: 'show-side-nav' },\n showInfo: { type: String, attribute: 'show-info' },\n allowAuthentication: { type: String, attribute: 'allow-authentication' },\n allowTry: { type: String, attribute: 'allow-try' },\n showCurlBeforeTry: { type: String, attribute: 'show-curl-before-try' },\n allowSpecUrlLoad: { type: String, attribute: 'allow-spec-url-load' },\n allowSpecFileLoad: { type: String, attribute: 'allow-spec-file-load' },\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\n allowSearch: { type: String, attribute: 'allow-search' },\n allowAdvancedSearch: { type: String, attribute: 'allow-advanced-search' },\n allowServerSelection: { type: String, attribute: 'allow-server-selection' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n showComponents: { type: String, attribute: 'show-components' },\n pageDirection: { type: String, attribute: 'page-direction' },\n\n // Main Colors and Font\n theme: { type: String },\n bgColor: { type: String, attribute: 'bg-color' },\n textColor: { type: String, attribute: 'text-color' },\n headerColor: { type: String, attribute: 'header-color' },\n primaryColor: { type: String, attribute: 'primary-color' },\n fontSize: { type: String, attribute: 'font-size' },\n regularFont: { type: String, attribute: 'regular-font' },\n monoFont: { type: String, attribute: 'mono-font' },\n mediumFont: { type: String, attribute: 'medium-font' },\n loadFonts: { type: String, attribute: 'load-fonts' },\n cssFile: { type: String, attribute: 'css-file' },\n cssClasses: { type: String, attribute: 'css-classes' },\n\n // Nav Bar Colors\n navBgColor: { type: String, attribute: 'nav-bg-color' },\n navTextColor: { type: String, attribute: 'nav-text-color' },\n navHoverBgColor: { type: String, attribute: 'nav-hover-bg-color' },\n navHoverTextColor: { type: String, attribute: 'nav-hover-text-color' },\n navAccentColor: { type: String, attribute: 'nav-accent-color' },\n navAccentTextColor: { type: String, attribute: 'nav-accent-text-color' },\n navActiveItemMarker: { type: String, attribute: 'nav-active-item-marker' },\n navItemSpacing: { type: String, attribute: 'nav-item-spacing' },\n showMethodInNavBar: { type: String, attribute: 'show-method-in-nav-bar' },\n usePathInNavBar: { type: String, attribute: 'use-path-in-nav-bar' },\n infoDescriptionHeadingsInNavBar: { type: String, attribute: 'info-description-headings-in-navbar' },\n\n // Fetch Options\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\n\n // Filters\n matchPaths: { type: String, attribute: 'match-paths' },\n matchType: { type: String, attribute: 'match-type' },\n\n // Internal Properties\n loading: { type: Boolean }, // indicates spec is being loaded\n focusedElementId: { type: String }, // updating the focusedElementId will automatically render appropriate section in focused mode\n showAdvancedSearchDialog: { type: Boolean },\n advancedSearchMatches: { type: Object },\n };\n }\n\n static get styles() {\n return [\n FontStyles,\n InputStyles,\n FlexStyles,\n TableStyles,\n EndpointStyles,\n PrismStyles,\n TabStyles,\n NavStyles,\n InfoStyles,\n css`\n :host {\n display:flex;\n flex-direction: column;\n min-width:360px;\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n overflow: hidden;\n letter-spacing:normal;\n color:var(--fg);\n background-color:var(--bg);\n font-family:var(--font-regular);\n }\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\n .body {\n display:flex;\n height:100%;\n width:100%;\n overflow:hidden;\n max-width: 2087px;\n }\n .main-content { \n margin:0;\n padding: 0; \n display:block;\n flex:1;\n height:100%;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n scrollbar-color: var(--border-color) transparent;\n }\n\n .main-content-inner--view-mode {\n padding: 0 8px;\n }\n .main-content::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n .main-content::-webkit-scrollbar-track {\n background:transparent;\n }\n .main-content::-webkit-scrollbar-thumb {\n background-color: var(--border-color);\n }\n .section-gap.section-tag {\n border-bottom:1px solid var(--border-color);\n }\n .section-tag-header {\n position:relative;\n cursor: n-resize;\n padding: 12px 0;\n }\n .collapsed .section-tag-header:hover{\n cursor: s-resize;\n }\n\n .section-tag-header:hover{\n background-image: linear-gradient(to right, rgba(0,0,0,0), var(--border-color), rgba(0,0,0,0));\n }\n\n .section-tag-header:hover::after {\n position:absolute;\n margin-left:-24px;\n font-size:20px;\n top: calc(50% - 14px);\n color:var(--primary-color);\n content: '⬆'; \n }\n\n .collapsed .section-tag-header::after {\n position:absolute;\n margin-left:-24px;\n font-size:20px;\n top: calc(50% - 14px);\n color: var(--border-color);\n content: '⬇'; \n }\n .collapsed .section-tag-header:hover::after {\n color:var(--primary-color);\n }\n\n .collapsed .section-tag-body {\n display:none;\n }\n\n .logo {\n height:36px;\n width:36px;\n margin-left:5px; \n }\n .only-large-screen-flex,\n .only-large-screen{\n display:none;\n }\n .tag.title {\n text-transform: uppercase;\n }\n .main-header {\n background-color:var(--header-bg);\n color:var(--header-fg);\n width:100%;\n }\n .header-title {\n font-size:calc(var(--font-size-regular) + 8px); \n padding:0 8px;\n }\n input.header-input{\n background:var(--header-color-darker);\n color:var(--header-fg);\n border:1px solid var(--header-color-border);\n flex:1; \n padding-right:24px;\n border-radius:3px;\n }\n input.header-input::placeholder {\n opacity:0.4;\n }\n .loader {\n margin: 16px auto 16px auto; \n border: 4px solid var(--bg3);\n border-radius: 50%;\n border-top: 4px solid var(--primary-color);\n width: 36px;\n height: 36px;\n animation: spin 2s linear infinite;\n }\n .expanded-endpoint-body { \n position: relative;\n padding: 6px 0px; \n }\n .expanded-endpoint-body .tag-description {\n background: var(--code-bg);\n border-radius: var(--border-radius);\n transition: max-height .2s ease-out;\n }\n .expanded-endpoint-body .tag-icon {\n transition: transform .2s ease-out;\n }\n .expanded-endpoint-body .tag-icon.expanded {\n transform: rotate(180deg);\n }\n .divider { \n border-top: 2px solid var(--border-color);\n margin: 24px 0;\n width:100%;\n }\n\n .tooltip {\n cursor:pointer;\n border: 1px solid var(--border-color);\n border-left-width: 4px;\n margin-left:2px;\n }\n .tooltip a {\n color: var(--fg2);\n text-decoration: none;\n }\n .tooltip-text {\n color: var(--fg2);\n max-width: 400px;\n position: absolute;\n z-index:1;\n background-color: var(--bg2);\n visibility: hidden;\n\n overflow-wrap: break-word;\n }\n .tooltip:hover {\n color: var(--primary-color);\n border-color: var(--primary-color);\n }\n .tooltip:hover a:hover {\n color: var(--primary-color);\n }\n\n .tooltip:hover .tooltip-text {\n visibility: visible;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n .nav-method { font-weight: bold; margin-right: 4px; font-size: calc(var(--font-size-small) - 2px); white-space: nowrap; }\n .nav-method.false { display: none; }\n\n .nav-method.as-colored-text.get { color:var(--get-color); }\n .nav-method.as-colored-text.put { color:var(--put-color); }\n .nav-method.as-colored-text.post { color:var(--post-color); }\n .nav-method.as-colored-text.delete { color:var(--delete-color); }\n .nav-method.as-colored-text.head, .nav-method.as-colored-text.patch, .nav-method.as-colored-text.options { color:var(--nav-head-color); }\n \n .nav-method.as-colored-block {\n padding: 1px 4px;\n min-width: 30px;\n border-radius: 4px 0 0 4px;\n color: #000;\n }\n .colored-block .nav-method.as-colored-block {\n outline: 1px solid;\n }\n\n .nav-method.as-colored-block.get { background-color: var(--blue); }\n .nav-method.as-colored-block.put { background-color: var(--orange); }\n .nav-method.as-colored-block.post { background-color: var(--green); }\n .nav-method.as-colored-block.delete { background-color: var(--red); }\n .nav-method.as-colored-block.head, .nav-method.as-colored-block.patch , .nav-method.as-colored-block.options { \n background-color: var(--yellow); \n }\n\n @media only screen and (min-width: 768px) {\n .nav-bar {\n width: 260px;\n display:flex;\n }\n .only-large-screen{\n display:block;\n }\n .only-large-screen-flex{\n display:flex;\n }\n .section-gap { \n padding: 0 0 0 24px; \n }\n .section-gap--focused-mode {\n padding: 24px 8px; \n }\n .section-gap--read-mode { \n padding: 24px 8px; \n }\n .endpoint-body {\n position: relative;\n padding:36px 0 48px 0;\n }\n }\n\n @media (min-width: 2560px) {\n .body {\n padding-left: 316px;\n padding-right: 221px;\n }\n }\n\n @media only screen and (min-width: 1024px) {\n .nav-bar {\n width: ${unsafeCSS(this.fontSize === 'default' ? '300px' : this.fontSize === 'large' ? '315px' : '330px')};\n display:flex;\n }\n .section-gap--focused-mode { \n padding: 12px 80px 12px 80px; \n }\n .section-gap--read-mode { \n padding: 24px 80px 12px 80px; \n }\n }`,\n CustomStyles,\n ];\n }\n\n // Startup\n connectedCallback() {\n super.connectedCallback();\n const parent = this.parentElement;\n if (parent) {\n /* if (parent.offsetWidth === 0 && parent.style.width === '') {\n parent.style.width = '100vw';\n }\n if (parent.offsetHeight === 0 && parent.style.height === '') {\n parent.style.height = '100vh';\n } */\n if (parent.tagName === 'BODY') {\n if (!parent.style.marginTop) { parent.style.marginTop = '0'; }\n if (!parent.style.marginRight) { parent.style.marginRight = '0'; }\n if (!parent.style.marginBottom) { parent.style.marginBottom = '0'; }\n if (!parent.style.marginLeft) { parent.style.marginLeft = '0'; }\n }\n }\n\n if (this.loadFonts !== 'false') {\n const fontDescriptor = {\n family: 'Open Sans',\n style: 'normal',\n weight: '300',\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\n };\n const fontWeight300 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontDescriptor.weight = '600';\n const fontWeight600 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontWeight300.load().then((font) => { document.fonts.add(font); });\n fontWeight600.load().then((font) => { document.fonts.add(font); });\n }\n\n if (!this.layout || !'row, column,'.includes(`${this.layout},`)) { this.layout = 'row'; }\n if (!this.renderStyle || !'read, view, focused,'.includes(`${this.renderStyle},`)) { this.renderStyle = 'focused'; }\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\n }\n if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {\n this.defaultSchemaTab = 'example';\n } else if (this.defaultSchemaTab === 'model') {\n this.defaultSchemaTab = 'schema';\n }\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\n\n if (!this.schemaHideReadOnly || !'default, never,'.includes(`${this.schemaHideReadOnly},`)) { this.schemaHideReadOnly = 'default'; }\n if (!this.schemaHideWriteOnly || !'default, never,'.includes(`${this.schemaHideWriteOnly},`)) { this.schemaHideWriteOnly = 'default'; }\n\n if (!this.fillRequestFieldsWithExample || !'true, false,'.includes(`${this.fillRequestFieldsWithExample},`)) { this.fillRequestFieldsWithExample = 'true'; }\n if (!this.persistAuth || !'true, false,'.includes(`${this.persistAuth},`)) { this.persistAuth = 'false'; }\n if (!this.responseAreaHeight) {\n this.responseAreaHeight = '400px';\n }\n\n if (!this.allowSearch || !'true, false,'.includes(`${this.allowSearch},`)) { this.allowSearch = 'true'; }\n if (!this.allowAdvancedSearch || !'true, false,'.includes(`${this.allowAdvancedSearch},`)) { this.allowAdvancedSearch = 'true'; }\n\n if (!this.allowTry || !'true, false,'.includes(`${this.allowTry},`)) { this.allowTry = 'true'; }\n if (!this.apiKeyValue) { this.apiKeyValue = '-'; }\n if (!this.apiKeyLocation) { this.apiKeyLocation = 'header'; }\n if (!this.apiKeyName) { this.apiKeyName = ''; }\n\n if (!this.oauthReceiver) { this.oauthReceiver = 'oauth-receiver.html'; }\n if (!this.updateRoute || !'true, false,'.includes(`${this.updateRoute},`)) { this.updateRoute = 'true'; }\n if (!this.routePrefix) { this.routePrefix = '#'; }\n if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; }\n if (!this.generateMissingTags || !'true, false,'.includes(`${this.generateMissingTags},`)) { this.generateMissingTags = 'false'; }\n if (!this.sortEndpointsBy || !'method, path, summary, none,'.includes(`${this.sortEndpointsBy},`)) { this.sortEndpointsBy = 'path'; }\n\n if (!this.onNavTagClick || !'expand-collapse, show-description,'.includes(`${this.onNavTagClick},`)) { this.onNavTagClick = 'expand-collapse'; }\n if (!this.navItemSpacing || !'compact, relaxed, default,'.includes(`${this.navItemSpacing},`)) { this.navItemSpacing = 'default'; }\n if (!this.showMethodInNavBar || !'false, as-plain-text, as-colored-text, as-colored-block,'.includes(`${this.showMethodInNavBar},`)) { this.showMethodInNavBar = 'false'; }\n if (!this.usePathInNavBar || !'true, false,'.includes(`${this.usePathInNavBar},`)) { this.usePathInNavBar = 'false'; }\n if (!this.navActiveItemMarker || !'left-bar, colored-block'.includes(`${this.navActiveItemMarker},`)) { this.navActiveItemMarker = 'left-bar'; }\n\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\n if (!this.showInfo || !'true, false,'.includes(`${this.showInfo},`)) { this.showInfo = 'true'; }\n if (!this.allowServerSelection || !'true, false,'.includes(`${this.allowServerSelection},`)) { this.allowServerSelection = 'true'; }\n if (!this.allowAuthentication || !'true, false,'.includes(`${this.allowAuthentication},`)) { this.allowAuthentication = 'true'; }\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\n\n if (!this.showSideNav || !'true false'.includes(this.showSideNav)) { this.showSideNav = 'true'; }\n if (!this.showComponents || !'true false'.includes(this.showComponents)) { this.showComponents = 'false'; }\n if (!this.infoDescriptionHeadingsInNavBar || !'true, false,'.includes(`${this.infoDescriptionHeadingsInNavBar},`)) { this.infoDescriptionHeadingsInNavBar = 'false'; }\n if (!this.fetchCredentials || !'omit, same-origin, include,'.includes(`${this.fetchCredentials},`)) { this.fetchCredentials = ''; }\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\n\n if (!this.showAdvancedSearchDialog) { this.showAdvancedSearchDialog = false; }\n\n if (!this.cssFile) { this.cssFile = null; }\n if (!this.cssClasses) { this.cssClasses = ''; }\n\n Prism.languages.node = Prism.languages.javascript;\n\n marked.setOptions({\n highlight: (code, lang) => {\n if (lang === 'curl') lang = 'bash';\n if (Prism.languages[lang]) {\n return Prism.highlight(code, Prism.languages[lang], lang);\n }\n return code;\n },\n });\n\n window.addEventListener('hashchange', () => {\n this.scrollToPath(this.getElementIDFromURL());\n }, true);\n }\n\n // Cleanup\n disconnectedCallback() {\n /* if (this.intersectionObserver) {\n this.intersectionObserver.disconnect();\n } */\n super.disconnectedCallback();\n }\n\n infoDescriptionHeadingRenderer() {\n const renderer = new marked.Renderer();\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\n return renderer;\n }\n\n render() {\n // return render(mainBodyTemplate(this), this.shadowRoot, { eventContext: this });\n /* const cssLinkEl = document.querySelector(`link[href*=\"${this.cssFile}\"]`);\n // adding custom style for RapiDoc\n if (cssLinkEl) {\n this.shadowRoot.appendChild(cssLinkEl.cloneNode());\n } */\n return mainBodyTemplate.call(this);\n }\n\n /* observeExpandedContent() {\n // Main Container\n const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me');\n observeOverviewEls.forEach((targetEl) => {\n this.intersectionObserver.observe(targetEl);\n });\n } */\n\n attributeChangedCallback(name, oldVal, newVal) {\n if (name === 'spec-url') {\n if (oldVal !== newVal) {\n // put it at the end of event-loop to load all the attributes\n window.setTimeout(async () => {\n await this.loadSpec(newVal);\n // If goto-path is provided and no location-hash is present then try to scroll there\n if (this.gotoPath && !window.location.hash) {\n this.scrollToPath(this.gotoPath);\n }\n }, 0);\n }\n }\n if (name === 'render-style') {\n if (newVal === 'read') {\n window.setTimeout(() => {\n this.observeExpandedContent();\n }, 100);\n } else {\n // this.intersectionObserver.disconnect();\n }\n }\n if (name === 'api-key-name' || name === 'api-key-location' || name === 'api-key-value') {\n let updateSelectedApiKey = false;\n let apiKeyName = '';\n let apiKeyLocation = '';\n let apiKeyValue = '';\n\n if (name === 'api-key-name') {\n if (this.getAttribute('api-key-location') && this.getAttribute('api-key-value')) {\n apiKeyName = newVal;\n apiKeyLocation = this.getAttribute('api-key-location');\n apiKeyValue = this.getAttribute('api-key-value');\n updateSelectedApiKey = true;\n }\n } else if (name === 'api-key-location') {\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-value')) {\n apiKeyLocation = newVal;\n apiKeyName = this.getAttribute('api-key-name');\n apiKeyValue = this.getAttribute('api-key-value');\n updateSelectedApiKey = true;\n }\n } else if (name === 'api-key-value') {\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-location')) {\n apiKeyValue = newVal;\n apiKeyLocation = this.getAttribute('api-key-location');\n apiKeyName = this.getAttribute('api-key-name');\n updateSelectedApiKey = true;\n }\n }\n\n if (updateSelectedApiKey) {\n if (this.resolvedSpec) {\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => v.securitySchemeId === rapidocApiKey);\n if (!rapiDocApiKey) {\n this.resolvedSpec.securitySchemes.push({\n securitySchemeId: rapidocApiKey,\n description: 'api-key provided in rapidoc element attributes',\n type: 'apiKey',\n name: apiKeyName,\n in: apiKeyLocation,\n value: apiKeyValue,\n finalKeyValue: apiKeyValue,\n });\n } else {\n rapiDocApiKey.name = apiKeyName;\n rapiDocApiKey.in = apiKeyLocation;\n rapiDocApiKey.value = apiKeyValue;\n rapiDocApiKey.finalKeyValue = apiKeyValue;\n }\n this.requestUpdate();\n }\n }\n }\n super.attributeChangedCallback(name, oldVal, newVal);\n }\n\n onSpecUrlChange() {\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\n }\n\n onSpecFileChange(e) {\n this.setAttribute('spec-file', this.shadowRoot.getElementById('spec-file').value);\n const specFile = e.target.files[0];\n const reader = new FileReader();\n reader.onload = () => {\n try {\n const specObj = JSON.parse(reader.result);\n this.loadSpec(specObj);\n this.shadowRoot.getElementById('spec-url').value = '';\n } catch (err) {\n console.error('RapiDoc: Unable to read or parse json'); // eslint-disable-line no-console\n }\n };\n // Read the Text file\n reader.readAsText(specFile);\n }\n\n onFileLoadClick() {\n this.shadowRoot.getElementById('spec-file').click();\n }\n\n onSearchChange(e) {\n this.matchPaths = e.target.value;\n this.resolvedSpec.tags.forEach((tag) => tag.paths.filter((v) => {\n if (this.matchPaths) {\n // v.expanded = false;\n if (pathIsInSearch(this.matchPaths, v, this.matchType)) {\n tag.expanded = true;\n }\n }\n }));\n this.resolvedSpec.components.forEach((component) => component.subComponents.filter((v) => {\n v.expanded = false;\n if (!this.matchPaths || componentIsInSearch(this.matchPaths, v)) {\n v.expanded = true;\n }\n }));\n this.requestUpdate();\n }\n\n onClearSearch() {\n const searchEl = this.shadowRoot.getElementById('nav-bar-search');\n searchEl.value = '';\n this.matchPaths = '';\n this.resolvedSpec.components.forEach((component) => component.subComponents.filter((v) => {\n v.expanded = true;\n }));\n }\n\n onShowSearchModalClicked() {\n this.showAdvancedSearchDialog = true;\n }\n\n // Event Handler on Dialog-Box is opened\n async onOpenSearchDialog(e) {\n // Set focus to text input\n const inputEl = e.detail.querySelector('input');\n await sleep(0);\n if (inputEl) {\n inputEl.focus();\n }\n }\n\n // Public Method\n async loadSpec(specUrl) {\n if (!specUrl) {\n return;\n }\n this.matchPaths = '';\n try {\n this.resolvedSpec = {\n specLoadError: false,\n isSpecLoading: true,\n tags: [],\n };\n this.loading = true;\n this.loadFailed = false;\n const processedSpec = await ProcessSpec.call(\n this,\n specUrl,\n this.spec,\n this.generateMissingTags === 'true',\n this.sortTags === 'true',\n this.getAttribute('sort-endpoints-by'),\n this.getAttribute('api-key-name'),\n this.getAttribute('api-key-location'),\n this.getAttribute('api-key-value'),\n this.getAttribute('server-url'),\n );\n this.loading = false;\n this.afterSpecParsedAndValidated(processedSpec);\n } catch (err) {\n this.loading = false;\n this.loadFailed = true;\n this.resolvedSpec = null;\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\n }\n }\n\n async afterSpecParsedAndValidated(spec) {\n this.resolvedSpec = spec;\n this.selectedServer = undefined;\n if (this.defaultApiServerUrl) {\n if (this.defaultApiServerUrl === this.serverUrl) {\n this.selectedServer = {\n url: this.serverUrl,\n computedUrl: this.serverUrl,\n };\n } else if (this.resolvedSpec.servers) {\n this.selectedServer = this.resolvedSpec.servers.find((v) => (v.url === this.defaultApiServerUrl));\n }\n }\n if (!this.selectedServer) {\n if (this.resolvedSpec.servers) {\n this.selectedServer = this.resolvedSpec.servers[0]; // eslint-disable-line prefer-destructuring\n }\n }\n this.requestUpdate();\n // eslint-disable-next-line no-await-in-loop\n while (!await this.updateComplete);\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\n this.dispatchEvent(specLoadedEvent);\n\n // Initiate IntersectionObserver and put it at the end of event loop, to allow loading all the child elements (must for larger specs)\n // this.intersectionObserver.disconnect();\n if (this.renderStyle === 'read') {\n await sleep(100);\n this.observeExpandedContent(); // This will auto-highlight the selected nav-item in read-mode\n }\n\n this.isIntersectionObserverActive = true;\n\n // On first time Spec load, try to navigate to location hash if provided\n const elementId = this.getElementIDFromURL();\n\n if (elementId) {\n if (this.renderStyle === 'view') {\n this.expandAndGotoOperation(elementId, true, true);\n } else {\n this.scrollToPath(elementId);\n }\n } else if (this.renderStyle === 'focused') {\n // If goto-path is provided and no location-hash is present then try to scroll to default element\n if (!this.gotoPath) {\n const defaultElementId = this.showInfo ? 'overview' : this.resolvedSpec.tags[0]?.paths[0];\n this.scrollToPath(defaultElementId);\n }\n }\n }\n\n /**\n * Return the URL from where is served the RapiDoc component, removing any hash and route prefix\n */\n getComponentBaseURL() {\n const { href } = window.location;\n\n // Remove end of string # or /\n const cleanRouterPrefix = this.routePrefix.replace(/(#|\\/)$/, '');\n\n if (!cleanRouterPrefix) {\n return href.split('#')[0];\n }\n\n const indexOfRoutePrefix = href.lastIndexOf(cleanRouterPrefix);\n\n if (indexOfRoutePrefix === -1) {\n return href;\n }\n\n return href.slice(0, indexOfRoutePrefix);\n }\n\n /**\n * From the URL return the ID of the element whether it is in the hash or if used a router prefix without a hash\n */\n getElementIDFromURL() {\n const baseURL = this.getComponentBaseURL();\n const elementId = window.location.href.replace(baseURL + this.routePrefix, '');\n return elementId;\n }\n\n replaceHistoryState(hashId) {\n const baseURL = this.getComponentBaseURL();\n window.history.replaceState(null, null, `${baseURL}${this.routePrefix || '#'}${hashId}`);\n }\n\n expandAndGotoOperation(elementId, scrollToElement = true) {\n if (!this.resolvedSpec) {\n return;\n }\n // Expand full operation and tag\n let isExpandingNeeded = true;\n const tmpElementId = elementId.indexOf('#') === -1 ? elementId : elementId.substring(1);\n if (tmpElementId.startsWith('overview') || tmpElementId === 'servers' || tmpElementId === 'auth') {\n isExpandingNeeded = false;\n } else {\n for (let i = 0; i < this.resolvedSpec.tags?.length; i++) {\n const tag = this.resolvedSpec.tags[i];\n const path = tag.paths?.find((p) => p.elementId === elementId);\n if (path) {\n if (path.expanded && tag.expanded) {\n isExpandingNeeded = false;\n } else {\n path.expanded = true;\n tag.expanded = true;\n }\n }\n }\n }\n if (scrollToElement) {\n // requestUpdate() and delay required, else we cant find element\n if (isExpandingNeeded) {\n this.requestUpdate();\n }\n window.setTimeout(() => {\n const gotoEl = this.shadowRoot.getElementById(tmpElementId);\n if (gotoEl) {\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n if (this.updateRoute === 'true') {\n this.replaceHistoryState(tmpElementId);\n }\n }\n }, isExpandingNeeded ? 150 : 0);\n }\n }\n\n isValidTopId(id) {\n return (id.startsWith('overview') || id === 'servers' || id === 'auth');\n }\n\n isValidPathId(id) {\n if (id === 'overview' && this.showInfo) {\n return true;\n }\n if (id === 'servers' && this.allowServerSelection) {\n return true;\n }\n if (id === 'auth' && this.allowAuthentication) {\n return true;\n }\n if (id.startsWith('tag--')) {\n return this.resolvedSpec?.tags?.find((tag) => tag.elementId === id);\n }\n return this.resolvedSpec?.tags?.find((tag) => tag.paths.find((path) => path.elementId === id));\n }\n\n onIntersect(entries) {\n if (this.isIntersectionObserverActive === false) {\n return;\n }\n\n entries.forEach((entry) => {\n if (entry.isIntersecting && entry.intersectionRatio > 0) {\n const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active');\n const newNavEl = this.shadowRoot.getElementById(`link-${entry.target.id}`);\n\n // Add active class in the new element\n if (newNavEl) {\n if (this.updateRoute === 'true') {\n this.replaceHistoryState(entry.target.id);\n }\n // newNavEl.scrollIntoView({ behavior: 'auto', block: 'center' });\n newNavEl.classList.add('active');\n newNavEl.part.add('section-navbar-active-item');\n }\n\n // Remove active class from previous element\n // if it is different from the new one (edge case on loading in read render style)\n if (oldNavEl && oldNavEl !== newNavEl) {\n oldNavEl.classList.remove('active');\n oldNavEl.part.remove('section-navbar-active-item');\n }\n }\n });\n }\n\n // Called by anchor tags created using markdown\n handleHref(e) {\n if (e.target.tagName.toLowerCase() === 'a') {\n if (e.target.getAttribute('href').startsWith('#')) {\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\n if (gotoEl) {\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n }\n }\n }\n }\n\n /**\n * Called by\n * - onClick of Navigation Bar\n * - onClick of Advanced Search items\n *\n * Functionality:\n * 1. First deactivate IntersectionObserver\n * 2. Scroll to the element\n * 3. Activate IntersectionObserver (after little delay)\n *\n */\n async scrollToEventTarget(event, scrollNavItemToView = true) {\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\n return;\n }\n const navEl = event.target;\n if (!navEl.dataset.contentId) {\n return;\n }\n this.isIntersectionObserverActive = false;\n if (this.renderStyle === 'focused') {\n const requestEl = this.shadowRoot.querySelector('api-request');\n if (requestEl) {\n requestEl.beforeNavigationFocusedMode();\n }\n }\n this.scrollToPath(navEl.dataset.contentId, true, scrollNavItemToView);\n setTimeout(() => {\n this.isIntersectionObserverActive = true;\n }, 300);\n }\n\n // Public Method (scrolls to a given path and highlights the left-nav selection)\n async scrollToPath(elementId, expandPath = true, scrollNavItemToView = true) {\n if (this.renderStyle === 'focused') {\n // for focused mode update this.focusedElementId to update the rendering, else it wont find the needed html elements\n // focusedElementId will get validated in the template\n this.focusedElementId = elementId;\n await sleep(0);\n }\n if (this.renderStyle === 'view') {\n this.expandAndGotoOperation(elementId, expandPath, true);\n } else {\n let isValidElementId = false;\n const contentEl = this.shadowRoot.getElementById(elementId);\n if (contentEl) {\n isValidElementId = true;\n contentEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n } else {\n isValidElementId = false;\n }\n if (isValidElementId) {\n // for focused style it is important to reset request-body-selection and response selection which maintains the state for in case of multiple req-body or multiple response mime-type\n if (this.renderStyle === 'focused') {\n const requestEl = this.shadowRoot.querySelector('api-request');\n if (requestEl) {\n requestEl.afterNavigationFocusedMode();\n }\n const responseEl = this.shadowRoot.querySelector('api-response');\n if (responseEl) {\n responseEl.resetSelection();\n }\n }\n\n // Update Location Hash\n if (this.updateRoute === 'true') {\n this.replaceHistoryState(elementId);\n }\n\n // Update NavBar View and Styles\n const newNavEl = this.shadowRoot.getElementById(`link-${elementId}`);\n\n if (newNavEl) {\n if (scrollNavItemToView) {\n newNavEl.scrollIntoView({ behavior: 'auto', block: 'center' });\n }\n await sleep(0);\n const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active');\n if (oldNavEl) {\n oldNavEl.classList.remove('active');\n oldNavEl.part.remove('active');\n oldNavEl.part.remove('section-navbar-active-item');\n }\n newNavEl.classList.add('active'); // must add the class after scrolling\n newNavEl.part.add('section-navbar-active-item');\n // this.requestUpdate();\n }\n }\n }\n }\n\n // Public Method - to update security-scheme of type http\n setHttpUserNameAndPassword(securitySchemeId, username, password) {\n return applyApiKey.call(this, securitySchemeId, username, password);\n }\n\n // Public Method - to update security-scheme of type apiKey or OAuth\n setApiKey(securitySchemeId, apiKeyValue) {\n return applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\n }\n\n // Public Method\n removeAllSecurityKeys() {\n return onClearAllApiKeys.call(this);\n }\n\n // Public Method\n setApiServer(apiServerUrl) {\n // return apiServerUrl;\n return setApiServer.call(this, apiServerUrl);\n }\n\n // Event handler for Advanced Search text-inputs and checkboxes\n onAdvancedSearch(ev, delay) {\n const eventTargetEl = ev.target;\n clearTimeout(this.timeoutId);\n this.timeoutId = setTimeout(() => {\n let searchInputEl;\n if (eventTargetEl.type === 'text') {\n searchInputEl = eventTargetEl;\n } else {\n searchInputEl = eventTargetEl.closest('.advanced-search-options').querySelector('input[type=text]');\n }\n const searchOptions = [...eventTargetEl.closest('.advanced-search-options').querySelectorAll('input:checked')].map((v) => v.id);\n this.advancedSearchMatches = advancedSearch(searchInputEl.value, this.resolvedSpec.tags, searchOptions);\n }, delay);\n }\n}\nif (!customElements.get('rapi-doc')) customElements.define('rapi-doc', RapiDoc);\n","import { css, LitElement } from 'lit';\nimport { marked } from 'marked';\nimport Prism from 'prismjs';\nimport 'prismjs/components/prism-css';\nimport 'prismjs/components/prism-yaml';\nimport 'prismjs/components/prism-go';\nimport 'prismjs/components/prism-java';\nimport 'prismjs/components/prism-json';\nimport 'prismjs/components/prism-bash';\nimport 'prismjs/components/prism-python';\nimport 'prismjs/components/prism-http';\nimport 'prismjs/components/prism-csharp';\n\n// Styles\nimport FontStyles from '~/styles/font-styles';\nimport InputStyles from '~/styles/input-styles';\nimport FlexStyles from '~/styles/flex-styles';\nimport TableStyles from '~/styles/table-styles';\nimport PrismStyles from '~/styles/prism-styles';\nimport TabStyles from '~/styles/tab-styles';\nimport NavStyles from '~/styles/nav-styles';\nimport InfoStyles from '~/styles/info-styles';\n\nimport EndpointStyles from '~/styles/endpoint-styles';\nimport { rapidocApiKey } from '~/utils/common-utils';\nimport ProcessSpec from '~/utils/spec-parser';\nimport mainBodyTemplate from '~/templates/main-body-template';\nimport { applyApiKey, onClearAllApiKeys } from '~/templates/security-scheme-template';\nimport { setApiServer } from '~/templates/server-template';\n\nexport default class RapiDocMini extends LitElement {\n constructor() {\n super();\n this.isMini = true;\n this.updateRoute = 'false';\n this.renderStyle = 'view';\n this.showHeader = 'false';\n this.allowAdvancedSearch = 'false';\n }\n\n static get properties() {\n return {\n // Spec\n specUrl: { type: String, attribute: 'spec-url' },\n sortEndpointsBy: { type: String, attribute: 'sort-endpoints-by' },\n\n // UI Layouts\n layout: { type: String },\n pathsExpanded: { type: String, attribute: 'paths-expanded' },\n defaultSchemaTab: { type: String, attribute: 'default-schema-tab' },\n responseAreaHeight: { type: String, attribute: 'response-area-height' },\n showSummaryWhenCollapsed: { type: String, attribute: 'show-summary-when-collapsed' },\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\n persistAuth: { type: String, attribute: 'persist-auth' },\n\n // Schema Styles\n schemaStyle: { type: String, attribute: 'schema-style' },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n\n // API Server\n apiKeyName: { type: String, attribute: 'api-key-name' },\n apiKeyLocation: { type: String, attribute: 'api-key-location' },\n apiKeyValue: { type: String, attribute: 'api-key-value' },\n defaultApiServerUrl: { type: String, attribute: 'default-api-server' },\n serverUrl: { type: String, attribute: 'server-url' },\n oauthReceiver: { type: String, attribute: 'oauth-receiver' },\n\n allowTry: { type: String, attribute: 'allow-try' },\n\n // Main Colors and Font\n theme: { type: String },\n bgColor: { type: String, attribute: 'bg-color' },\n textColor: { type: String, attribute: 'text-color' },\n primaryColor: { type: String, attribute: 'primary-color' },\n fontSize: { type: String, attribute: 'font-size' },\n regularFont: { type: String, attribute: 'regular-font' },\n monoFont: { type: String, attribute: 'mono-font' },\n mediumFont: { type: String, attribute: 'medium-font' },\n loadFonts: { type: String, attribute: 'load-fonts' },\n\n // Fetch Options\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\n\n // Filters\n matchPaths: { type: String, attribute: 'match-paths' },\n matchType: { type: String, attribute: 'match-type' },\n\n // Internal Properties\n loading: { type: Boolean }, // indicates spec is being loaded\n };\n }\n\n static get styles() {\n return [\n FontStyles,\n InputStyles,\n FlexStyles,\n TableStyles,\n EndpointStyles,\n PrismStyles,\n TabStyles,\n NavStyles,\n InfoStyles,\n css`\n :host {\n display:flex;\n flex-direction: column;\n min-width:360px;\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n overflow: hidden;\n letter-spacing:normal;\n color:var(--fg);\n background-color:var(--bg);\n font-family:var(--font-regular);\n }\n\n @media only screen and (min-width: 768px) {\n .only-large-screen{\n display:block;\n }\n .only-large-screen-flex{\n display:flex;\n }\n }`,\n ];\n }\n\n // Startup\n connectedCallback() {\n super.connectedCallback();\n\n if (this.loadFonts !== 'false') {\n const fontDescriptor = {\n family: 'Open Sans',\n style: 'normal',\n weight: '300',\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\n };\n const fontWeight300 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontDescriptor.weight = '600';\n const fontWeight600 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontWeight300.load().then((font) => { document.fonts.add(font); });\n fontWeight600.load().then((font) => { document.fonts.add(font); });\n }\n\n if (!this.showSummaryWhenCollapsed || !'true, false,'.includes(`${this.showSummaryWhenCollapsed},`)) { this.showSummaryWhenCollapsed = 'true'; }\n if (!this.layout || !'row, column,'.includes(`${this.layout},`)) { this.layout = 'row'; }\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\n }\n if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {\n this.defaultSchemaTab = 'example';\n } else if (this.defaultSchemaTab === 'model') {\n this.defaultSchemaTab = 'schema';\n }\n this.pathsExpanded = this.pathsExpanded === 'true';\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\n if (!this.fillRequestFieldsWithExample || !'true, false,'.includes(`${this.fillRequestFieldsWithExample},`)) { this.fillRequestFieldsWithExample = 'true'; }\n if (!this.persistAuth || !'true, false,'.includes(`${this.persistAuth},`)) { this.persistAuth = 'false'; }\n if (!this.responseAreaHeight) { this.responseAreaHeight = '300px'; }\n\n if (!this.allowTry || !'true, false,'.includes(`${this.allowTry},`)) { this.allowTry = 'true'; }\n if (!this.apiKeyValue) { this.apiKeyValue = '-'; }\n if (!this.apiKeyLocation) { this.apiKeyLocation = 'header'; }\n if (!this.apiKeyName) { this.apiKeyName = ''; }\n\n if (!this.oauthReceiver) { this.oauthReceiver = 'oauth-receiver.html'; }\n if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; }\n if (!this.sortEndpointsBy || !'method, path, summary,'.includes(`${this.sortEndpointsBy},`)) { this.sortEndpointsBy = 'path'; }\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\n\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\n if (!this.fetchCredentials || !'omit, same-origin, include,'.includes(`${this.fetchCredentials},`)) { this.fetchCredentials = ''; }\n\n marked.setOptions({\n highlight: (code, lang) => {\n if (lang === 'curl') lang = 'bash';\n if (Prism.languages[lang]) {\n return Prism.highlight(code, Prism.languages[lang], lang);\n }\n return code;\n },\n });\n }\n\n render() {\n return mainBodyTemplate.call(this, true, false, false, this.pathsExpanded);\n }\n\n attributeChangedCallback(name, oldVal, newVal) {\n if (name === 'spec-url') {\n if (oldVal !== newVal) {\n // put it at the end of event-loop to load all the attributes\n window.setTimeout(async () => {\n await this.loadSpec(newVal);\n }, 0);\n }\n }\n if (name === 'api-key-name' || name === 'api-key-location' || name === 'api-key-value') {\n let updateSelectedApiKey = false;\n let apiKeyName = '';\n let apiKeyLocation = '';\n let apiKeyValue = '';\n\n if (name === 'api-key-name') {\n if (this.getAttribute('api-key-location') && this.getAttribute('api-key-value')) {\n apiKeyName = newVal;\n apiKeyLocation = this.getAttribute('api-key-location');\n apiKeyValue = this.getAttribute('api-key-value');\n updateSelectedApiKey = true;\n }\n } else if (name === 'api-key-location') {\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-value')) {\n apiKeyLocation = newVal;\n apiKeyName = this.getAttribute('api-key-name');\n apiKeyValue = this.getAttribute('api-key-value');\n updateSelectedApiKey = true;\n }\n } else if (name === 'api-key-value') {\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-location')) {\n apiKeyValue = newVal;\n apiKeyLocation = this.getAttribute('api-key-location');\n apiKeyName = this.getAttribute('api-key-name');\n updateSelectedApiKey = true;\n }\n }\n\n if (updateSelectedApiKey) {\n if (this.resolvedSpec) {\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => v.securitySchemeId === rapidocApiKey);\n if (!rapiDocApiKey) {\n this.resolvedSpec.securitySchemes.push({\n apiKeyId: rapidocApiKey,\n description: 'api-key provided in rapidoc element attributes',\n type: 'apiKey',\n name: apiKeyName,\n in: apiKeyLocation,\n value: apiKeyValue,\n finalKeyValue: apiKeyValue,\n });\n } else {\n rapiDocApiKey.name = apiKeyName;\n rapiDocApiKey.in = apiKeyLocation;\n rapiDocApiKey.value = apiKeyValue;\n rapiDocApiKey.finalKeyValue = apiKeyValue;\n }\n this.requestUpdate();\n }\n }\n }\n super.attributeChangedCallback(name, oldVal, newVal);\n }\n\n onSpecUrlChange() {\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\n }\n\n // Public Method\n async loadSpec(specUrl) {\n if (!specUrl) {\n return;\n }\n try {\n this.resolvedSpec = {\n specLoadError: false,\n isSpecLoading: true,\n tags: [],\n };\n this.loading = true;\n this.loadFailed = false;\n this.requestUpdate();\n const spec = await ProcessSpec.call(\n this,\n specUrl,\n this.generateMissingTags === 'true',\n this.sortTags === 'true',\n this.getAttribute('sort-endpoints-by'),\n this.getAttribute('api-key-name'),\n this.getAttribute('api-key-location'),\n this.getAttribute('api-key-value'),\n this.getAttribute('server-url'),\n );\n this.loading = false;\n this.afterSpecParsedAndValidated(spec);\n } catch (err) {\n this.loading = false;\n this.loadFailed = true;\n this.resolvedSpec = null;\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\n }\n }\n\n // Public Method - to update security-scheme of type http\n setHttpUserNameAndPassword(securitySchemeId, username, password) {\n return applyApiKey.call(this, securitySchemeId, username, password);\n }\n\n // Public Method - to update security-scheme of type apiKey or OAuth\n setApiKey(securitySchemeId, apiKeyValue) {\n return applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\n }\n\n // Public Method\n removeAllSecurityKeys() {\n return onClearAllApiKeys.call(this);\n }\n\n // Public Method\n setApiServer(apiServerUrl) {\n // return apiServerUrl;\n return setApiServer.call(this, apiServerUrl);\n }\n\n async afterSpecParsedAndValidated(spec) {\n this.resolvedSpec = spec;\n this.selectedServer = undefined;\n if (this.defaultApiServerUrl) {\n if (this.defaultApiServerUrl === this.serverUrl) {\n this.selectedServer = {\n url: this.serverUrl,\n computedUrl: this.serverUrl,\n };\n } else if (this.resolvedSpec.servers) {\n this.selectedServer = this.resolvedSpec.servers.find((v) => (v.url === this.defaultApiServerUrl));\n }\n }\n if (!this.selectedServer) {\n if (this.resolvedSpec.servers) {\n this.selectedServer = this.resolvedSpec.servers[0]; // eslint-disable-line prefer-destructuring\n }\n }\n this.requestUpdate();\n // eslint-disable-next-line no-await-in-loop\n while (!await this.updateComplete);\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\n this.dispatchEvent(specLoadedEvent);\n }\n\n // Called by anchor tags created using markdown\n handleHref(e) {\n if (e.target.tagName.toLowerCase() === 'a') {\n if (e.target.getAttribute('href').startsWith('#')) {\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\n if (gotoEl) {\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n }\n }\n }\n }\n}\nif (!customElements.get('rapi-doc-mini')) customElements.define('rapi-doc-mini', RapiDocMini);\n","import { html } from 'lit';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\nimport { marked } from 'marked';\n\n// Templates\nimport overviewTemplate from '~/templates/overview-template';\nimport headerTemplate from '~/templates/header-template';\nimport { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';\nimport '~/components/json-tree';\nimport '~/components/schema-tree';\nimport SetTheme from '~/utils/theme';\nimport { isValidHexColor } from '~/utils/color-utils';\n\n/* eslint-disable indent */\n// Json Schema Nav Template\nfunction jsonSchemaNavTemplate() {\n return html`\n \n `;\n}\n\n// Json Schema Body Template\nfunction jsonSchemaBodyTemplate() {\n return html`\n ${this.showInfo === 'true' ? overviewTemplate.call(this) : ''}\n
    \n ${this.resolvedSpec.schemaAndExamples.map((jSchemaBody) => {\n const examplesObj = generateExample(jSchemaBody.schema, 'json', jSchemaBody.examples, jSchemaBody.example, true, false, 'json', true);\n jSchemaBody.selectedExample = examplesObj[0]?.exampleId;\n return html`\n
    \n
    \n
    ${jSchemaBody.name}
    \n ${unsafeHTML(marked(jSchemaBody.description || ''))}\n
    \n
    \n
    \n \n
    \n
    \n ${examplesObj.length > 1\n ? html``\n : html`
    ${examplesObj[0].exampleSummary}
    `\n }\n ${examplesObj.map((v) => html`\n `)\n }\n
    \n
    \n
    `;\n })\n }\n
    \n `;\n}\n/* eslint-enable indent */\n\n// Json Schema Root Template\nexport default function jsonSchemaViewerTemplate(isMini = false) {\n// export default function jsonSchemaViewerTemplate(isMini = false, showExpandCollapse = true, showTags = true, pathsExpanded = false) {\n if (!this.resolvedSpec) {\n return '';\n }\n const newTheme = {\n bg1: isValidHexColor(this.bgColor) ? this.bgColor : '',\n fg1: isValidHexColor(this.textColor) ? this.textColor : '',\n headerColor: isValidHexColor(this.headerColor) ? this.headerColor : '',\n primaryColor: isValidHexColor(this.primaryColor) ? this.primaryColor : '',\n navBgColor: isValidHexColor(this.navBgColor) ? this.navBgColor : '',\n navTextColor: isValidHexColor(this.navTextColor) ? this.navTextColor : '',\n navHoverBgColor: isValidHexColor(this.navHoverBgColor) ? this.navHoverBgColor : '',\n navHoverTextColor: isValidHexColor(this.navHoverTextColor) ? this.navHoverTextColor : '',\n navAccentColor: isValidHexColor(this.navAccentColor) ? this.navAccentColor : '',\n navAccenttextColor: isValidHexColor(this.navAccentTextColor) ? this.navAccentTextColor : '',\n };\n /* eslint-disable indent */\n if (this.resolvedSpec.specLoadError) {\n if (isMini) {\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n
    ${this.resolvedSpec.info.description}
    \n `;\n }\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n \n ${headerTemplate.call(this)}\n

    Header

    \n
    \n \n
    \n

    ${this.resolvedSpec.info.title}

    \n
    ${this.resolvedSpec.info.description}
    \n
    \n
    \n `;\n }\n if (this.resolvedSpec.isSpecLoading) {\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n
    \n \n
    \n
    \n
    \n
    \n `;\n }\n\n return html`\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\n\n \n ${this.showHeader === 'false' ? '' : headerTemplate.call(this)}\n \n
    \n\n \n ${jsonSchemaNavTemplate.call(this)}\n\n \n
    \n \n
    \n ${this.loading === true\n ? html`
    `\n : html`\n ${this.loadFailed === true\n ? html`
    Unable to load the Spec
    `\n : html`\n
    { this.handleHref(e); }}\">\n ${jsonSchemaBodyTemplate.call(this)}\n
    \n `\n }`\n }\n
    \n \n
    \n
    \n `;\n}\n/* eslint-enable indent */\n","import { css, LitElement } from 'lit';\nimport { marked } from 'marked';\nimport Prism from 'prismjs';\nimport 'prismjs/components/prism-css';\nimport 'prismjs/components/prism-yaml';\nimport 'prismjs/components/prism-go';\nimport 'prismjs/components/prism-java';\nimport 'prismjs/components/prism-json';\nimport 'prismjs/components/prism-bash';\nimport 'prismjs/components/prism-python';\nimport 'prismjs/components/prism-http';\nimport 'prismjs/components/prism-csharp';\n\n// Styles\nimport FontStyles from '~/styles/font-styles';\nimport InputStyles from '~/styles/input-styles';\nimport FlexStyles from '~/styles/flex-styles';\nimport TableStyles from '~/styles/table-styles';\nimport PrismStyles from '~/styles/prism-styles';\nimport TabStyles from '~/styles/tab-styles';\nimport NavStyles from '~/styles/nav-styles';\nimport InfoStyles from '~/styles/info-styles';\n\nimport EndpointStyles from '~/styles/endpoint-styles';\nimport ProcessSpec from '~/utils/spec-parser';\nimport jsonSchemaViewerTemplate from '~/templates/json-schema-viewer-template';\n\nexport default class JsonSchemaViewer extends LitElement {\n constructor() {\n super();\n this.isMini = false;\n this.updateRoute = 'false';\n this.renderStyle = 'focused';\n this.showHeader = 'true';\n this.allowAdvancedSearch = 'false';\n this.selectedExampleForEachSchema = {};\n }\n\n static get properties() {\n return {\n // Spec\n specUrl: { type: String, attribute: 'spec-url' },\n\n // Schema Styles\n schemaStyle: { type: String, attribute: 'schema-style' },\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\n\n // Hide/show Sections\n showHeader: { type: String, attribute: 'show-header' },\n showSideNav: { type: String, attribute: 'show-side-nav' },\n showInfo: { type: String, attribute: 'show-info' },\n\n // Allow or restrict features\n allowSpecUrlLoad: { type: String, attribute: 'allow-spec-url-load' },\n allowSpecFileLoad: { type: String, attribute: 'allow-spec-file-load' },\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\n allowSearch: { type: String, attribute: 'allow-search' },\n\n // Main Colors and Font\n theme: { type: String },\n bgColor: { type: String, attribute: 'bg-color' },\n textColor: { type: String, attribute: 'text-color' },\n primaryColor: { type: String, attribute: 'primary-color' },\n fontSize: { type: String, attribute: 'font-size' },\n regularFont: { type: String, attribute: 'regular-font' },\n monoFont: { type: String, attribute: 'mono-font' },\n loadFonts: { type: String, attribute: 'load-fonts' },\n\n // Internal Properties\n loading: { type: Boolean }, // indicates spec is being loaded\n };\n }\n\n static get styles() {\n return [\n FontStyles,\n InputStyles,\n FlexStyles,\n TableStyles,\n EndpointStyles,\n PrismStyles,\n TabStyles,\n NavStyles,\n InfoStyles,\n css`\n :host {\n display:flex;\n flex-direction: column;\n min-width:360px;\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n overflow: hidden;\n letter-spacing:normal;\n color:var(--fg);\n background-color:var(--bg);\n font-family:var(--font-regular);\n }\n .body {\n display:flex;\n height:100%;\n width:100%;\n overflow:hidden;\n }\n .nav-bar {\n width: 230px;\n display:flex;\n }\n\n .main-content { \n margin:0;\n padding: 16px; \n display:block;\n flex:1;\n height:100%;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n scrollbar-color: var(--border-color) transparent;\n }\n .main-content-inner--view-mode {\n padding: 0 8px;\n }\n .main-content::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n .main-content::-webkit-scrollbar-track {\n background:transparent;\n }\n .main-content::-webkit-scrollbar-thumb {\n background-color: var(--border-color);\n }\n .main-header {\n background-color:var(--header-bg);\n color:var(--header-fg);\n width:100%;\n }\n .header-title {\n font-size:calc(var(--font-size-regular) + 8px); \n padding:0 8px;\n }\n input.header-input{\n background:var(--header-color-darker);\n color:var(--header-fg);\n border:1px solid var(--header-color-border);\n flex:1; \n padding-right:24px;\n border-radius:3px;\n }\n input.header-input::placeholder {\n opacity:0.4;\n }\n .loader {\n margin: 16px auto 16px auto; \n border: 4px solid var(--bg3);\n border-radius: 50%;\n border-top: 4px solid var(--primary-color);\n width: 36px;\n height: 36px;\n animation: spin 2s linear infinite;\n }\n @media only screen and (min-width: 768px) {\n .only-large-screen{\n display:block;\n }\n .only-large-screen-flex{\n display:flex;\n }\n }`,\n ];\n }\n\n // Startup\n connectedCallback() {\n super.connectedCallback();\n const parent = this.parentElement;\n if (parent) {\n if (parent.offsetWidth === 0 && parent.style.width === '') {\n parent.style.width = '100vw';\n }\n if (parent.offsetHeight === 0 && parent.style.height === '') {\n parent.style.height = '100vh';\n }\n if (parent.tagName === 'BODY') {\n if (!parent.style.marginTop) { parent.style.marginTop = '0'; }\n if (!parent.style.marginRight) { parent.style.marginRight = '0'; }\n if (!parent.style.marginBottom) { parent.style.marginBottom = '0'; }\n if (!parent.style.marginLeft) { parent.style.marginLeft = '0'; }\n }\n }\n\n if (this.loadFonts !== 'false') {\n const fontDescriptor = {\n family: 'Open Sans',\n style: 'normal',\n weight: '300',\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\n };\n const fontWeight300 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontDescriptor.weight = '600';\n const fontWeight600 = new FontFace(\n 'Open Sans',\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\n fontDescriptor,\n );\n fontWeight300.load().then((font) => { document.fonts.add(font); });\n fontWeight600.load().then((font) => { document.fonts.add(font); });\n }\n\n this.renderStyle = 'focused';\n this.pathsExpanded = this.pathsExpanded === 'true';\n\n if (!this.showInfo || !'true, false,'.includes(`${this.showInfo},`)) { this.showInfo = 'true'; }\n if (!this.showSideNav || !'true false'.includes(this.showSideNav)) { this.showSideNav = 'true'; }\n if (!this.showHeader || !'true, false,'.includes(`${this.showHeader},`)) { this.showHeader = 'true'; }\n\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\n }\n if (!this.allowSearch || !'true, false,'.includes(`${this.allowSearch},`)) { this.allowSearch = 'true'; }\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\n\n marked.setOptions({\n highlight: (code, lang) => {\n if (lang === 'curl') lang = 'bash';\n if (Prism.languages[lang]) {\n return Prism.highlight(code, Prism.languages[lang], lang);\n }\n return code;\n },\n });\n }\n\n render() {\n return jsonSchemaViewerTemplate.call(this, true, false, false, this.pathsExpanded);\n }\n\n attributeChangedCallback(name, oldVal, newVal) {\n if (name === 'spec-url') {\n if (oldVal !== newVal) {\n // put it at the end of event-loop to load all the attributes\n window.setTimeout(async () => {\n await this.loadSpec(newVal);\n }, 0);\n }\n }\n super.attributeChangedCallback(name, oldVal, newVal);\n }\n\n onSpecUrlChange() {\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\n }\n\n onSearchChange(e) {\n // Todo: Filter Search\n this.matchPaths = e.target.value;\n }\n\n // Public Method\n async loadSpec(specUrl) {\n if (!specUrl) {\n return;\n }\n try {\n this.resolvedSpec = {\n specLoadError: false,\n isSpecLoading: true,\n tags: [],\n };\n this.loading = true;\n this.loadFailed = false;\n this.requestUpdate();\n const spec = await ProcessSpec.call(\n this,\n specUrl,\n this.generateMissingTags === 'true',\n this.sortTags === 'true',\n this.getAttribute('sort-endpoints-by'),\n );\n this.loading = false;\n this.afterSpecParsedAndValidated(spec);\n } catch (err) {\n this.loading = false;\n this.loadFailed = true;\n this.resolvedSpec = null;\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\n }\n }\n\n async afterSpecParsedAndValidated(spec) {\n this.resolvedSpec = spec;\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\n this.dispatchEvent(specLoadedEvent);\n }\n\n // Called by anchor tags created using markdown\n handleHref(e) {\n if (e.target.tagName.toLowerCase() === 'a') {\n if (e.target.getAttribute('href').startsWith('#')) {\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\n if (gotoEl) {\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n }\n }\n }\n }\n\n // Example Dropdown @change Handler\n onSelectExample(e) {\n const exampleContainerEl = e.target.closest('.json-schema-example-panel');\n const exampleEls = [...exampleContainerEl.querySelectorAll('.example')];\n exampleEls.forEach((v) => {\n v.style.display = v.dataset.example === e.target.value ? 'flex' : 'none';\n });\n }\n\n async scrollToEventTarget(event) {\n const navEl = event.currentTarget;\n if (!navEl.dataset.contentId) {\n return;\n }\n const contentEl = this.shadowRoot.getElementById(navEl.dataset.contentId);\n if (contentEl) {\n contentEl.scrollIntoView({ behavior: 'auto', block: 'start' });\n }\n }\n}\nif (!customElements.get('json-schema-viewer')) customElements.define('json-schema-viewer', JsonSchemaViewer);\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"rapidoc-min.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;ACKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2RA;AACA;AACA;AAIA;AAIA;AAIA;AAEA;;;AAIA;;AAEA;AACA;AACA;AACA;;;;;AAKA;AAGA;;AAGA;AACA;AACA;;AAIA;;AAGA;AACA;;;;AAIA;AAGA;AACA;;;AAIA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AAGA;;AAGA;AACA;;;AAKA;;AAKA;;;AAkDA;;;AAGA;;AAEA;AAEA;AACA;;;AAKA;AAWA;AAEA;;;AAGA;;AAEA;AAEA;AACA;AAIA;AACA;AACA;;AAGA;AACA;;AAIA;;;;;AAMA;AACA;AACA;;AAEA;AAGA;;;;;;;AAQA;;;AAGA;;AAEA;;;;;;AASA;AACA;;AAEA;;;AAMA;;;AAGA;;AAEA;;AAIA;;AAGA;;AAEA;AAGA;AAEA;;;;AAMA;AAlGA;;;AA+IA;AACA;AAEA;;;AAGA;;;AAMA;;AAEA;;;;;AAOA;;AAEA;AAKA;;AAGA;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;;;AAMA;;;AAvFA;;;;;AC/hBA;;;ACAA;;AAYA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AC3BA;;AAEA;AACA;;;AAGA;;;AAGA;;AAEA;;AAEA;;;;AAIA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;AAQA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAOA;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;ACrEA;;;;;;;;;;;;;;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;AAgDA;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTA;AAQA;;AAEA;;AAEA;;AAGA;AAYA;;AAEA;;AAEA;AACA;;;AAIA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0PA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7RA;AAQA;;AAEA;AACA;;;AAIA;AACA;;AAIA;AACA;AAEA;;AASA;AA0BA;AACA;AASA;AAyDA;AACA;AACA;AAMA;AACA;AACA;AAGA;;AAEA;;AAEA;AACA;AAGA;AACA;AAwBA;;;AAIA;AASA;AA4BA;AACA;AACA;AACA;AAMA;AACA;AACA;;;;AAIA;AAEA;AAKA;AAIA;AACA;AACA;AACA;;;AAIA;;AChUA;AACA;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA;AC3HA;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0EA;;AAwBA;AACA;;;;;;;;;;AAUA;;AAEA;AACA;;AAEA;;AAEA;AC3HA;;;;;;AD2HA;AACA;;AC9HA;ADiIA;;;;AAKA;AEzEA;AACA;;AAEA;AACA;;AAEA;ACnEA;AAIA;;;;AAKA;;;AD+DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHA;;AEjHA;AACA;AACA;;AAEA;;;;;;AAUA;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA;;AC3KA;;AAEA;;AAEA;;AAGA;AACA;;AAEA;;;AAIA;AACA;AACA;;AAGA;AACA;;AAGA;;;;;;AAOA;AACA;AACA;;;;AAIA;;;AAMA;AAOA;;;AAGA;AAEA;;AAEA;;;AAGA;;AAKA;ACtGA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;AAIA;ACJA;;;;;;;;;;;;;AAcA;ACdA;;;AAIA;ACMA;AACA;ACXA;;;AAIA;ADQA;AACA;;;AAGA;AACA;;AAEA;AACA;;;;;AAMA;AAQA;;;;AAIA;;AAEA;AACA;AACA;;AAEA;AACA;;;;AAIA;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEgLA;AAOA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAIA;AA0DA;;;;AAIA;AACA;AACA;AACA;AACA;AAQA;AACA;AAEA;AAIA;AACA;AAKA;;AAEA;AACA;AACA;;AAEA;AAEA;AChKA;ADoPA;AACA;;;AAGA;AAIA;AACA;;;;AAIA;AAEA;;;AAIA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAIA;AAOA;AACA;;AAEA;;;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAIA;AAIA;AACA;AAGA;;;AAKA;;AAEA;;;;;;;AAgBA;;;AAIA;AA0EA;AACA;AACA;AACA;;;AAOA;AAqBA;;AAEA;AAGA;AACA;AACA;;;;AAKA;AAGA;AACA;AACA;;;AAGA;;AAEA;;AAEA;;;;;;;AAOA;AACA;AACA;;AAEA;AACA;;;;;;AAWA;;AAoBA;;AAOA;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAIA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAKA;AAIA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AAEA;AACA;;AAIA;;;AAmBA;AAiBA;AACA;;;AAGA;AACA;;;;;;AAMA;AACA;AACA;AACA;;;;AAKA;AACA;;AAEA;AACA;AACA;AACA;;;;AAMA;AAgBA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AAGA;;;;;;AAMA;AACA;;;;;;;;AAQA;;;AAIA;AACA;AACA;;;AAGA;;;AAGA;AAEA;AAGA;AAEA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AAIA;;;AAOA;;AAIA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;;AAIA;;;AAMA;;;;AAMA;AACA;;;AAKA;;AAGA;;AAGA;;AAIA;;;;AAIA;AACA;;;AAGA;AAEA;AAIA;AACA;AACA;;AAGA;AAsBA;AACA;;AAEA;;AAEA;;AAGA;AACA;AACA;AAGA;AAEA;AACA;;;AAGA;AAIA;AAEA;;AAEA;AACA;AACA;;AAMA;AAMA;AACA;;AAIA;;AAEA;AACA;;;AAIA;;AAEA;;AAMA;;;;AAeA;;;;AAIA;AAEA;AAEA;AAIA;;;AAOA;AAGA;;;AAGA;;AAEA;AAGA;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEjhCA;AAQA;;AAEA;AACA;;;AAIA;;AAEA;;AAIA;AAIA;;;;;;AAOA;;AAMA;;AAKA;AAyBA;AACA;;;AAGA;;AAQA;AAIA;AA8CA;AAEA;AACA;AACA;AAEA;AAGA;AAMA;;AAEA;AACA;AACA;;AAEA;AACA;AAEA;;;;AAKA;;;AAGA;;AAKA;AAGA;AACA;AAwBA;;;AASA;AAaA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;;AAMA;;AAEA;AACA;AACA;;AAOA;AACA;AACA;AACA;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9NA;AAOA;AACA;;AAGA;AA6DA;AAEA;AACA;AAGA;AACA;;;;AAWA;;;;;AAKA;;;AAGA;;;;AAIA;;;AAOA;AACA;;;;AAIA;AACA;;;;;AAKA;;;AAGA;;;;;;AAMA;AACA;;AAKA;;AAIA;AAIA;AACA;AACA;;;AAGA;AAEA;AACA;AAEA;;;;;;;AASA;AAEA;;;AAMA;;;AAGA;;;AAGA;AAEA;AACA;;AAIA;AAEA;AACA;;AAIA;;AAGA;AACA;;AAIA;AAEA;AAIA;AACA;AAEA;AAkBA;AAEA;AAEA;AACA;;;AAGA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAGA;AACA;;AAEA;;;;;AAzCA;AACA;AAiDA;AASA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAvBA;AACA;AA0BA;AChZA;AACA;AACA;;AAEA;;;;AAQA;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA;;;ACtJA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA;;;AClGA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA;ACAA;AACA;AACA;AACA;AACA;AACA;;AAGA;;AAKA;;AAIA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;;AAEA;AACA;;AAIA;AACA;;;AAGA;;;;AAKA;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;;;AAGA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAKA;AACA;AACA;AACA;;AAEA;;;;AAQA;;;AAfA;;AChKA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAEA;;AAEA;;AAGA;AACA;AACA;AACA;;AAEA;;;AAKA;;AAQA;AACA;AACA;AACA;;AAGA;AACA;;;AAKA;AAKA;AACA;AACA;;AAEA;;;;AAIA;;;AAVA;ACtCA;;AAEA;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;AAGA;AACA;;AAEA;AAFA;;;AAOA;AAEA;AACA;AAGA;AAIA;AAEA;AAMA;;;;AAOA;;AASA;;AAKA;;;;AChCA;AACA;;AAEA;AAGA;AACA;;;;;;;AASA;;;;;AAKA;AAEA;;AAEA;;AAKA;AAGA;;;;;;AAQA;AACA;AAGA;AAEA;AAEA;AACA;;AAIA;;AAEA;AACA;;AAEA;;AAEA;;;AAIA;AACA;AAEA;;AA1BA;;AAgCA;AAIA;;AAKA;;AAEA;;;;;;;;;;AAWA;;;;;;AAQA;AAGA;AACA;;AAIA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;AAKA;AAEA;;AAIA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AAIA;;AAEA;;AAOA;;;AAGA;AACA;;;AAGA;AACA;AACA;;AAGA;AACA;;;;;AAQA;;;AAIA;;;;;AAMA;;;;AAKA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAUA;;ACzPA;AAEA;AAiBA;AACA;;AAGA;AAMA;AAIA;;;AAsBA;ACzBA;AACA;AACA;AACA;AACA;;AAEA;;;AAIA;AAGA;;AAGA;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA;;AAEA;AAMA;;AAGA;;AAKA;;AAIA;AACA;;;AAGA;;;AAGA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAMA;;;;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAOA;AAKA;;AAGA;;;;AAIA;;;;AAIA;AAGA;AACA;AAEA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AAMA;AACA;AACA;;;AAIA;;AAGA;AAMA;AACA;AACA;;;;AAnDA;;;;AC5OA;AAEA;;;;;;;;;;;;;ACOA;;;AAGA;;;;;;;AASA;AACA;;;;;AAMA;;;;;AAOA;AACA;;;AAGA;;;AAIA;AAGA;;;;AAKA;AAGA;;;;;ADtDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AECA;;;AAOA;;;;;;;;;AASA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;;AAMA;;;AAGA;AACA;;AAEA;;AASA;AACA;AACA;;;;AAMA;ACvBA;;;;AAKA;AACA;;;;;;AAMA;;;;;;;AC6JA;AACA;AACA;AACA;;AAEA;;AAMA;AACA;AACA;AACA;;;AAGA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAGA;ACvSA;AACA;AAGA;AACA;;AAEA;;;;AAIA;AACA;;;AAKA;AAEA;;;AAGA;;;;AAOA;AACA;;;AAGA;;;AAGA;;AAEA;;AAEA;;;;;AASA;AACA;AAGA;AAGA;AACA;AAGA;;;;AAIA;;;;;;;;AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuSA;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;ACnSA;;;;;;;;;ACxGA;;;;;;AAMA;AACA;AACA;;AAIA;;;;AAMA;AAKA;;AAEA;AAIA;;AAEA;AACA;;;;;AAKA;AACA;AACA;AACA;;;;;;AAMA;AAEA;AACA;AACA;;AAGA;AAGA;;AAEA;AACA;;AAEA;;;;AAKA;;AAKA;AAyBA;AACA;AAGA;AACA;;AAEA;;;;;AAKA;AACA;;;AAKA;AAEA;;;AAGA;;;;AAOA;AACA;;;AAGA;;AAEA;;;AAGA;;;;;AAKA;AACA;AAGA;AAGA;AACA;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTA","sources":["webpack://rapidoc/./src/styles/input-styles.js","webpack://rapidoc/./src/styles/flex-styles.js","webpack://rapidoc/./src/styles/table-styles.js","webpack://rapidoc/./src/styles/endpoint-styles.js","webpack://rapidoc/./src/styles/prism-styles.js","webpack://rapidoc/./src/styles/tab-styles.js","webpack://rapidoc/./src/styles/nav-styles.js","webpack://rapidoc/./src/styles/info-styles.js","webpack://rapidoc/./src/styles/custom-styles.js","webpack://rapidoc/./src/templates/security-scheme-template.js","webpack://rapidoc/./src/components/assets/copy-symbol.js","webpack://rapidoc/./src/templates/code-samples-template.js","webpack://rapidoc/./src/templates/callback-template.js","webpack://rapidoc/./src/styles/prism-languages-styles.js","webpack://rapidoc/./src/components/json-tree.js","webpack://rapidoc/./src/components/schema-tree.js","webpack://rapidoc/./src/components/tag-input.js","webpack://rapidoc/./src/components/assets/check-symbol.js","webpack://rapidoc/./src/components/breadcrumbs.js","webpack://rapidoc/./src/components/assets/corner-arrow-symbol.js","webpack://rapidoc/./src/components/toast-component.js","webpack://rapidoc/./src/components/assets/close-symbol.js","webpack://rapidoc/./src/components/base-url.js","webpack://rapidoc/./src/templates/server-template.js","webpack://rapidoc/./src/components/assets/languages/c-icon.js","webpack://rapidoc/./src/components/assets/languages/clojure-icon.js","webpack://rapidoc/./src/components/assets/languages/csharp-icon.js","webpack://rapidoc/./src/components/assets/languages/go-icon.js","webpack://rapidoc/./src/components/assets/languages/java-icon.js","webpack://rapidoc/./src/components/assets/languages/javascript-icon.js","webpack://rapidoc/./src/components/assets/languages/kotlin-icon.js","webpack://rapidoc/./src/components/assets/languages/node-icon.js","webpack://rapidoc/./src/components/assets/languages/objc-icon.js","webpack://rapidoc/./src/components/assets/languages/ocaml-icon.js","webpack://rapidoc/./src/components/assets/languages/php-icon.js","webpack://rapidoc/./src/components/assets/languages/python-icon.js","webpack://rapidoc/./src/components/assets/languages/r-icon.js","webpack://rapidoc/./src/components/assets/languages/ruby-icon.js","webpack://rapidoc/./src/components/assets/languages/shell-icon.js","webpack://rapidoc/./src/components/assets/languages/swift-icon.js","webpack://rapidoc/./src/templates/language-picker-template.js","webpack://rapidoc/./src/components/assets/three-dots.js","webpack://rapidoc/./src/components/api-request.js","webpack://rapidoc/./src/utils/schema-utils.js","webpack://rapidoc/./src/components/schema-table.js","webpack://rapidoc/./src/components/api-response.js","webpack://rapidoc/./src/components/content-copy-button.js","webpack://rapidoc/./src/components/assets/postman-icon.js","webpack://rapidoc/./src/components/assets/openapi-icon.js","webpack://rapidoc/./src/templates/expanded-endpoint-template.js","webpack://rapidoc/./src/templates/components-template.js","webpack://rapidoc/./src/templates/overview-template.js","webpack://rapidoc/./src/templates/navbar-template.js","webpack://rapidoc/./src/templates/focused-endpoint-template.js","webpack://rapidoc/./src/templates/endpoint-template.js","webpack://rapidoc/./src/templates/logo-template.js","webpack://rapidoc/./src/templates/header-template.js","webpack://rapidoc/./src/templates/advance-search-template.js","webpack://rapidoc/./src/components/dialog-box.js","webpack://rapidoc/./src/utils/theme.js","webpack://rapidoc/./src/templates/main-body-template.js","webpack://rapidoc/./src/rapidoc.js","webpack://rapidoc/./src/rapidoc-mini.js","webpack://rapidoc/./src/templates/json-schema-viewer-template.js","webpack://rapidoc/./src/json-schema-viewer.js"],"sourcesContent":["import { css } from 'lit';\r\n\r\n/* eslint-disable max-len */\r\nexport default css`\r\n/* Button */\r\n.m-btn {\r\n display: flex;\r\n align-items: center;\r\n border-radius: var(--border-radius);\r\n font-weight: 400;\r\n padding: 7px 12px 6px;\r\n outline: none;\r\n border: none;\r\n text-align: center;\r\n white-space: nowrap;\r\n transition: background-color 0.2s;\r\n user-select: none;\r\n cursor: pointer;\r\n font-family: var(--font-medium);\r\n text-transform: uppercase;\r\n letter-spacing: 0.5px;\r\n}\r\n.m-btn-image {\r\n flex-direction: row;\r\n column-gap: 10px;\r\n}\r\n.m-btn-primary {\r\n background-color: var(--primary-color);\r\n color: var(--primary-color-invert);\r\n}\r\n.m-btn-primary:hover {\r\n background-color: #000711;\r\n}\r\n.m-btn-secondary{\r\n background: #e7e9ee;\r\n color: #142032;\r\n}\r\n.m-btn-secondary:hover {\r\n background: #ccced8;\r\n}\r\n.m-btn-tertiary {\r\n background: #ffffff;\r\n color: #142032;\r\n}\r\n.m-btn-tertiary:hover {\r\n color: #000711;\r\n}\r\n.m-btn.thin-border { border-width: 1px; }\r\n.m-btn.large { padding:8px 14px; }\r\n.m-btn.small { padding:5px 12px; }\r\n.m-btn.tiny { padding:5px 6px; }\r\n.m-btn.circle { border-radius: 50%; }\r\n.m-btn.nav:hover { \r\n background-color: var(--nav-accent-color);\r\n}\r\n.m-btn:disabled{ \r\n background-color: var(--bg3);\r\n color: var(--fg3);\r\n border-color: var(--fg3);\r\n cursor: not-allowed;\r\n opacity: 0.4;\r\n}\r\n.toolbar-btn{\r\n cursor: pointer;\r\n padding: 4px;\r\n margin:0 2px;\r\n font-size: var(--font-size-small);\r\n min-width: 50px;\r\n color: var(--primary-color-invert);\r\n border-radius: 2px;\r\n border: none;\r\n background-color: var(--primary-color);\r\n}\r\n.copy-code {\r\n background: none;\r\n color: inherit;\r\n border: none;\r\n padding: 0;\r\n cursor: pointer;\r\n outline: inherit;\r\n display: block;\r\n}\r\n.copy-button{\r\n opacity: 0.3;\r\n}\r\n.check-button, .copy-button:hover{\r\n opacity: 1;\r\n}\r\n\r\ninput, textarea, select, pre {\r\n color: #000000;\r\n outline: none;\r\n background-color: var(--input-bg);\r\n border: 1px solid #B9B9B9;\r\n border-radius: var(--border-radius);\r\n}\r\nbutton {\r\n font-family: var(--font-regular);\r\n}\r\n\r\n/* Form Inputs */\r\npre,\r\nselect,\r\ntextarea,\r\ninput[type=\"file\"],\r\ninput[type=\"text\"],\r\ninput[type=\"password\"] {\r\n font-family:var(--font-mono); \r\n font-size: var(--font-size-mono);\r\n transition: border .2s;\r\n padding: 6px 8px;\r\n line-height: 140%;\r\n}\r\n\r\nselect {\r\n font-family: var(--font-regular);\r\n padding: 8px;\r\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E\"); \r\n background-position: calc(100% - 14px) center;\r\n background-repeat: no-repeat; \r\n background-size: 10px;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n cursor: pointer;\r\n}\r\n\r\nselect:hover {\r\n border-color: var(--primary-color);\r\n}\r\n\r\ninput[type=\"text\"]:hover {\r\n border-color: var(--fg2);\r\n}\r\n\r\ntextarea::placeholder,\r\ninput[type=\"text\"]::placeholder,\r\ninput[type=\"password\"]::placeholder {\r\n color: var(--placeholder-color);\r\n opacity:1;\r\n}\r\n\r\nselect:focus,\r\ntextarea:focus,\r\ninput[type=\"text\"]:focus,\r\ninput[type=\"password\"]:focus,\r\ntextarea:active,\r\ninput[type=\"text\"]:active,\r\ninput[type=\"password\"]:active {\r\n border-color: none;\r\n}\r\n\r\ninput[type=\"file\"]{\r\n font-family: var(--font-regular);\r\n padding:2px;\r\n cursor:pointer;\r\n border: 1px solid var(--primary-color);\r\n min-height: calc(var(--font-size-small) + 18px);\r\n}\r\n\r\ninput[type=\"file\"]::-webkit-file-upload-button {\r\n font-family: var(--font-regular);\r\n font-size: var(--font-size-small);\r\n outline: none;\r\n cursor:pointer;\r\n padding: 3px 8px;\r\n border: 1px solid var(--primary-color);\r\n background-color: var(--primary-color);\r\n color: var(--primary-color-invert);\r\n border-radius: var(--border-radius);;\r\n -webkit-appearance: none;\r\n}\r\n\r\npre,\r\ntextarea {\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--border-color) var(--input-bg);\r\n}\r\n\r\npre::-webkit-scrollbar,\r\ntextarea::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n}\r\n\r\npre::-webkit-scrollbar-track,\r\ntextarea::-webkit-scrollbar-track {\r\n background:var(--input-bg);\r\n}\r\n \r\npre::-webkit-scrollbar-thumb,\r\ntextarea::-webkit-scrollbar-thumb {\r\n border-radius: 2px;\r\n background-color: var(--border-color);\r\n}\r\n\r\n.link {\r\n font-size:var(--font-size-small);\r\n text-decoration: underline;\r\n color:var(--rebel-pink);\r\n font-family:var(--font-mono);\r\n margin-bottom:2px;\r\n}\r\n\r\n/* Toggle Body */\r\ninput[type=\"checkbox\"] {\r\n appearance: none;\r\n display: inline-block;\r\n background-color: var(--light-bg);\r\n border: 1px solid var(--light-bg);\r\n border-radius: 9px;\r\n cursor: pointer;\r\n height: 18px;\r\n position: relative;\r\n transition: border .25s .15s, box-shadow .25s .3s, padding .25s;\r\n min-width: 36px;\r\n width: 36px;\r\n vertical-align: top;\r\n}\r\n/* Toggle Thumb */\r\ninput[type=\"checkbox\"]:after {\r\n position: absolute;\r\n background-color: var(--bg);\r\n border: 1px solid var(--light-bg);\r\n border-radius: 8px;\r\n content: '';\r\n top: 0px;\r\n left: 0px;\r\n right: 16px;\r\n display: block;\r\n height: 16px;\r\n transition: border .25s .15s, left .25s .1s, right .15s .175s;\r\n}\r\n\r\n/* Toggle Body - Checked */\r\ninput[type=\"checkbox\"]:checked {\r\n background-color: var(--green);\r\n border-color: var(--green);\r\n}\r\n/* Toggle Thumb - Checked*/\r\ninput[type=\"checkbox\"]:checked:after {\r\n border: 1px solid var(--green);\r\n left: 16px;\r\n right: 1px;\r\n transition: border .25s, left .15s .25s, right .25s .175s;\r\n}`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n .flex,\r\n .row,\r\n .col,\r\n .row-api {\r\n display: flex;\r\n }\r\n .row-api {\r\n flex: 1fr 1fr;\r\n align-items: center;\r\n flex-direction: row;\r\n align-items: flex-start;\r\n justify-content: space-evenly;\r\n }\r\n .row {\r\n align-items: center;\r\n }\r\n .col {\r\n align-items: stretch;\r\n flex-direction: column;\r\n }\r\n .row-api-left {\r\n min-width: 288px;\r\n max-width: 720px;\r\n flex: 2 1 0%;\r\n justify-content: flex-end;\r\n padding-right: 32px;\r\n }\r\n .row-api-right {\r\n min-width: 288px;\r\n max-width: 702px;\r\n flex: 1;\r\n justify-content: flex-start;\r\n border-left: 1px solid #E7E9EE;\r\n }\r\n .row-api-right-box{\r\n text-align:left; \r\n direction:ltr; \r\n margin-block: 32px 16px; \r\n padding-left: 32px;\r\n }\r\n .clear-btn{\r\n margin-left: 32px\r\n }\r\n\r\n @media (max-width: 1280px) {\r\n .row-api {\r\n flex-direction: column;\r\n justify-content: flex-start;\r\n align-items: center;\r\n }\r\n .row-api-right-box{\r\n padding-left: 0px;\r\n }\r\n .clear-btn{\r\n margin-left: 0px\r\n }\r\n\r\n .row-api-left,\r\n .row-api-right {\r\n max-width: unset;\r\n width: 100%;\r\n border: none;\r\n padding: 10px;\r\n }\r\n }\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n.m-table {\r\n border-spacing: 0; \r\n border-collapse: separate;\r\n border: 1px solid var(--light-border-color);\r\n border-radius: var(--border-radius);\r\n margin: 0;\r\n max-width: 100%;\r\n direction: ltr;\r\n}\r\n.m-table tr:first-child td,\r\n.m-table tr:first-child th {\r\n border-top: 0 none;\r\n}\r\n.m-table td, \r\n.m-table th {\r\n font-size: var(--font-size-small);\r\n line-height: calc(var(--font-size-small) + 4px);\r\n padding: 4px 5px 4px;\r\n vertical-align: top;\r\n}\r\n\r\n.m-table.padded-12 td, \r\n.m-table.padded-12 th {\r\n padding: 12px;\r\n}\r\n\r\n.m-table td:not([align]), \r\n.m-table th:not([align]) {\r\n text-align: left;\r\n}\r\n\r\n.m-table th {\r\n color: var(--fg2);\r\n font-size: var(--font-size-small);\r\n line-height: calc(var(--font-size-small) + 18px);\r\n font-weight: 600;\r\n letter-spacing: normal;\r\n background-color: var(--bg2);\r\n vertical-align: bottom;\r\n border-bottom: 1px solid var(--light-border-color);\r\n}\r\n\r\n.m-table > tbody > tr > td,\r\n.m-table > tr > td {\r\n border-top: 1px solid var(--light-border-color);\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n}\r\n.table-title {\r\n font-size: 16px;\r\n font-weight: 400;\r\n line-height: 18px;\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n.only-large-screen { display:none; }\r\n.endpoint-head .path{\r\n display: flex;\r\n font-family:var(--font-mono);\r\n font-size: var(--font-size-small);\r\n align-items: center;\r\n overflow-wrap: break-word;\r\n word-break: break-all;\r\n}\r\n\r\n.endpoint-head .descr {\r\n font-size: var(--font-size-small);\r\n color:var(--light-fg);\r\n font-weight:400;\r\n align-items: center;\r\n overflow-wrap: break-word;\r\n word-break: break-all;\r\n display:none;\r\n}\r\n\r\n.m-endpoint.expanded{margin-bottom:16px; }\r\n.m-endpoint > .endpoint-head{\r\n border-width:1px 1px 1px 5px;\r\n border-style:solid;\r\n border-color:transparent;\r\n border-top-color:var(--light-border-color);\r\n display:flex;\r\n padding:6px 16px;\r\n align-items: center;\r\n cursor: pointer;\r\n}\r\n.m-endpoint > .endpoint-head.put:hover,\r\n.m-endpoint > .endpoint-head.put.expanded{\r\n color:var(--put-color); \r\n background-color:var(--put-bg-color);\r\n border-color:var(--put-border-color);\r\n}\r\n.m-endpoint > .endpoint-head.post:hover,\r\n.m-endpoint > .endpoint-head.post.expanded {\r\n color:var(--post-color);\r\n background-color:var(--post-bg-color);\r\n border-color:var(--post-border-color);\r\n}\r\n.m-endpoint > .endpoint-head.get:hover,\r\n.m-endpoint > .endpoint-head.get.expanded {\r\n color:var(--get-color); \r\n background-color:var(--get-bg-color);\r\n border-color:var(--get-border-color);\r\n}\r\n.m-endpoint > .endpoint-head.patch:hover,\r\n.m-endpoint > .endpoint-head.patch.expanded {\r\n color:var(--patch-color); \r\n background-color:var(--patch-bg-color);\r\n border-color:var(--patch-border-color);\r\n}\r\n.m-endpoint > .endpoint-head.delete:hover,\r\n.m-endpoint > .endpoint-head.delete.expanded {\r\n color:var(--delete-color); \r\n background-color:var(--delete-bg-color);\r\n border-color:var(--delete-border-color);\r\n}\r\n\r\n.m-endpoint > .endpoint-head.head:hover,\r\n.m-endpoint > .endpoint-head.head.expanded,\r\n.m-endpoint > .endpoint-head.patch:hover,\r\n.m-endpoint > .endpoint-head.patch.expanded,\r\n.m-endpoint > .endpoint-head.options:hover,\r\n.m-endpoint > .endpoint-head.options.expanded {\r\n border-color:var(--yellow); \r\n background-color:var(--light-yellow); \r\n}\r\n\r\n.m-endpoint > .endpoint-head.deprecated:hover,\r\n.m-endpoint > .endpoint-head.deprecated.expanded {\r\n border-color:var(--border-color); \r\n filter:opacity(0.6);\r\n}\r\n\r\n.m-endpoint .endpoint-body {\r\n flex-wrap:wrap;\r\n padding:16px 0px 0 0px;\r\n}\r\n.m-endpoint .endpoint-body.delete{ border-color:var(--delete-border-color); }\r\n.m-endpoint .endpoint-body.put{ border-color:var(--put-border-color); }\r\n.m-endpoint .endpoint-body.post{ border-color:var(--post-border-color); }\r\n.m-endpoint .endpoint-body.get{ border-color:var(--get-border-color); }\r\n.m-endpoint .endpoint-body.head,\r\n.m-endpoint .endpoint-body.patch,\r\n.m-endpoint .endpoint-body.options { \r\n border-color:var(--yellow); \r\n}\r\n\r\n.m-endpoint .endpoint-body.deprecated{ \r\n border-color:var(--border-color);\r\n filter:opacity(0.6);\r\n}\r\n\r\n.endpoint-head .deprecated{\r\n color: var(--light-fg);\r\n filter:opacity(0.6);\r\n}\r\n\r\n.summary{\r\n padding: 24px 16px;\r\n}\r\n.summary .title{\r\n font-size: 28px;\r\n margin-bottom: 24px;\r\n word-break: break-all;\r\n}\r\n\r\n.path-description p {\r\n font-size: 18px;\r\n line-height: 24px;\r\n margin: 0;\r\n}\r\n\r\n.endpoint-head .method{\r\n padding:2px 5px;\r\n vertical-align: middle;\r\n font-size:var(--font-size-small);\r\n height: calc(var(--font-size-small) + 16px);\r\n line-height: calc(var(--font-size-small) + 8px);\r\n width: 60px;\r\n border-radius: 2px;\r\n display:inline-block;\r\n text-align: center;\r\n font-weight: bold;\r\n text-transform:uppercase;\r\n margin-right:5px;\r\n}\r\n.endpoint-head .method.delete{ border: 2px solid var(--delete-border-color);}\r\n.endpoint-head .method.put{ border: 2px solid var(--put-border-color); }\r\n.endpoint-head .method.post{ border: 2px solid var(--post-border-color); }\r\n.endpoint-head .method.get{ border: 2px solid var(--get-border-color); }\r\n.endpoint-head .method.get.deprecated{ border: 2px solid var(--border-color); }\r\n.endpoint-head .method.head,\r\n.endpoint-head .method.patch,\r\n.endpoint-head .method.options { \r\n border: 2px solid var(--yellow); \r\n}\r\n\r\n.req-resp-container {\r\n display: flex;\r\n align-items: stretch;\r\n flex-wrap: wrap;\r\n flex-direction: column;\r\n border-top:1px solid var(--light-border-color);\r\n}\r\n\r\n.view-mode-request,\r\napi-response.view-mode {\r\n flex:1; \r\n min-height:100px;\r\n padding: 0 16px 24px 16px;\r\n overflow:hidden;\r\n}\r\n.view-mode-request {\r\n border-width: 0;\r\n border-style:dashed;\r\n}\r\n\r\n.head .view-mode-request,\r\n.patch .view-mode-request,\r\n.options .view-mode-request { \r\n border-color:var(--yellow); \r\n}\r\n.put .view-mode-request { \r\n border-color:var(--put-color); \r\n}\r\n.post .view-mode-request { \r\n border-color:var(--post-color); \r\n}\r\n.get .view-mode-request { \r\n border-color:var(--get-color); \r\n}\r\n.delete .view-mode-request { \r\n border-color:var(--delete-color); \r\n}\r\n\r\nblockquote {\r\n padding: 20px;\r\n}\r\n\r\nblockquote h3 {\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\nblockquote.warning {\r\n border-left: 3px solid #f0ad4e;\r\n background-color: #fcf8f2;\r\n}\r\n\r\nblockquote.warning h3 {\r\n color: #f0ad4e;\r\n}\r\n\r\nblockquote.danger {\r\n border-left: 3px solid #d9534f;\r\n background-color: #fdf7f7;\r\n}\r\n\r\nblockquote.danger h3 {\r\n color: #d9534f;\r\n}\r\n\r\nblockquote.info {\r\n border-left: 3px solid #5bc0de;\r\n background-color: #e3edf2;\r\n}\r\n\r\nblockquote.info h3 {\r\n color: #5bc0de;\r\n}\r\n\r\nblockquote.success {\r\n border-left: 3px solid #50af51;\r\n background-color: #f3f8f3;\r\n}\r\n\r\nblockquote.success h3 {\r\n color: #50af51;\r\n}\r\n\r\npre {\r\n overflow: scroll;\r\n max-height: 1000px;\r\n margin-top: 15px!important;\r\n margin-bottom: 15px!important;\r\n}\r\n\r\ntable {\r\n border-spacing: 0px;\r\n border-collapse: collapse;\r\n}\r\n\r\ntable th {\r\n border: 1px solid #dfe2e5;\r\n padding: 6px 13px;\r\n}\r\n\r\ntable td {\r\n border: 1px solid #dfe2e5;\r\n padding: 6px 13px;\r\n}\r\n\r\n@media only screen and (min-width: 1024px) {\r\n .only-large-screen { display:block; }\r\n .endpoint-head .path{\r\n font-size: var(--font-size-regular);\r\n }\r\n .endpoint-head .descr{\r\n display: flex;\r\n }\r\n .endpoint-head .m-markdown-small,\r\n .descr .m-markdown-small{\r\n display:block;\r\n }\r\n .req-resp-container{\r\n flex-direction: var(--layout, row);\r\n flex-wrap: nowrap;\r\n }\r\n api-response.view-mode {\r\n padding:16px;\r\n }\r\n .view-mode-request.row-layout {\r\n border-width:0 1px 0 0;\r\n padding:16px;\r\n }\r\n .summary{\r\n padding:24px 16px;\r\n }\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\ncode[class*=\"language-\"],\r\npre[class*=\"language-\"] {\r\n text-align: left;\r\n white-space: pre;\r\n word-spacing: normal;\r\n word-break: normal;\r\n word-wrap: normal;\r\n line-height: 1.5;\r\n tab-size: 2;\r\n\r\n -webkit-hyphens: none;\r\n -moz-hyphens: none;\r\n -ms-hyphens: none;\r\n hyphens: none;\r\n}\r\n\r\n/* Code blocks */\r\npre[class*=\"language-\"] {\r\n padding: 1em;\r\n margin: .5em 0;\r\n overflow: auto;\r\n}\r\n\r\n/* Inline code */\r\n:not(pre) > code[class*=\"language-\"] {\r\n white-space: normal;\r\n}\r\n\r\n.token.comment,\r\n.token.block-comment,\r\n.token.prolog,\r\n.token.doctype,\r\n.token.cdata {\r\n color: var(--light-fg)\r\n}\r\n\r\n.token.punctuation {\r\n color: var(--fg);\r\n}\r\n\r\n.token.tag,\r\n.token.attr-name,\r\n.token.namespace,\r\n.token.deleted {\r\n color:var(--pink);\r\n}\r\n\r\n.token.function-name {\r\n color: var(--rebel-pink);\r\n}\r\n\r\n.token.boolean,\r\n.token.number{\r\n color: var(--red);\r\n}\r\n\r\n.token.function {\r\n color: #2953B2;\r\n}\r\n\r\n.token.property,\r\n.token.class-name,\r\n.token.constant,\r\n.token.symbol {\r\n color: var(--code-property-color);\r\n}\r\n\r\n.token.selector,\r\n.token.important,\r\n.token.atrule,\r\n.token.keyword,\r\n.token.builtin {\r\n color: var(--code-keyword-color);\r\n}\r\n\r\n.token.string,\r\n.token.char,\r\n.token.attr-value,\r\n.token.regex,\r\n.token.variable { \r\n color: var(--green);\r\n}\r\n\r\n.token.operator,\r\n.token.entity,\r\n.token.url {\r\n color: var(--code-operator-color);\r\n}\r\n\r\n.token.important,\r\n.token.bold {\r\n font-weight: bold;\r\n}\r\n.token.italic {\r\n font-style: italic;\r\n}\r\n\r\n.token.entity {\r\n cursor: help;\r\n}\r\n\r\n.token.inserted {\r\n color: green;\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n.tab-panel {\r\n border: none;\r\n}\r\n.tab-buttons {\r\n height:30px;\r\n padding: 4px 4px 0 4px;\r\n border-bottom: 1px solid var(--light-border-color) ;\r\n align-items: stretch;\r\n overflow-y: hidden;\r\n overflow-x: auto;\r\n scrollbar-width: thin;\r\n}\r\n.tab-buttons::-webkit-scrollbar {\r\n height: 1px;\r\n background-color: var(--border-color);\r\n}\r\n.tab-btn {\r\n border: none;\r\n border-bottom: 1px solid transparent; \r\n color: var(--light-fg);\r\n background-color: transparent;\r\n white-space: nowrap;\r\n cursor:pointer;\r\n outline:none;\r\n font-family:var(--font-regular); \r\n width:100%;\r\n font-weight: bold;\r\n font-size: 16px;\r\n}\r\n.tab-btn.active {\r\n border-bottom: 1px solid #D71D55; \r\n font-weight:bold;\r\n color:#D71D55;\r\n}\r\n\r\n.tab-btn:hover {\r\n color:#c81e51;\r\n}\r\n.tab-content {\r\n margin:16px 0 0 0;\r\n position:relative;\r\n min-height: 50px;\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n.nav-bar-info:focus-visible,\r\n.nav-bar-tag:focus-visible,\r\n.nav-bar-path:focus-visible {\r\n outline: 1px solid;\r\n box-shadow: none;\r\n outline-offset: -4px;\r\n}\r\n.nav-bar-expand-all:focus-visible,\r\n.nav-bar-collapse-all:focus-visible,\r\n.nav-bar-tag-icon:focus-visible {\r\n outline: 1px solid;\r\n box-shadow: none;\r\n outline-offset: 2px;\r\n}\r\n.nav-bar {\r\n width:0;\r\n height:100%;\r\n overflow: hidden;\r\n color:var(--nav-text-color);\r\n background-color: var(--nav-bg-color);\r\n background-blend-mode: multiply;\r\n line-height: calc(var(--font-size-small) + 4px);\r\n display:none;\r\n position:relative;\r\n flex-direction:column;\r\n flex-wrap:nowrap;\r\n word-break:break-word;\r\n}\r\n::slotted([slot=nav-logo]){\r\n padding:16px 16px 0 16px;\r\n}\r\n.nav-scroll {\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n overflow-y: overlay;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--nav-hover-bg-color) transparent;\r\n}\r\n\r\n.nav-bar-tag {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n flex-direction: row;\r\n}\r\n.nav-bar.read .nav-bar-tag-icon {\r\n display:none;\r\n}\r\n.nav-bar-paths-under-tag {\r\n overflow:hidden;\r\n transition: max-height .2s ease-out, visibility .3s;\r\n}\r\n.collapsed .nav-bar-paths-under-tag {\r\n visibility: hidden;\r\n}\r\n\r\n.nav-bar-expand-all {\r\n transform: rotate(90deg); \r\n cursor:pointer; \r\n margin-right:10px;\r\n}\r\n.nav-bar-collapse-all {\r\n transform: rotate(270deg); \r\n cursor:pointer;\r\n}\r\n.nav-bar-expand-all:hover, .nav-bar-collapse-all:hover {\r\n color: var(--primary-color);\r\n}\r\n\r\n.nav-bar-tag-icon {\r\n color: var(--nav-text-color);\r\n font-size: 20px; \r\n}\r\n.nav-bar-tag-icon:hover {\r\n color:var(--nav-hover-text-color);\r\n}\r\n.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-tag-icon::after {\r\n content: '⌵';\r\n width:16px;\r\n height:16px;\r\n text-align: center;\r\n display: inline-block;\r\n transform: rotate(-90deg);\r\n transition: transform 0.2s ease-out 0s;\r\n}\r\n.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after {\r\n content: '⌵';\r\n width:16px;\r\n height:16px;\r\n text-align: center;\r\n display: inline-block;\r\n transition: transform 0.2s ease-out 0s;\r\n}\r\n.nav-scroll::-webkit-scrollbar {\r\n width: var(--scroll-bar-width, 8px);\r\n}\r\n.nav-scroll::-webkit-scrollbar-track {\r\n background:transparent;\r\n}\r\n.nav-scroll::-webkit-scrollbar-thumb {\r\n background-color: var(--nav-hover-bg-color);\r\n}\r\n\r\n.nav-bar-tag {\r\n font-size: var(--font-size-regular);\r\n color: var(--nav-accent-color);\r\n border-left:4px solid transparent;\r\n font-weight:bold;\r\n padding: 15px 15px 15px 10px;\r\n text-transform: capitalize;\r\n}\r\n\r\n.nav-bar-components,\r\n.nav-bar-h1,\r\n.nav-bar-h2,\r\n.nav-bar-info,\r\n.nav-bar-tag,\r\n.nav-bar-path {\r\n display:flex;\r\n cursor: pointer;\r\n width: 100%;\r\n border: none;\r\n border-radius:4px; \r\n color: var(--nav-text-color);\r\n background: transparent;\r\n border-left:4px solid transparent;\r\n}\r\n\r\n.nav-bar-h1,\r\n.nav-bar-h2,\r\n.nav-bar-path {\r\n font-size: calc(var(--font-size-small) + 1px);\r\n padding: var(--nav-item-padding);\r\n}\r\n.nav-bar-path.small-font {\r\n font-size: var(--font-size-small);\r\n}\r\n\r\n.nav-bar-info {\r\n font-size: var(--font-size-regular);\r\n padding: 16px 10px;\r\n font-weight:bold;\r\n}\r\n.nav-bar-section {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n font-size: var(--font-size-small);\r\n color: var(--nav-text-color);\r\n padding: var(--nav-item-padding);\r\n font-weight:bold;\r\n}\r\n.nav-bar-section.operations {\r\n cursor:pointer;\r\n}\r\n.nav-bar-section.operations:hover {\r\n color:var(--nav-hover-text-color);\r\n background-color:var(--nav-hover-bg-color);\r\n}\r\n\r\n.nav-bar-section:first-child {\r\n display: none;\r\n}\r\n.nav-bar-h2 {margin-left:12px;}\r\n\r\n.nav-bar-h1.left-bar.active,\r\n.nav-bar-h2.left-bar.active,\r\n.nav-bar-info.left-bar.active,\r\n.nav-bar-tag.left-bar.active,\r\n.nav-bar-path.left-bar.active,\r\n.nav-bar-section.left-bar.operations.active {\r\n border-left:4px solid var(--nav-accent-color);\r\n color:var(--nav-hover-text-color);\r\n}\r\n\r\n.nav-bar-h1.colored-block.active,\r\n.nav-bar-h2.colored-block.active,\r\n.nav-bar-info.colored-block.active,\r\n.nav-bar-tag.colored-block.active,\r\n.nav-bar-path.colored-block.active,\r\n.nav-bar-section.colored-block.operations.active {\r\n background-color: var(--nav-accent-color);\r\n color: var(--nav-accent-text-color);\r\n border-radius: 0;\r\n}\r\n\r\n.nav-bar-h1:hover,\r\n.nav-bar-h2:hover,\r\n.nav-bar-info:hover,\r\n.nav-bar-tag:hover,\r\n.nav-bar-path:hover {\r\n color:var(--nav-hover-text-color);\r\n background-color:var(--nav-hover-bg-color);\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\nexport default css`\r\n#api-info {\r\n font-size: calc(var(--font-size-regular) - 1px);\r\n margin-top: 8px;\r\n}\r\n\r\n#api-info span:before {\r\n content: \"|\";\r\n display: inline-block;\r\n opacity: 0.5;\r\n width: 15px;\r\n text-align: center;\r\n}\r\n#api-info span:first-child:before {\r\n content: \"\";\r\n width: 0px;\r\n}\r\n`;\r\n","import { css } from 'lit';\r\n\r\n/*\r\nThis file is reserved for any custom css that developers want to add to\r\ncustomize their theme. Simply add your css to this file and yarn build.\r\n*/\r\n\r\nexport default css`\r\n.code-container {\r\n tab-size: 4;\r\n}\r\n.code-container > code {\r\n font-size: 14px;\r\n line-height: 20px;\r\n}\r\n\r\n.request-card {\r\n border: 1px solid #CCCED8;\r\n border-radius: 4px;\r\n padding-block: 24px;\r\n margin-top: 24px;\r\n}\r\n\r\n.request-title-container {\r\n margin-left: 16px;\r\n}\r\n\r\n.request-title {\r\n margin-bottom: 8px;\r\n font-size: 18px;\r\n font-weight: 400;\r\n line-height: 18px;\r\n color: #4A4A4A;\r\n}\r\n\r\n.label-operation-container {\r\n text-align: left;\r\n direction: ltr;\r\n padding: 8px 0;\r\n color: var(--fg3);\r\n display: flex;\r\n width: 100%;\r\n overflow: hidden;\r\n}\r\n\r\n.label-operation-path-container {\r\n display: inline-flex;\r\n flex-direction: row;\r\n flex-grow: 1;\r\n justify-content: space-between;\r\n align-items: stretch;\r\n width: auto;\r\n height: 28px;\r\n left: 0;\r\n top: 0;\r\n border: 1px solid var(--border-color);\r\n border-radius: 0px 4px 4px 0px;\r\n margin: 4px 0px;\r\n flex-wrap: nowrap;\r\n overflow-x: auto;\r\n position: relative;\r\n scrollbar-color: transparent transparent;\r\n}\r\n\r\n.label-operation-path-container::-webkit-scrollbar {\r\n display: none;\r\n}\r\n\r\n.label-operation-path-item {\r\n flex: 0 0 auto;\r\n}\r\n\r\n.label-operation-method-container {\r\n display: inline-flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 4px 8px;\r\n width: auto;\r\n height: 28px;\r\n left: 0;\r\n top: 0;\r\n border-width: 1px 0px 1px 1px;\r\n border-style: solid;\r\n border-radius: 4px 0px 0px 4px;\r\n margin: 4px 0px;\r\n text-transform: uppercase;\r\n}\r\n\r\n.right-box-title {\r\n color: #4A4A4A;\r\n font-size: 18px;\r\n line-height: 20px;\r\n font-weight: 400;\r\n}\r\n\r\n.right-box-container {\r\n margin-top: 16px;\r\n padding-inline: 16px;\r\n}\r\n\r\n.right-box-label {\r\n color: var(--fg2);\r\n margin-bottom: 4px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n}\r\n\r\n.right-box-input {\r\n width: 100%;\r\n height: 44px;\r\n}\r\n\r\n.right-box-content {\r\n border: 1px solid rgb(204, 206, 216);\r\n border-radius: 4px;\r\n padding-block: 24px;\r\n margin-top: 24px;\r\n}\r\n\r\n.right-box-select {\r\n padding-inline: 16px;\r\n width: 100%;\r\n}\r\n\r\n.server-template {\r\n position: relative;\r\n}\r\n\r\n.server-template-vars {\r\n position: absolute;\r\n top: calc(100% + 2px);\r\n \r\n background-color: var(--bg);\r\n\r\n border: 1px solid rgb(204, 206, 216);\r\n border-radius: 4px;\r\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\r\n \r\n z-index: 1;\r\n\r\n max-height: 300px;\r\n max-width: 100%;\r\n}\r\n\r\n.server-vars {\r\n padding: 10px 10px 0px 10px;\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n}\r\n\r\n.language-picker {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n\r\n padding: 16px 0px;\r\n gap: 5px;\r\n}\r\n\r\n.language-picker-buttons {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n gap: 5px;\r\n}\r\n\r\n.square-language-button {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 4px;\r\n gap: 5px;\r\n\r\n width: max-content;\r\n min-width: 50px;\r\n height: 50px;\r\n\r\n flex: none;\r\n order: 1;\r\n flex-grow: 0;\r\n\r\n background-color: rgba(0, 0, 0, 0);\r\n border: 1px solid rgba(0, 0, 0, 0);\r\n border-radius: 4px;\r\n\r\n color: var(--fg2);\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 12px;\r\n line-height: 16px;\r\n\r\n cursor: pointer;\r\n}\r\n\r\n.square-language-button:hover {\r\n border: 1px solid rgb(59, 59, 59);\r\n}\r\n\r\n.square-language-button:active {\r\n border-color: rgb(59, 59, 59);\r\n box-shadow: rgb(255 255 255) 0px 0px 0px 1px, rgb(185 185 185) 0px 0px 0px 3px;\r\n}\r\n\r\n.rectangle-language-button {\r\n display: flex;\r\n gap: 5px;\r\n\r\n width: 100%;\r\n text-align: left;\r\n\r\n background-color: rgba(0, 0, 0, 0);\r\n border: 1px solid rgba(0, 0, 0, 0);\r\n border-radius: 0px;\r\n padding: 6px 6px;\r\n\r\n color: var(--fg2);\r\n cursor: pointer;\r\n}\r\n\r\n.rectangle-language-button:hover {\r\n background-color: rgb(248, 247, 252);\r\n}\r\n\r\n.rectangle-language-button:active {\r\n background-color: rgb(204, 206, 216);\r\n}\r\n\r\n.selected-language {\r\n border: 1px solid rgb(204, 206, 216);\r\n}\r\n\r\n.language-show-more {\r\n height: 30px;\r\n width: 30px;\r\n padding: 4px;\r\n\r\n border: 1px solid rgba(0, 0, 0, 0);\r\n border-radius: 4px;\r\n\r\n cursor: pointer;\r\n}\r\n\r\n.language-show-more:hover {\r\n border: 1px solid rgb(59, 59, 59);\r\n}\r\n\r\n.data-example{\r\n background: #FFF3F6;\r\n border: 1px solid #FFE0EF;\r\n border-radius: 4px;\r\n font-family: var(--font-mono);\r\n font-size: var(--font-size-small);\r\n width: max-content;\r\n padding: 0.2em 0.4em;\r\n}\r\n\r\n.data-example:hover{\r\n border: 1px solid #ffb5cb;\r\n}\r\n\r\n.language-show-more:active {\r\n border-color: rgb(59, 59, 59);\r\n box-shadow: rgb(255 255 255) 0px 0px 0px 1px, rgb(185 185 185) 0px 0px 0px 3px;\r\n}\r\n\r\n.more-languages-dropdown {\r\n position: absolute;\r\n top: 105%;\r\n right: 0%;\r\n min-width: 140px;\r\n\r\n background-color: var(--bg);\r\n\r\n border: 1px solid rgb(204, 206, 216);\r\n border-radius: 4px;\r\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\r\n \r\n z-index: 1;\r\n\r\n transition: visibility 0.3s linear,opacity 0.3s linear;\r\n}\r\n`;\r\n","/* eslint-disable arrow-body-style */\r\nimport { html, nothing } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport { isSecuritySchemeIdValid } from '../utils/security-utils';\r\nimport updateCodeExample from '../utils/update-code-example';\r\n\r\nconst codeVerifier = '731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890';\r\nconst codeChallenge = '4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc'; // Base64 encoded SHA-256\r\n\r\nconst localStorageKey = 'rapidoc';\r\n\r\nexport function applyApiKey(securitySchemeId, username = '', password = '', providedApikeyVal = '') {\r\n const securityObj = this.resolvedSpec.securitySchemes?.find((v) => (v.securitySchemeId === securitySchemeId));\r\n if (!securityObj) {\r\n return false;\r\n }\r\n let finalApiKeyValue = '';\r\n if (securityObj.scheme?.toLowerCase() === 'basic') {\r\n if (username) {\r\n finalApiKeyValue = `Basic ${Buffer.from(`${username}:${password}`, 'utf8').toString('base64')}`;\r\n }\r\n } else if (providedApikeyVal) {\r\n securityObj.value = providedApikeyVal;\r\n finalApiKeyValue = `${securityObj.scheme?.toLowerCase() === 'bearer' ? 'Bearer ' : ''}${providedApikeyVal}`;\r\n }\r\n if (finalApiKeyValue) {\r\n securityObj.finalKeyValue = finalApiKeyValue;\r\n this.requestUpdate();\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\nexport function onClearAllApiKeys() {\r\n this.resolvedSpec.securitySchemes?.forEach((v) => {\r\n v.user = '';\r\n v.password = '';\r\n v.value = '';\r\n v.finalKeyValue = '';\r\n });\r\n this.requestUpdate();\r\n}\r\n\r\nfunction getPersistedApiKeys() {\r\n return JSON.parse(localStorage.getItem(localStorageKey)) || {};\r\n}\r\n\r\nfunction setPersistedApiKeys(obj) {\r\n localStorage.setItem(localStorageKey, JSON.stringify(obj));\r\n}\r\n\r\nexport function recoverPersistedApiKeys() {\r\n const rapidocLs = getPersistedApiKeys.call(this);\r\n Object.values(rapidocLs).forEach((p) => {\r\n applyApiKey.call(this, p.securitySchemeId, p.username, p.password, p.value);\r\n });\r\n}\r\n\r\nfunction onApiKeyChange(securitySchemeId) {\r\n let apiKeyValue = '';\r\n const securityObj = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === securitySchemeId));\r\n if (securityObj) {\r\n const trEl = this.shadowRoot.getElementById(`security-scheme-${securitySchemeId}`);\r\n if (trEl) {\r\n if (securityObj.type && securityObj.scheme && securityObj.type === 'http' && securityObj.scheme.toLowerCase() === 'basic') {\r\n const userVal = trEl.querySelector('.api-key-user').value.trim();\r\n const passwordVal = trEl.querySelector('.api-key-password').value.trim();\r\n applyApiKey.call(this, securitySchemeId, userVal, passwordVal);\r\n } else {\r\n apiKeyValue = trEl.querySelector('.api-key-input').value.trim();\r\n applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\r\n }\r\n if (this.persistAuth === 'true') {\r\n const rapidocLs = getPersistedApiKeys.call(this);\r\n rapidocLs[securitySchemeId] = securityObj;\r\n setPersistedApiKeys.call(this, rapidocLs);\r\n }\r\n }\r\n }\r\n}\r\n\r\n// Updates the OAuth Access Token (API key), so it reflects in UI and gets used in TRY calls\r\nfunction updateOAuthKey(securitySchemeId, accessToken, tokenType = 'Bearer') {\r\n const securityObj = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === securitySchemeId));\r\n securityObj.finalKeyValue = `${(tokenType.toLowerCase() === 'bearer' ? 'Bearer' : (tokenType.toLowerCase() === 'mac' ? 'MAC' : tokenType))} ${accessToken}`;\r\n this.requestUpdate();\r\n}\r\n\r\n/* eslint-disable no-console */\r\n// Gets Access-Token in exchange of Authorization Code\r\nasync function fetchAccessToken(tokenUrl, clientId, clientSecret, redirectUrl, grantType, authCode, securitySchemeId, authFlowDivEl, sendClientSecretIn = 'header', scopes = null, username = null, password = null) {\r\n const respDisplayEl = authFlowDivEl ? authFlowDivEl.querySelector('.oauth-resp-display') : undefined;\r\n const urlFormParams = new URLSearchParams();\r\n const headers = new Headers();\r\n urlFormParams.append('grant_type', grantType);\r\n if (grantType === 'authorization_code') {\r\n urlFormParams.append('client_id', clientId);\r\n urlFormParams.append('client_secret', clientSecret);\r\n }\r\n if (grantType !== 'client_credentials' && grantType !== 'password') {\r\n urlFormParams.append('redirect_uri', redirectUrl);\r\n }\r\n if (authCode) {\r\n urlFormParams.append('code', authCode);\r\n urlFormParams.append('code_verifier', codeVerifier); // for PKCE\r\n }\r\n if (sendClientSecretIn === 'header') {\r\n headers.set('Authorization', `Basic ${Buffer.from(`${clientId}:${clientSecret}`, 'utf8').toString('base64')}`);\r\n } else if (grantType !== 'authorization_code') {\r\n urlFormParams.append('client_id', clientId);\r\n urlFormParams.append('client_secret', clientSecret);\r\n }\r\n if (grantType === 'password') {\r\n urlFormParams.append('username', username);\r\n urlFormParams.append('password', password);\r\n }\r\n if (scopes) {\r\n urlFormParams.append('scope', scopes);\r\n }\r\n\r\n try {\r\n const resp = await fetch(tokenUrl, { method: 'POST', headers, body: urlFormParams });\r\n const tokenResp = await resp.json();\r\n if (resp.ok) {\r\n if (tokenResp.token_type && tokenResp.access_token) {\r\n updateOAuthKey.call(this, securitySchemeId, tokenResp.access_token, tokenResp.token_type);\r\n if (respDisplayEl) {\r\n respDisplayEl.innerHTML = 'Access Token Received';\r\n }\r\n return true;\r\n }\r\n } else {\r\n if (respDisplayEl) {\r\n respDisplayEl.innerHTML = `${tokenResp.error_description || tokenResp.error_description || 'Unable to get access token'}`;\r\n }\r\n return false;\r\n }\r\n } catch (err) {\r\n if (respDisplayEl) {\r\n respDisplayEl.innerHTML = 'Failed to get access token';\r\n }\r\n return false;\r\n }\r\n}\r\n\r\n// Gets invoked when it receives the Authorization Code from the other window via message-event\r\nasync function onWindowMessageEvent(msgEvent, winObj, tokenUrl, clientId, clientSecret, redirectUrl, grantType, sendClientSecretIn, securitySchemeId, authFlowDivEl) {\r\n sessionStorage.removeItem('winMessageEventActive');\r\n winObj.close();\r\n if (msgEvent.data.fake) {\r\n return;\r\n }\r\n if (!msgEvent.data) {\r\n console.warn('RapiDoc: Received no data with authorization message');\r\n }\r\n if (msgEvent.data.error) {\r\n console.warn('RapiDoc: Error while receiving data');\r\n }\r\n if (msgEvent.data) {\r\n if (msgEvent.data.responseType === 'code') {\r\n // Authorization Code flow\r\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrl, grantType, msgEvent.data.code, securitySchemeId, authFlowDivEl, sendClientSecretIn);\r\n } else if (msgEvent.data.responseType === 'token') {\r\n // Implicit flow\r\n updateOAuthKey.call(this, securitySchemeId, msgEvent.data.access_token, msgEvent.data.token_type);\r\n }\r\n }\r\n}\r\n\r\n// code_challenge generator for PKCE flow\r\n// TODO: Implement dynamic generation of code-challenge based on code-verifier\r\n/*\r\nasync function generateCodeChallenge() {\r\n const encoder = new TextEncoder();\r\n const data = encoder.encode(codeVerifier);\r\n const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array\r\n // const utf8Decoder = new TextDecoder();\r\n // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash));\r\n const b64EncodedSha256 = base64encode(sha256Hash);\r\n return b64EncodedSha256;\r\n}\r\n*/\r\n\r\nasync function onInvokeOAuthFlow(securitySchemeId, flowType, authUrl, tokenUrl, e) {\r\n const authFlowDivEl = e.target.closest('.oauth-flow');\r\n const clientId = authFlowDivEl.querySelector('.oauth-client-id') ? authFlowDivEl.querySelector('.oauth-client-id').value.trim() : '';\r\n const clientSecret = authFlowDivEl.querySelector('.oauth-client-secret') ? authFlowDivEl.querySelector('.oauth-client-secret').value.trim() : '';\r\n const username = authFlowDivEl.querySelector('.api-key-user') ? authFlowDivEl.querySelector('.api-key-user').value.trim() : '';\r\n const password = authFlowDivEl.querySelector('.api-key-password') ? authFlowDivEl.querySelector('.api-key-password').value.trim() : '';\r\n const sendClientSecretIn = authFlowDivEl.querySelector('.oauth-send-client-secret-in') ? authFlowDivEl.querySelector('.oauth-send-client-secret-in').value.trim() : 'header';\r\n const checkedScopeEls = [...authFlowDivEl.querySelectorAll('.scope-checkbox:checked')];\r\n const pkceCheckboxEl = authFlowDivEl.querySelector(`#${securitySchemeId}-pkce`);\r\n const state = (`${Math.random().toString(36).slice(2, 9)}random${Math.random().toString(36).slice(2, 9)}`);\r\n const nonce = (`${Math.random().toString(36).slice(2, 9)}random${Math.random().toString(36).slice(2, 9)}`);\r\n // const codeChallenge = await generateCodeChallenge(codeVerifier);\r\n const redirectUrlObj = new URL(`${window.location.origin}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))}/${this.oauthReceiver}`);\r\n let grantType = '';\r\n let responseType = '';\r\n let newWindow;\r\n\r\n // clear previous error messages\r\n const errEls = [...authFlowDivEl.parentNode.querySelectorAll('.oauth-resp-display')];\r\n errEls.forEach((v) => { v.innerHTML = ''; });\r\n\r\n if (flowType === 'authorizationCode' || flowType === 'implicit') {\r\n const authUrlObj = new URL(authUrl);\r\n if (flowType === 'authorizationCode') {\r\n grantType = 'authorization_code';\r\n responseType = 'code';\r\n } else if (flowType === 'implicit') {\r\n responseType = 'token';\r\n }\r\n const authCodeParams = new URLSearchParams(authUrlObj.search);\r\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\r\n if (selectedScopes) {\r\n authCodeParams.set('scope', selectedScopes);\r\n }\r\n authCodeParams.set('client_id', clientId);\r\n authCodeParams.set('redirect_uri', redirectUrlObj.toString());\r\n authCodeParams.set('response_type', responseType);\r\n authCodeParams.set('state', state);\r\n authCodeParams.set('nonce', nonce);\r\n if (pkceCheckboxEl && pkceCheckboxEl.checked) {\r\n authCodeParams.set('code_challenge', codeChallenge);\r\n authCodeParams.set('code_challenge_method', 'S256');\r\n }\r\n authCodeParams.set('show_dialog', true);\r\n authUrlObj.search = authCodeParams.toString();\r\n // If any older message-event-listener is active then fire a fake message to remove it (these are single time listeners)\r\n if (sessionStorage.getItem('winMessageEventActive') === 'true') {\r\n window.postMessage({ fake: true }, this);\r\n }\r\n setTimeout(() => {\r\n newWindow = window.open(authUrlObj.toString());\r\n if (!newWindow) {\r\n console.error(`RapiDoc: Unable to open ${authUrlObj.toString()} in a new window`);\r\n } else {\r\n sessionStorage.setItem('winMessageEventActive', 'true');\r\n window.addEventListener(\r\n 'message',\r\n (msgEvent) => onWindowMessageEvent.call(this, msgEvent, newWindow, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, sendClientSecretIn, securitySchemeId, authFlowDivEl),\r\n { once: true },\r\n );\r\n }\r\n }, 10);\r\n } else if (flowType === 'clientCredentials') {\r\n grantType = 'client_credentials';\r\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\r\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, '', securitySchemeId, authFlowDivEl, sendClientSecretIn, selectedScopes);\r\n } else if (flowType === 'password') {\r\n grantType = 'password';\r\n const selectedScopes = checkedScopeEls.map((v) => v.value).join(' ');\r\n fetchAccessToken.call(this, tokenUrl, clientId, clientSecret, redirectUrlObj.toString(), grantType, '', securitySchemeId, authFlowDivEl, sendClientSecretIn, selectedScopes, username, password);\r\n }\r\n}\r\n/* eslint-enable no-console */\r\n\r\n/* eslint-disable indent */\r\n\r\nfunction oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, authFlow, defaultScopes = [], receiveTokenIn = 'header') {\r\n let { authorizationUrl, tokenUrl, refreshUrl } = authFlow;\r\n const pkceOnly = authFlow['x-pkce-only'] || false;\r\n const isUrlAbsolute = (url) => (url.indexOf('://') > 0 || url.indexOf('//') === 0);\r\n // Calculcate base URL\r\n const url = new URL(this.selectedServer.computedUrl);\r\n const baseUrl = url.origin;\r\n\r\n if (refreshUrl && !isUrlAbsolute(refreshUrl)) {\r\n refreshUrl = `${baseUrl}/${refreshUrl.replace(/^\\//, '')}`;\r\n }\r\n if (tokenUrl && !isUrlAbsolute(tokenUrl)) {\r\n tokenUrl = `${baseUrl}/${tokenUrl.replace(/^\\//, '')}`;\r\n }\r\n if (authorizationUrl && !isUrlAbsolute(authorizationUrl)) {\r\n authorizationUrl = `${baseUrl}/${authorizationUrl.replace(/^\\//, '')}`;\r\n }\r\n let flowNameDisplay;\r\n if (flowName === 'authorizationCode') {\r\n flowNameDisplay = 'Authorization Code Flow';\r\n } else if (flowName === 'clientCredentials') {\r\n flowNameDisplay = 'Client Credentials Flow';\r\n } else if (flowName === 'implicit') {\r\n flowNameDisplay = 'Implicit Flow';\r\n } else if (flowName === 'password') {\r\n flowNameDisplay = 'Password Flow';\r\n } else {\r\n flowNameDisplay = flowName;\r\n }\r\n return html`\r\n
    \r\n
    ${flowNameDisplay}
    \r\n ${authorizationUrl\r\n ? html`
    Auth URL ${authorizationUrl}
    `\r\n : ''\r\n }\r\n ${tokenUrl\r\n ? html`
    Token URL ${tokenUrl}
    `\r\n : ''\r\n }\r\n ${refreshUrl\r\n ? html`
    Refresh URL ${refreshUrl}
    `\r\n : ''\r\n }\r\n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'implicit' || flowName === 'password'\r\n ? html`\r\n ${authFlow.scopes\r\n ? html`\r\n Scopes \r\n
    \r\n ${Object.entries(authFlow.scopes).map((scopeAndDescr, index) => html`\r\n
    \r\n \r\n \r\n
    \r\n `)}\r\n
    \r\n `\r\n : ''\r\n }\r\n ${flowName === 'password'\r\n ? html`\r\n
    \r\n \r\n \r\n
    `\r\n : ''\r\n }\r\n
    \r\n ${flowName === 'authorizationCode'\r\n ? html`\r\n
    \r\n \r\n \r\n
    \r\n `\r\n : ''\r\n }\r\n \r\n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'password'\r\n ? html`\r\n \r\n `\r\n : ''\r\n }\r\n ${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'implicit' || flowName === 'password'\r\n ? html`\r\n `\r\n : ''\r\n }\r\n
    \r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n `;\r\n}\r\n\r\nfunction removeApiKey(securitySchemeId) {\r\n const securityObj = this.resolvedSpec.securitySchemes?.find((v) => (v.securitySchemeId === securitySchemeId));\r\n securityObj.user = '';\r\n securityObj.password = '';\r\n securityObj.value = '';\r\n securityObj.finalKeyValue = '';\r\n if (this.persistAuth === 'true') {\r\n const rapidocLs = getPersistedApiKeys.call(this);\r\n delete rapidocLs[securityObj.securitySchemeId];\r\n setPersistedApiKeys.call(this, rapidocLs);\r\n }\r\n this.requestUpdate();\r\n}\r\n\r\nfunction handleApiKeyChange(e, securitySchemeId, apiKey) {\r\n if (apiKey === '') removeApiKey.call(this, securitySchemeId);\r\n else onApiKeyChange.call(this, securitySchemeId);\r\n\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n}\r\n\r\nfunction handleSecuritySchemeChange(e) {\r\n const newSelectedAuthScheme = parseInt(e.target.value);\r\n this.selectedAuthScheme = newSelectedAuthScheme;\r\n}\r\n\r\nfunction getSchemeTypes(scheme) {\r\n let authTypes = '';\r\n const keys = Object.keys(scheme);\r\n const keyCount = keys.length;\r\n const v = this.resolvedSpec.securitySchemes.find((s) => (s.securitySchemeId === keys[0]));\r\n\r\n if (v.type === 'apiKey') {\r\n authTypes += v.in.charAt(0).toUpperCase() + v.in.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : '');\r\n } else if (v.type === 'http') {\r\n authTypes += v.scheme.charAt(0).toUpperCase() + v.scheme.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : '');\r\n } else if (v.type) {\r\n authTypes += v.type.charAt(0).toUpperCase() + v.type.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : '');\r\n } else authTypes += 'Authentication';\r\n\r\n return authTypes;\r\n}\r\n\r\nfunction selectSecuritySchemeTemplate() {\r\n return html`\r\n
    \r\n { handleSecuritySchemeChange.call(this, e); }}\r\n >\r\n ${this.resolvedSpec.security.map((scheme, id) => {\r\n return html`\r\n `\r\n })}\r\n \r\n
    `\r\n}\r\n\r\nexport default function securitySchemeTemplate() {\r\n if (!this.resolvedSpec) { return ''; }\r\n if (this.security && this.security.length === 0) return ''; // If security is explicitly defined as [], it indicates that an authentation header is not required\r\n const providedApiKeys = this.resolvedSpec.securitySchemes?.filter((v) => (v.finalKeyValue));\r\n if (!providedApiKeys) {\r\n return;\r\n }\r\n\r\n return html`\r\n ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0\r\n ? html`\r\n
    \r\n
    Authentication
    \r\n
    \r\n ${selectSecuritySchemeTemplate.call(this)}\r\n
    \r\n ${this.resolvedSpec.security.map((scheme, id) => {\r\n return html`\r\n ${id === this.selectedAuthScheme ? html`
    \r\n ${Object.keys(scheme).map((key) => {\r\n const v = this.resolvedSpec.securitySchemes.find((s) => (s.securitySchemeId === key))\r\n if (!isSecuritySchemeIdValid(this.security, v.securitySchemeId)) return;\r\n return html`\r\n
    \r\n
    ${v.name}
    \r\n ${v.description\r\n ? html`\r\n
    \r\n ${unsafeHTML(marked(v.description || ''))}\r\n
    `\r\n : ''\r\n }\r\n\r\n ${(v.type.toLowerCase() === 'apikey') || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer')\r\n ? html`\r\n
    \r\n { handleApiKeyChange.call(this, e, v.securitySchemeId, e.target.value); }}\"\r\n >\r\n
    `\r\n : ''\r\n }\r\n ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic'\r\n ? html`\r\n
    \r\n Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password.\r\n
    \r\n
    \r\n {\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }}\r\n >\r\n {\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }}\r\n >\r\n \r\n
    `\r\n : ''\r\n }\r\n
    \r\n ${v.type.toLowerCase() === 'oauth2'\r\n ? html`\r\n
    \r\n ${Object.keys(v.flows).map((f) => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))}\r\n
    \r\n `\r\n : ''\r\n }\r\n `})\r\n }\r\n
    ` : ''\r\n }\r\n `\r\n })}\r\n
    \r\n \r\n
    `\r\n : ''\r\n }\r\n`;\r\n}\r\n\r\nexport function pathSecurityTemplate(pathSecurity) {\r\n if (this.resolvedSpec.securitySchemes && pathSecurity) {\r\n const orSecurityKeys1 = [];\r\n if (Array.isArray(pathSecurity)) {\r\n if (pathSecurity.length === 0) {\r\n return '';\r\n }\r\n } else {\r\n return '';\r\n }\r\n pathSecurity.forEach((pSecurity) => {\r\n const andSecurityKeys1 = [];\r\n const andKeyTypes = [];\r\n if (Object.keys(pSecurity).length === 0) {\r\n orSecurityKeys1.push({\r\n securityTypes: 'None',\r\n securityDefs: [],\r\n });\r\n } else {\r\n Object.keys(pSecurity).forEach((pathSecurityKey) => {\r\n let pathScopes = '';\r\n const s = this.resolvedSpec.securitySchemes.find((ss) => ss.securitySchemeId === pathSecurityKey);\r\n if (pSecurity[pathSecurityKey] && Array.isArray(pSecurity[pathSecurityKey])) {\r\n pathScopes = pSecurity[pathSecurityKey].join(', ');\r\n }\r\n if (s) {\r\n andKeyTypes.push(s.typeDisplay);\r\n andSecurityKeys1.push({ ...s, ...({ scopes: pathScopes }) });\r\n }\r\n });\r\n orSecurityKeys1.push({\r\n securityTypes: andKeyTypes.length > 1 ? `${andKeyTypes[0]} + ${andKeyTypes.length - 1} more` : andKeyTypes[0],\r\n securityDefs: andSecurityKeys1,\r\n });\r\n }\r\n });\r\n return html`
    \r\n
    \r\n \r\n ${orSecurityKeys1.map((orSecurityItem1, i) => html`\r\n ${orSecurityItem1.securityTypes\r\n ? html`\r\n ${i !== 0 ? html`
    OR
    ` : ''}\r\n
    \r\n
    \r\n ${this.updateRoute === 'true' && this.allowAuthentication === 'true'\r\n ? html` ${orSecurityItem1.securityTypes} `\r\n : html`${orSecurityItem1.securityTypes}`\r\n }\r\n
    \r\n
    \r\n ${orSecurityItem1.securityDefs.length > 1 ? html`
    Requires all of the following
    ` : ''}\r\n
    \r\n ${orSecurityItem1.securityDefs.map((andSecurityItem, j) => {\r\n const scopeHtml = html`${andSecurityItem.scopes !== ''\r\n ? html`\r\n
    \r\n Required scopes:\r\n
    \r\n
    \r\n ${andSecurityItem.scopes.split(',').map((scope, cnt) => html`${cnt === 0 ? '' : '┃'}${scope}`)}\r\n
    \r\n
    `\r\n : ''\r\n }`;\r\n\r\n return html`\r\n ${andSecurityItem.type === 'oauth2'\r\n ? html`\r\n
    \r\n ${orSecurityItem1.securityDefs.length > 1\r\n ? html`${j + 1}.  `\r\n : 'Needs'\r\n }\r\n OAuth Token ${andSecurityItem.securitySchemeId} in Authorization header\r\n ${scopeHtml}\r\n
    `\r\n : andSecurityItem.type === 'http'\r\n ? html`\r\n
    \r\n ${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`}\r\n ${andSecurityItem.scheme === 'basic' ? 'Base 64 encoded username:password' : 'Bearer Token'} in Authorization header\r\n ${scopeHtml}\r\n
    `\r\n : html`\r\n
    \r\n ${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`}\r\n Token in ${andSecurityItem.name} ${andSecurityItem.in}\r\n ${scopeHtml}\r\n
    `\r\n }`;\r\n })}\r\n
    \r\n
    \r\n
    \r\n `\r\n : ''\r\n }\r\n `)\r\n }\r\n
    \r\n `;\r\n }\r\n return '';\r\n}\r\n\r\n/* eslint-enable indent */\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function copySymbol() {\r\nreturn html`\r\n \r\n \r\n \r\n \r\n`;\r\n}\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport Prism from 'prismjs';\r\nimport { copyToClipboard } from '../utils/common-utils';\r\nimport copySymbol from '../components/assets/copy-symbol';\r\n\r\n/* eslint-disable indent */\r\nexport default function codeSamplesTemplate(xCodeSamples) {\r\n return html`\r\n
    CODE SAMPLES
    \r\n
    {\r\n if (!e.target.classList.contains('tab-btn')) { return; }\r\n const clickedTab = e.target.dataset.tab;\r\n\r\n const tabButtons = [...e.currentTarget.querySelectorAll('.tab-btn')];\r\n const tabContents = [...e.currentTarget.querySelectorAll('.tab-content')];\r\n tabButtons.forEach((tabBtnEl) => tabBtnEl.classList[tabBtnEl.dataset.tab === clickedTab ? 'add' : 'remove']('active'));\r\n tabContents.forEach((tabBodyEl) => { tabBodyEl.style.display = (tabBodyEl.dataset.tab === clickedTab ? 'block' : 'none'); });\r\n }\r\n }\">\r\n
    \r\n ${xCodeSamples.map((v, i) => html``)}\r\n
    \r\n ${xCodeSamples.map((v, i) => html`\r\n
    \r\n \r\n
    ${Prism.languages[v.lang?.toLowerCase()] ? unsafeHTML(Prism.highlight(v.source, Prism.languages[v.lang?.toLowerCase()], v.lang?.toLowerCase())) : v.source}
    \r\n
    `)\r\n }\r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function callbackTemplate(callbacks) {\r\n return html`\r\n
    CALLBACKS
    \r\n ${Object.entries(callbacks).map((kv) => html`\r\n
    \r\n ${kv[0]}\r\n ${Object.entries(kv[1]).map((pathObj) => html`\r\n
    \r\n
    \r\n ${Object.entries(pathObj[1]).map((method) => html`\r\n
    \r\n
    \r\n
    \r\n \r\n ${method[0]} \r\n
    \r\n ${pathObj[0]} \r\n
    \r\n
    \r\n \r\n\r\n \r\n
    \r\n
    \r\n `)}\r\n
    \r\n
    \r\n `)}\r\n
    \r\n `)}\r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { css } from 'lit';\r\n\r\nconst ShellStyle = css`\r\n.shell-token.shell-function {\r\n color: #2953B2;\r\n}\r\n\r\n.shell-token.shell-method {\r\n color: #4A4A4A;\r\n}\r\n\r\n.shell-token.shell-punctuation {\r\n color: #4A4A4A;\r\n}\r\n\r\n.shell-token.shell-string {\r\n color: var(--green);\r\n}\r\n\r\n`;\r\n\r\nconst JavascriptStyle = css`\r\n.node-token.node-builtin {\r\n color: #4A4A4A;\r\n}\r\n\r\n.node-token.node-keyword {\r\n color: #2953B2;\r\n}\r\n\r\n.node-token.node-punctuation {\r\n color: #4A4A4A;\r\n}\r\n\r\n.node-token.node-operator {\r\n color: #4A4A4A;\r\n}\r\n\r\n.node-token.node-string {\r\n color: var(--green);\r\n}\r\n\r\n.node-token.node-property {\r\n color: var(--green);\r\n}\r\n`;\r\n\r\nconst RubyStyle = css``;\r\n\r\nconst PhpStyle = css``;\r\n\r\nconst JsonStyle = css`\r\n.json-token.json-boolean {\r\n color: #2953B2;\r\n}\r\n\r\n.json-token.json-keyword {\r\n color: #2953B2;\r\n}\r\n\r\n.json-token.json-punctuation {\r\n color: #4A4A4A;\r\n}\r\n\r\n.json-token.json-comment {\r\n color: #4A4A4A;\r\n}\r\n\r\n.json-token.json-string {\r\n color: var(--green);\r\n}\r\n\r\n.json-token.json-property {\r\n color: var(--green);\r\n}\r\n`;\r\n\r\nconst PythonStyle = css`\r\n.python-token.python-builtin {\r\n color: #4A4A4A;\r\n}\r\n\r\n.python-token.python-keyword {\r\n color: #2953B2;\r\n}\r\n\r\n.python-token.python-punctuation {\r\n color: #4A4A4A;\r\n}\r\n\r\n.python-token.python-string {\r\n color: var(--green);\r\n}\r\n`;\r\n\r\nexport default [\r\n ShellStyle,\r\n JavascriptStyle,\r\n RubyStyle,\r\n PhpStyle,\r\n PythonStyle,\r\n JsonStyle,\r\n];\r\n","import { LitElement, html, css } from 'lit';\r\nimport { copyToClipboard } from '../utils/common-utils';\r\nimport FontStyles from '../styles/font-styles';\r\nimport BorderStyles from '../styles/border-styles';\r\nimport InputStyles from '../styles/input-styles';\r\nimport CustomStyles from '../styles/custom-styles';\r\nimport copySymbol from './assets/copy-symbol';\r\n\r\nexport default class JsonTree extends LitElement {\r\n static get properties() {\r\n return {\r\n data: { type: Object },\r\n renderStyle: { type: String, attribute: 'render-style' },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n BorderStyles,\r\n InputStyles,\r\n css`\r\n :host{\r\n display:flex;\r\n }\r\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\r\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\r\n .json-tree {\r\n position: relative;\r\n font-family: var(--font-mono);\r\n font-size: var(--font-size-small);\r\n display:inline-block;\r\n overflow:hidden;\r\n word-break: break-all;\r\n flex:1;\r\n line-height: calc(var(--font-size-small) + 6px);\r\n min-height: 40px;\r\n direction: ltr; \r\n text-align: left;\r\n }\r\n\r\n .open-bracket {\r\n display:inline-block;\r\n padding: 0 20px 0 0;\r\n cursor:pointer;\r\n border: 1px solid transparent;\r\n border-radius:3px;\r\n }\r\n .close-bracket {\r\n border: 1px solid transparent;\r\n border-radius:3px;\r\n display:inline-block;\r\n }\r\n .open-bracket:hover {\r\n color:var(--primary-color);\r\n background-color:var(--hover-color);\r\n border: 1px solid var(--border-color);\r\n }\r\n .open-bracket.expanded:hover ~ .inside-bracket {\r\n border-left: 1px solid var(--fg3);\r\n }\r\n .open-bracket.expanded:hover ~ .close-bracket {\r\n color:var(--primary-color);\r\n }\r\n .inside-bracket {\r\n padding-left:12px;\r\n overflow: hidden;\r\n border-left:1px dotted var(--border-color);\r\n }\r\n .open-bracket.collapsed + .inside-bracket,\r\n .open-bracket.collapsed + .inside-bracket + .close-bracket {\r\n display:none;\r\n }\r\n\r\n .string{color:var(--green);}\r\n .number{color:var(--blue);}\r\n .null{color:var(--red);}\r\n .boolean{color:var(--purple);}\r\n .object{color:var(--fg)}\r\n .toolbar {\r\n position: absolute;\r\n top:5px;\r\n right:6px;\r\n display:flex;\r\n padding:2px;\r\n align-items: center;\r\n }`,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n /* eslint-disable indent */\r\n render() {\r\n return html`\r\n
    \r\n
    \r\n \r\n
    \r\n ${this.generateTree(this.data, true)}\r\n
    \r\n `;\r\n }\r\n\r\n generateTree(data, isLast = false) {\r\n if (data === null) {\r\n return html`
    null
    `;\r\n }\r\n if (typeof data === 'object' && (data instanceof Date === false)) {\r\n const detailType = Array.isArray(data) ? 'array' : 'pure_object';\r\n if (Object.keys(data).length === 0) {\r\n return html`${(Array.isArray(data) ? '[ ],' : '{ },')}`;\r\n }\r\n return html`\r\n
    ${detailType === 'array' ? '[' : '{'}
    \r\n
    \r\n ${Object.keys(data).map((key, i, a) => html`\r\n
    \r\n ${detailType === 'pure_object' ? html`\"${key}\":` : ''}\r\n ${this.generateTree(data[key], i === (a.length - 1))}\r\n
    `)\r\n }\r\n
    \r\n
    ${detailType === 'array' ? ']' : '}'}${isLast ? '' : ','}
    \r\n `;\r\n }\r\n return (typeof data === 'string' || data instanceof Date)\r\n ? html`\"${data}\"${isLast ? '' : ','}`\r\n : html`${data}${isLast ? '' : ','}`;\r\n }\r\n /* eslint-enable indent */\r\n\r\n toggleExpand(e) {\r\n const openBracketEl = e.target;\r\n if (e.target.classList.contains('open-bracket')) {\r\n if (openBracketEl.classList.contains('expanded')) {\r\n openBracketEl.classList.replace('expanded', 'collapsed');\r\n e.target.innerHTML = e.target.classList.contains('array') ? '[...]' : '{...}';\r\n } else {\r\n openBracketEl.classList.replace('collapsed', 'expanded');\r\n e.target.innerHTML = e.target.classList.contains('array') ? '[' : '{';\r\n }\r\n }\r\n }\r\n}\r\n// Register the element with the browser\r\nif (!customElements.get('json-tree')) customElements.define('json-tree', JsonTree);\r\n","import { LitElement, html, css } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport FontStyles from '../styles/font-styles';\r\nimport SchemaStyles from '../styles/schema-styles';\r\nimport BorderStyles from '../styles/border-styles';\r\nimport CustomStyles from '../styles/custom-styles';\r\n\r\nexport default class SchemaTree extends LitElement {\r\n static get properties() {\r\n return {\r\n data: { type: Object },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\r\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\r\n };\r\n }\r\n\r\n connectedCallback() {\r\n super.connectedCallback();\r\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\r\n if (!this.schemaDescriptionExpanded || !'true false'.includes(this.schemaDescriptionExpanded)) { this.schemaDescriptionExpanded = 'false'; }\r\n if (!this.schemaHideReadOnly || !'true false'.includes(this.schemaHideReadOnly)) { this.schemaHideReadOnly = 'true'; }\r\n if (!this.schemaHideWriteOnly || !'true false'.includes(this.schemaHideWriteOnly)) { this.schemaHideWriteOnly = 'true'; }\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n SchemaStyles,\r\n BorderStyles,\r\n css`\r\n .tree {\r\n font-size:var(--font-size-small);\r\n text-align: left;\r\n direction: ltr;\r\n line-height:calc(var(--font-size-small) + 6px);\r\n }\r\n .tree .tr:hover{\r\n background-color:var(--hover-color);\r\n }\r\n .collapsed-all-descr .tr:not(.expanded-descr) {\r\n overflow: hidden;\r\n max-height:calc(var(--font-size-small) + 8px);\r\n }\r\n .tree .key {\r\n max-width: 300px;\r\n }\r\n .key.deprecated .key-label {\r\n color: var(--red);\r\n }\r\n .tr.expanded:hover > .td.key > .open-bracket {\r\n color: var(--primary-color);\r\n }\r\n .tr.expanded:hover + .inside-bracket {\r\n border-left: 1px solid var(--fg3);\r\n }\r\n .tr.expanded:hover + .inside-bracket + .close-bracket {\r\n color: var(--primary-color);\r\n }\r\n .inside-bracket.xxx-of-option {\r\n border-left: 1px solid transparent;\r\n }\r\n .open-bracket{\r\n display:inline-block;\r\n padding: 0 20px 0 0;\r\n cursor:pointer;\r\n border: 1px solid transparent;\r\n border-radius:3px;\r\n }\r\n .open-bracket:hover {\r\n color:var(--primary-color);\r\n background-color:var(--hover-color);\r\n border: 1px solid var(--border-color);\r\n }\r\n .close-bracket{\r\n display:inline-block;\r\n font-family: var(--font-mono);\r\n }\r\n .tr.collapsed + .inside-bracket,\r\n .tr.collapsed + .inside-bracket + .close-bracket{\r\n overflow: hidden;\r\n display:none;\r\n }\r\n .inside-bracket.object,\r\n .inside-bracket.array {\r\n border-left: 1px dotted var(--border-color);\r\n }`,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n /* eslint-disable indent */\r\n render() {\r\n return html`\r\n
    this.handleAllEvents(e)}\">\r\n
    \r\n
    ${this.data?.['::type'] || ''}
    \r\n ${this.allowSchemaDescriptionExpandToggle === 'true'\r\n ? html`\r\n
    \r\n
    \r\n ${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}\r\n
    `\r\n : ''\r\n }\r\n
    \r\n ${unsafeHTML(marked(this.data?.['::description'] || ''))}\r\n ${this.data\r\n ? html`\r\n ${this.generateTree(\r\n this.data['::type'] === 'array' ? this.data['::props'] : this.data,\r\n this.data['::type'],\r\n this.data['::array-type'] || '',\r\n )}`\r\n : html` Schema not found `\r\n }\r\n
    \r\n `;\r\n }\r\n\r\n generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '') {\r\n if (this.schemaHideReadOnly === 'true') {\r\n if (dataType === 'array') {\r\n if (readOrWrite === 'readonly') {\r\n return;\r\n }\r\n }\r\n if (data?.['::readwrite'] === 'readonly') {\r\n return;\r\n }\r\n }\r\n if (this.schemaHideWriteOnly === 'true') {\r\n if (dataType === 'array') {\r\n if (readOrWrite === 'writeonly') {\r\n return;\r\n }\r\n }\r\n if (data?.['::readwrite'] === 'writeonly') {\r\n return;\r\n }\r\n }\r\n\r\n if (!data) {\r\n return html`
    \r\n ${key.replace('::OPTION~', '')}\r\n ${\r\n dataType === 'array'\r\n ? html` [ ] `\r\n : dataType === 'object'\r\n ? html` { } `\r\n : html` schema undefined `\r\n }\r\n
    `;\r\n }\r\n if (Object.keys(data).length === 0) {\r\n return html`${key}:{ }`;\r\n }\r\n let keyLabel = '';\r\n let keyDescr = '';\r\n if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) {\r\n keyLabel = key.replace('::', '').replace('~', ' ');\r\n } else if (key.startsWith('::OPTION')) {\r\n const parts = key.split('~');\r\n [, keyLabel, keyDescr] = parts;\r\n } else {\r\n keyLabel = key;\r\n }\r\n\r\n const leftPadding = 12;\r\n const minFieldColWidth = 400 - (indentLevel * leftPadding);\r\n let openBracket = '';\r\n let closeBracket = '';\r\n const newSchemaLevel = data['::type']?.startsWith('xxx-of') ? schemaLevel : (schemaLevel + 1);\r\n // const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' ? indentLevel : (indentLevel + 1);\r\n const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' || key.startsWith('::OPTION') ? indentLevel : (indentLevel + 1);\r\n if (data['::type'] === 'object') {\r\n if (dataType === 'array') {\r\n if (schemaLevel < this.schemaExpandLevel) {\r\n openBracket = html`[{`;\r\n } else {\r\n openBracket = html`[{...}]`;\r\n }\r\n closeBracket = '}]';\r\n } else {\r\n if (schemaLevel < this.schemaExpandLevel) {\r\n openBracket = html`{`;\r\n } else {\r\n openBracket = html`{...}`;\r\n }\r\n closeBracket = '}';\r\n }\r\n } else if (data['::type'] === 'array') {\r\n if (dataType === 'array') {\r\n const arrType = arrayType !== 'object' ? arrayType : '';\r\n if (schemaLevel < this.schemaExpandLevel) {\r\n openBracket = html`[[ ${arrType} `;\r\n } else {\r\n openBracket = html`[[...]]`;\r\n }\r\n closeBracket = ']]';\r\n } else {\r\n if (schemaLevel < this.schemaExpandLevel) {\r\n openBracket = html`[`;\r\n } else {\r\n openBracket = html`[...]`;\r\n }\r\n closeBracket = ']';\r\n }\r\n }\r\n if (typeof data === 'object') {\r\n return html`\r\n
    \r\n
    \r\n ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION')\r\n ? html` ${keyLabel}${keyDescr}`\r\n : keyLabel === '::props' || keyLabel === '::ARRAY~OF'\r\n ? ''\r\n : schemaLevel > 0\r\n ? html`\r\n ${data['::deprecated'] ? '✗' : ''}\r\n ${keyLabel.replace(/\\*$/, '')}${keyLabel.endsWith('*') ? html`*` : ''}${readOrWrite === 'readonly' ? html` 🆁` : readOrWrite === 'writeonly' ? html` 🆆` : readOrWrite}:\r\n `\r\n : ''\r\n }\r\n ${openBracket}\r\n
    \r\n
    ${unsafeHTML(marked(description || ''))}
    \r\n
    \r\n
    \r\n ${Array.isArray(data) && data[0]\r\n ? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}`\r\n : html`\r\n ${Object.keys(data).map((dataKey) => html`\r\n ${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey)\r\n ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'\r\n ? html`${this.generateTree(\r\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\r\n data[dataKey]['::type'],\r\n data[dataKey]['::array-type'] || '',\r\n dataKey,\r\n data[dataKey]['::description'],\r\n newSchemaLevel,\r\n newIndentLevel,\r\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\r\n )}`\r\n : ''\r\n : html`${this.generateTree(\r\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\r\n data[dataKey]['::type'],\r\n data[dataKey]['::array-type'] || '',\r\n dataKey,\r\n data[dataKey]?.['::description'] || '',\r\n newSchemaLevel,\r\n newIndentLevel,\r\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\r\n )}`\r\n }\r\n `)}\r\n `\r\n }\r\n
    \r\n ${data['::type'] && data['::type'].includes('xxx-of')\r\n ? ''\r\n : html`
    ${closeBracket}
    `\r\n }\r\n `;\r\n }\r\n\r\n // For Primitive types and array of Primitives\r\n // eslint-disable-next-line no-unused-vars\r\n const [type, primitiveReadOrWrite, constraint, defaultValue, allowedValues, pattern, schemaDescription, schemaTitle, deprecated] = data.split('~|~');\r\n if (primitiveReadOrWrite === '🆁' && this.schemaHideReadOnly === 'true') {\r\n return;\r\n }\r\n if (primitiveReadOrWrite === '🆆' && this.schemaHideWriteOnly === 'true') {\r\n return;\r\n }\r\n const dataTypeCss = type.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+]/g, '').substring(0, 4).toLowerCase();\r\n const descrExpander = `${constraint || defaultValue || allowedValues || pattern ? `` : ''}`;\r\n let finalReadWriteText = '';\r\n let finalReadWriteTip = '';\r\n if (dataType === 'array') {\r\n if (readOrWrite === 'readonly') {\r\n finalReadWriteText = '🆁';\r\n finalReadWriteTip = 'Read-Only';\r\n } else if (readOrWrite === 'writeonly') {\r\n finalReadWriteText = '🆆';\r\n finalReadWriteTip = 'Write-Only';\r\n }\r\n } else if (primitiveReadOrWrite === '🆁') {\r\n finalReadWriteText = '🆁';\r\n finalReadWriteTip = 'Read-Only';\r\n } else if (primitiveReadOrWrite === '🆆') {\r\n finalReadWriteText = '🆆';\r\n finalReadWriteTip = 'Write-Only';\r\n }\r\n\r\n return html`\r\n
    \r\n
    \r\n ${deprecated ? html`` : ''}\r\n ${keyLabel.endsWith('*')\r\n ? html`${keyLabel.substring(0, keyLabel.length - 1)}*:`\r\n : key.startsWith('::OPTION')\r\n ? html`${keyLabel}${keyDescr}`\r\n : html`${keyLabel}:`\r\n }\r\n \r\n ${dataType === 'array' ? `[${type}]` : `${type}`}\r\n ${finalReadWriteText}\r\n \r\n
    \r\n
    \r\n ${description || schemaTitle || schemaDescription\r\n ? html`${html`\r\n ${unsafeHTML(marked(dataType === 'array'\r\n ? `${descrExpander} ${description}`\r\n : schemaTitle\r\n ? `${descrExpander} ${schemaTitle}: ${schemaDescription}`\r\n : `${descrExpander} ${schemaDescription}`))}\r\n `\r\n }`\r\n : ''\r\n } \r\n ${constraint ? html`
    Constraints: ${constraint}
    ` : ''}\r\n ${defaultValue ? html`
    Default: ${defaultValue}
    ` : ''}\r\n ${allowedValues ? html`
    ${type === 'const' ? 'Value' : 'Allowed'}: ${allowedValues}
    ` : ''}\r\n ${pattern ? html`
    Pattern: ${pattern}
    ` : ''}\r\n
    \r\n
    \r\n `;\r\n }\r\n /* eslint-enable indent */\r\n\r\n handleAllEvents(e) {\r\n if (e.target.classList.contains('open-bracket')) {\r\n this.toggleObjectExpand(e);\r\n } else if (e.target.classList.contains('schema-multiline-toggle')) {\r\n this.schemaDescriptionExpanded = (this.schemaDescriptionExpanded === 'true' ? 'false' : 'true');\r\n } else if (e.target.classList.contains('descr-expand-toggle')) {\r\n const trEl = e.target.closest('.tr');\r\n if (trEl) {\r\n trEl.classList.toggle('expanded-descr');\r\n trEl.style.maxHeight = trEl.scrollHeight;\r\n }\r\n }\r\n }\r\n\r\n toggleObjectExpand(e) {\r\n const rowEl = e.target.closest('.tr');\r\n if (rowEl.classList.contains('expanded')) {\r\n rowEl.classList.replace('expanded', 'collapsed');\r\n e.target.innerHTML = e.target.classList.contains('array-of-object')\r\n ? '[{...}]'\r\n : e.target.classList.contains('array-of-array')\r\n ? '[[...]]'\r\n : e.target.classList.contains('array')\r\n ? '[...]'\r\n : '{...}';\r\n } else {\r\n rowEl.classList.replace('collapsed', 'expanded');\r\n e.target.innerHTML = e.target.classList.contains('array-of-object')\r\n ? '[{'\r\n : e.target.classList.contains('array-of-array')\r\n ? `[[ ${e.target.dataset.arrayType}`\r\n : e.target.classList.contains('object')\r\n ? '{'\r\n : '[';\r\n }\r\n }\r\n}\r\nif (!customElements.get('schema-tree')) customElements.define('schema-tree', SchemaTree);\r\n","import { LitElement, html, css } from 'lit';\r\n\r\nexport default class TagInput extends LitElement {\r\n /* eslint-disable indent */\r\n render() {\r\n let tagItemTmpl = '';\r\n if (Array.isArray(this.value)) {\r\n tagItemTmpl = html`${this.value\r\n .filter((v) => typeof v === 'string' && v.trim() !== '')\r\n .map((v) => html`${v}`)\r\n }`;\r\n }\r\n return html`\r\n
    \r\n ${tagItemTmpl}\r\n this.afterPaste(e)}\" @keydown=\"${this.afterKeyDown}\" @blur=\"${this.onBlur}\" placeholder=\"${this.placeholder || ''}\">\r\n
    \r\n `;\r\n }\r\n /* eslint-enable indent */\r\n\r\n static get properties() {\r\n return {\r\n placeholder: { type: String },\r\n value: { type: Array, attribute: 'value' },\r\n };\r\n }\r\n\r\n attributeChangedCallback(name, oldVal, newVal) {\r\n if (name === 'value') {\r\n if (newVal && oldVal !== newVal) {\r\n this.value = newVal.split(',').filter((v) => v.trim() !== '');\r\n }\r\n }\r\n super.attributeChangedCallback(name, oldVal, newVal);\r\n }\r\n\r\n afterPaste(e) {\r\n const clipboardData = e.clipboardData || window.clipboardData;\r\n const pastedData = clipboardData.getData('Text');\r\n const pastedArray = pastedData ? pastedData.split(',').filter((v) => v.trim() !== '') : '';\r\n if (pastedArray) {\r\n if (Array.isArray(this.value)) {\r\n this.value = [...this.value, ...pastedArray];\r\n } else {\r\n this.value = pastedArray;\r\n }\r\n }\r\n e.preventDefault();\r\n }\r\n\r\n afterKeyDown(e) {\r\n if (e.keyCode === 13) {\r\n e.stopPropagation();\r\n e.preventDefault();\r\n if (e.target.value) {\r\n if (Array.isArray(this.value)) {\r\n this.value = [...this.value, e.target.value];\r\n } else {\r\n this.value = [e.target.value];\r\n }\r\n e.target.value = '';\r\n }\r\n } else if (e.keyCode === 8) {\r\n if (e.target.value.length === 0) {\r\n if (Array.isArray(this.value) && this.value.length > 0) {\r\n this.value.splice(-1);\r\n this.value = [...this.value];\r\n }\r\n }\r\n }\r\n }\r\n\r\n onBlur(e) {\r\n if (e.target.value) {\r\n if (Array.isArray(this.value)) {\r\n this.value = [...this.value, e.target.value];\r\n } else {\r\n this.value = [e.target.value];\r\n }\r\n e.target.value = '';\r\n }\r\n }\r\n\r\n static get styles() {\r\n return [css`\r\n .tags {\r\n display:flex;\r\n flex-wrap: wrap;\r\n outline: none;\r\n padding:0;\r\n border-radius:var(--border-radius);\r\n border:1px solid var(--border-color);\r\n cursor:text;\r\n overflow:hidden;\r\n background:var(--input-bg);\r\n }\r\n .tag, .editor {\r\n padding:3px;\r\n margin:2px;\r\n }\r\n .tag{\r\n border:1px solid var(--border-color);\r\n background-color:var(--bg3);\r\n color:var(--fg3);\r\n border-radius:var(--border-radius);\r\n word-break: break-all;\r\n font-size: var(--font-size-small);\r\n }\r\n .tag:hover ~ #cursor {\r\n display: block;\r\n }\r\n .editor {\r\n flex:1;\r\n border:1px solid transparent;\r\n color:var(--fg);\r\n min-width:60px;\r\n outline: none;\r\n line-height: inherit;\r\n font-family:inherit;\r\n background:transparent;\r\n font-size: calc(var(--font-size-small) + 1px);\r\n }\r\n .editor:focus-visible {\r\n outline: 1px solid;\r\n }\r\n .editor::placeholder {\r\n color: var(--placeholder-color);\r\n opacity:1;\r\n }\r\n `];\r\n }\r\n}\r\n// Register the element with the browser\r\nif (!customElements.get('tag-input')) customElements.define('tag-input', TagInput);\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function checkSymbol(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n \r\n `;\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\n\r\nimport CustomStyles from '../styles/custom-styles';\r\nimport cornerArrowSymbol from './assets/corner-arrow-symbol';\r\n\r\nexport default class Breadcrumbs extends LitElement {\r\n static get properties() {\r\n return {\r\n headers: { type: Array },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n css`\r\n .container {\r\n display: flex;\r\n align-items: center;\r\n }\r\n\r\n .header {\r\n font-size: 16px;\r\n font-weight: 400;\r\n line-height: 18px;\r\n color: #A1A8B3;\r\n text-decoration: none;\r\n }\r\n\r\n .header:hover {\r\n color: #4A596B;\r\n }\r\n\r\n .header:active {\r\n color: #0C1522;\r\n }\r\n\r\n .caret {\r\n margin: 0 2px;\r\n }\r\n\r\n .tooltip {\r\n position: relative;\r\n display: inline-block;\r\n }\r\n\r\n .tooltip .tooltiptext {\r\n visibility: hidden;\r\n width: max-content;\r\n max-width: 150px;\r\n padding: 8px;\r\n\r\n border-radius: 4px;\r\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);\r\n\r\n background-color: #FFFFFF;\r\n color: #A1A8B3;\r\n \r\n position: absolute;\r\n transform: translateX(-50%);\r\n top: 135%;\r\n left: 50%;\r\n z-index: 1;\r\n }\r\n\r\n .tooltip:hover .tooltiptext {\r\n visibility: visible;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n }\r\n\r\n .tooltiptext::after {\r\n content: \"\";\r\n position: absolute;\r\n bottom: 100%;\r\n left: 50%;\r\n margin-left: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: transparent transparent #fff transparent;\r\n }\r\n\r\n @media(max-width: 1024px) {\r\n .header {\r\n font-size: 12px;\r\n line-height: 16px;\r\n }\r\n }\r\n `,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n render() {\r\n let headers = this.headers.map(({ title, link }) => ({\r\n title: title.slice(0, 25) + (title.length > 25 ? '...' : ''),\r\n link,\r\n hasTooltip: (title.length > 25),\r\n tooltip: [{ title, link }],\r\n }));\r\n\r\n if (headers.length > 3) {\r\n const ellipsis = headers.slice(1, -1).reduce((acc, curr) => {\r\n acc.tooltip.push({ title: curr.tooltip[0].title, link: curr.tooltip[0].link });\r\n return acc;\r\n }, { title: '...', link: '', hasTooltip: true, tooltip: [] });\r\n\r\n headers = [headers[0], ellipsis, headers[headers.length - 1]];\r\n }\r\n\r\n return html`\r\n
    \r\n ${headers.map((header, index) => html`\r\n ${index > 0 ? html`\r\n \r\n \r\n \r\n ` : ''}\r\n
    \r\n ${header.title}\r\n ${header.hasTooltip ? html`\r\n
    \r\n ${header.tooltip.map((content) => html`\r\n
    \r\n ${header.tooltip.length > 1 ? cornerArrowSymbol() : ''}\r\n ${content.title}\r\n
    \r\n `)}\r\n
    ` : ''}\r\n
    \r\n `)}\r\n
    \r\n `;\r\n }\r\n}\r\n\r\nif (!customElements.get('bread-crumbs')) customElements.define('bread-crumbs', Breadcrumbs);\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function cornerArrowSymbol(style) {\r\nreturn html`\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n`;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { LitElement, html, css } from 'lit';\r\nimport checkSymbol from './assets/check-symbol';\r\nimport closeSymbol from './assets/close-symbol';\r\n\r\n// eslint-disable-next-line import/prefer-default-export\r\nexport class Toast extends LitElement {\r\n static properties = {\r\n tone: { type: String },\r\n tones: { type: {} },\r\n message: { type: String },\r\n active: { type: Boolean },\r\n };\r\n\r\n constructor(tone, message) {\r\n super();\r\n this.active = true;\r\n this.message = message ?? '';\r\n this.tone = tone ?? 'positive';\r\n this.tones = {\r\n info: {\r\n borderColor: css`#7CBBEA`,\r\n bgColor: css`#DEECF7`,\r\n icon: checkSymbol,\r\n },\r\n positive: {\r\n borderColor: css`#83D187`,\r\n bgColor: css`#DFF1E0`,\r\n icon: checkSymbol,\r\n },\r\n warning: {\r\n borderColor: css`#F5AE70`,\r\n bgColor: css`#FFEBD7`,\r\n icon: checkSymbol,\r\n },\r\n critical: {\r\n borderColor: css`#F49494`,\r\n bgColor: css`#F8E3E3`,\r\n icon: checkSymbol,\r\n },\r\n };\r\n }\r\n\r\n firstUpdated() {\r\n const onFadeOut = (event) => {\r\n if (this.renderRoot.querySelectorAll('.toast-active').length > 0 && event.animationName === 'fadeOut') {\r\n this.onClose();\r\n }\r\n };\r\n this.renderRoot.getElementById('toast').addEventListener('animationend', onFadeOut);\r\n this.renderRoot.getElementById('toast').addEventListener('webkitAnimationEnd', onFadeOut);\r\n }\r\n\r\n onClose() {\r\n this.active = false;\r\n const options = {\r\n detail: 'closed toast',\r\n bubbles: true,\r\n composed: true,\r\n };\r\n this.dispatchEvent(new CustomEvent('closed-toast', options));\r\n }\r\n\r\n render() {\r\n return html`\r\n \r\n
    \r\n ${this.tones[this.tone].icon({ width: 24, height: 24 })}\r\n

    ${this.message}

    \r\n
    \r\n
    \r\n ${closeSymbol({})}\r\n
    \r\n
    \r\n `;\r\n }\r\n\r\n static get styles() {\r\n return [\r\n css`\r\n .close-button {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n border-radius: 4px;\r\n padding: 0px;\r\n width: 44px;\r\n height: 36px;\r\n }\r\n\r\n .close-button:hover {\r\n cursor: pointer;\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n\r\n .toast-icon-text {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: 0px 0px 0px 4px;\r\n gap: 12px;\r\n width: auto;\r\n min-height: 40px;\r\n }\r\n\r\n .text {\r\n overflow-wrap: break-word;\r\n font-style: normal;\r\n font-family:var(--font-regular); \r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 20px;\r\n display: flex;\r\n align-items: center;\r\n letter-spacing: 0.002em;\r\n color: black;\r\n margin: 0;\r\n }\r\n\r\n .toast {\r\n opacity: 0;\r\n pointer-events: none;\r\n display: none;\r\n }\r\n\r\n .toast-active {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 16px 16px 16px 20px;\r\n gap: 12px;\r\n min-width: 16.125rem;\r\n width: auto;\r\n border: 1px solid;\r\n box-shadow: 0px 12px 16px rgba(0, 0, 0, 0.16);\r\n border-radius: 4px;\r\n position: fixed;\r\n overflow: hidden;\r\n pointer-events: all;\r\n bottom: 32px;\r\n right: 50%;\r\n transform: translateX(50%);\r\n z-index: 1001;\r\n -webkit-animation:\r\n fadeIn .3s ease,\r\n slideIn .3s ease,\r\n fadeOut .3s ease 10s forwards;\r\n animation:\r\n fadeIn .3s ease,\r\n slideIn .3s ease,\r\n fadeOut .3s ease 10s forwards;\r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n .toast-active {\r\n right: 96px;\r\n transform: none;\r\n }\r\n }\r\n \r\n @keyframes slideIn {\r\n from { transform: translateY(0, 10px) }\r\n }\r\n\r\n @keyframes fadeIn {\r\n from { opacity: 0 }\r\n }\r\n \r\n @keyframes fadeOut {\r\n to {\r\n opacity: 0;\r\n pointer-events: none;\r\n display: none;\r\n }\r\n }\r\n\r\n @-webkit-keyframes slideIn {\r\n from { transform: translateY(0, 10px) }\r\n }\r\n\r\n @-webkit-keyframes fadeIn {\r\n from { opacity: 0 }\r\n }\r\n \r\n @-webkit-keyframes fadeOut {\r\n to {\r\n opacity: 0;\r\n pointer-events: none;\r\n display: none;\r\n }\r\n }\r\n `,\r\n ];\r\n }\r\n}\r\n\r\nif (!customElements.get('toast-component')) customElements.define('toast-component', Toast);\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function closeSymbol(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { LitElement, html, css } from 'lit';\r\n// eslint-disable-next-line import/extensions\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\r\nimport { joinURLandPath } from '../utils/url';\r\nimport checkSymbol from './assets/check-symbol';\r\nimport copySymbol from './assets/copy-symbol';\r\nimport './toast-component';\r\n\r\n/* eslint-disable indent */\r\n// eslint-disable-next-line import/prefer-default-export\r\nexport class BaseUrl extends LitElement {\r\n static properties = {\r\n id: { type: String },\r\n url: { type: String },\r\n path: { type: String },\r\n computedUrl: { type: String },\r\n copied: { type: Boolean },\r\n showButton: { type: Boolean },\r\n showToast: { type: Boolean },\r\n };\r\n\r\n constructor(id, url, path, computedUrl, variables) {\r\n super();\r\n this.id = id;\r\n this.url = url;\r\n this.path = path;\r\n this.computedUrl = computedUrl;\r\n this.variables = variables;\r\n this.copied = false;\r\n this.showButton = false;\r\n this.showToast = false;\r\n this.addEventListener('closed-toast', () => { this.showToast = false; });\r\n }\r\n\r\n reset() {\r\n this.copied = false;\r\n this.showButton = false;\r\n }\r\n\r\n willUpdate(changedProperties) {\r\n if (changedProperties.has('id')) {\r\n this.reset();\r\n }\r\n }\r\n\r\n onButtonClick() {\r\n navigator.clipboard.writeText(joinURLandPath(this.computedUrl, this.path));\r\n this.copied = true;\r\n this.showToast = true;\r\n }\r\n\r\n onTextClick() {\r\n navigator.clipboard.writeText(joinURLandPath(this.computedUrl, this.path));\r\n this.showToast = true;\r\n }\r\n\r\n onMouseOver() {\r\n this.showButton = true;\r\n }\r\n\r\n onMouseLeave() {\r\n this.showButton = false;\r\n this.copied = false;\r\n }\r\n\r\n parseURL() {\r\n if (!this.variables) return this.url;\r\n\r\n let { url } = this;\r\n const spanVar = '{var}';\r\n\r\n for (const [key, value] of Object.entries(this.variables)) {\r\n const regex = new RegExp(`{${key}}`, 'g');\r\n url = url.replace(regex, spanVar.replace('{var}', value.value));\r\n }\r\n\r\n return joinURLandPath(url, this.path);\r\n }\r\n\r\n render() {\r\n return html`\r\n
    \r\n
    \r\n ${html`${unsafeHTML(this.parseURL())}`}\r\n \r\n
    \r\n \r\n
    \r\n ${\r\n this.showToast\r\n ? html``\r\n : ''\r\n }\r\n `;\r\n }\r\n\r\n static get styles() {\r\n return [\r\n css`\r\n .svg-container {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n align-items: flex-start;\r\n padding: 0px 8px 0px 0px;\r\n gap: 10px;\r\n width: 57px;\r\n height: 20px;\r\n background: linear-gradient(270deg, #FFFFFF 51.22%, rgba(255, 255, 255, 0) 104.88%);\r\n }\r\n\r\n .url {\r\n flex: 1 0 auto;\r\n padding: 4px 8px;\r\n font-family: var(--font-mono);\r\n font-size: var(--font-size-mono)\r\n }\r\n\r\n .url:hover {\r\n cursor: pointer;\r\n }\r\n\r\n .variable {\r\n background-color: rgb(248, 247, 252);\r\n border: 1px solid rgb(204, 206, 216);\r\n border-radius: 4px;\r\n padding: 0px 2px;\r\n }\r\n\r\n .container {\r\n height: 42px;\r\n font-size:14px;\r\n border: 1px solid var(--border-color);\r\n border-radius: 4px;\r\n margin: 4px 0px;\r\n position: relative;\r\n }\r\n\r\n .container slot {\r\n visibility: hidden;\r\n }\r\n\r\n .container:hover slot {\r\n visibility: visible;\r\n }\r\n\r\n .container::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n button {\r\n background: none;\r\n color: inherit;\r\n border: none;\r\n padding: 0;\r\n cursor: pointer;\r\n outline: inherit;\r\n right: 0;\r\n display: block;\r\n position: -webkit-sticky;\r\n position: sticky;\r\n }\r\n\r\n .copy-container {\r\n width: inherit;\r\n height: inherit;\r\n opacity: 0;\r\n filter: alpha(opacity = 0);\r\n position: absolute;\r\n top:0; bottom:0; left:0; right:0;\r\n display: block;\r\n z-index: 2;\r\n background: transparent;\r\n }\r\n\r\n .content-copy-container {\r\n width: inherit;\r\n height: inherit;\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n flex-wrap: nowrap;\r\n font-size: 14px;\r\n white-space: nowrap;\r\n overflow-y: hidden;\r\n overflow-x: auto;\r\n align-items: center;\r\n }\r\n\r\n .content-copy-container::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n\r\n .content-copy-container::-webkit-scrollbar-track {\r\n background:var(--input-bg);\r\n }\r\n \r\n .content-copy-container::-webkit-scrollbar-thumb {\r\n border-radius: 2px;\r\n background-color: var(--border-color);\r\n }\r\n `,\r\n ];\r\n }\r\n}\r\n\r\nif (!customElements.get('base-url')) customElements.define('base-url', BaseUrl);\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport '../components/base-url';\r\nimport updateCodeExample from '../utils/update-code-example';\r\n\r\nexport function setApiServer(serverUrl) {\r\n const serverObj = this.resolvedSpec?.servers.find((s) => s.url === serverUrl);\r\n if (!serverObj) {\r\n return false;\r\n }\r\n this.selectedServer = serverObj;\r\n this.requestUpdate();\r\n this.dispatchEvent(new CustomEvent('api-server-change', {\r\n bubbles: true,\r\n composed: true,\r\n detail: {\r\n selectedServer: serverObj,\r\n },\r\n }));\r\n return true;\r\n}\r\n\r\nfunction onApiServerVarChange(e, serverObj) {\r\n const inputEls = [...e.currentTarget.closest('.server-vars').querySelectorAll('input, select')];\r\n let tempUrl = serverObj.url;\r\n inputEls.forEach((v) => {\r\n serverObj.variables[v.dataset.var].value = v.value;\r\n const regex = new RegExp(`{${v.dataset.var}}`, 'g');\r\n tempUrl = tempUrl.replace(regex, v.value.trim());\r\n });\r\n serverObj.computedUrl = tempUrl;\r\n\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n\r\n this.requestUpdate();\r\n}\r\n\r\n/* eslint-disable indent */\r\nfunction serverVarsTemplate() {\r\n // const selectedServerObj = this.resolvedSpec.servers.find((v) => (v.url === this.selectedServer));\r\n return this.selectedServer && this.selectedServer.variables\r\n ? html`\r\n
    \r\n ${Object.entries(this.selectedServer.variables).map((kv) => html`\r\n
    \r\n
    ${kv[0]}
    \r\n
    \r\n ${kv[1].enum\r\n ? html`\r\n { onApiServerVarChange.call(this, e, this.selectedServer); }}\r\n >\r\n ${Object.entries(kv[1].enum).map((e) => (kv[1].default === e[1]\r\n ? html`\r\n `\r\n : html`\r\n `\r\n ))}\r\n `\r\n : html`\r\n { onApiServerVarChange.call(this, e, this.selectedServer); }}\r\n />`}\r\n
    \r\n
    \r\n ${kv[1].description\r\n ? html`
    ${unsafeHTML(marked(kv[1].description))}
    `\r\n : ''\r\n }\r\n `)}\r\n
    \r\n `\r\n : '';\r\n}\r\n\r\nexport default function serverTemplate() {\r\n if (!this.resolvedSpec || this.resolvedSpec.specLoadError) { return ''; }\r\n return html`\r\n
    \r\n Base URL\r\n
    \r\n ${this.selectedServer?.computedUrl\r\n ? html`\r\n \r\n
    \r\n ${serverVarsTemplate.call(this)}\r\n
    \r\n
    \r\n
    `\r\n : ''\r\n }\r\n \r\n
    `;\r\n}\r\n/* eslint-enable indent */\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function cIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function clojureIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function csharpIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function goIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function javaIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function javascriptIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function kotlinIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function nodeIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function objcIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function ocamlIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function phpIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function pythonIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function rIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function rubyIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function shellIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function swiftIcon(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","import { html } from 'lit';\r\nimport HTTPSnippet from 'httpsnippet';\r\nimport languageIcons from '../components/assets/languages/language-icons';\r\nimport threeDots from '../components/assets/three-dots';\r\n\r\nfunction onClickMoreLanguages() {\r\n this.showMoreLanguages = !this.showMoreLanguages;\r\n}\r\n\r\nfunction onLeaveMoreLanguages() {\r\n this.showMoreLanguages = false;\r\n}\r\n\r\nfunction moreLanguagesTemplate(numberOfButtons, languages) {\r\n if (numberOfButtons >= languages.length) return '';\r\n\r\n return html`\r\n
    \r\n
    ${threeDots()}
    \r\n
    \r\n ${languages.slice(numberOfButtons).map((language) => html`\r\n { this.selectedLanguage = language.key; this.requestUpdate(); }}\r\n >\r\n ${languageIcons[language.key] ? languageIcons[language.key]({ width: 15, height: 15 }) : ''}\r\n ${language.title}\r\n \r\n `)}\r\n
    \r\n
    \r\n `;\r\n}\r\n\r\nexport default function languagePickerTemplate() {\r\n const selectedLanguages = ['node', 'shell', 'python'];\r\n const languages = HTTPSnippet.availableTargets().filter((language) => selectedLanguages.includes(language.key));\r\n const numberOfButtons = 3;\r\n\r\n return html`\r\n
    \r\n Language\r\n
    \r\n
    \r\n ${languages.slice(0, numberOfButtons).map((language) => html`\r\n { this.selectedLanguage = language.key; this.requestUpdate(); }}\r\n >\r\n ${languageIcons[language.key] ? languageIcons[language.key]() : ''}\r\n ${language.title}\r\n \r\n `)}\r\n
    \r\n ${moreLanguagesTemplate.call(this, numberOfButtons, languages)}\r\n
    \r\n
    `;\r\n}\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\nexport default function threeDots(dimensions) {\r\n const width = dimensions?.width ?? 20;\r\n const height = dimensions?.height ?? 20;\r\n return html`\r\n \r\n \r\n \r\n `;\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { guard } from 'lit/directives/guard.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport formatXml from 'xml-but-prettier';\r\nimport Prism from 'prismjs';\r\nimport TableStyles from '../styles/table-styles';\r\nimport FlexStyles from '../styles/flex-styles';\r\nimport InputStyles from '../styles/input-styles';\r\nimport FontStyles from '../styles/font-styles';\r\nimport BorderStyles from '../styles/border-styles';\r\nimport TabStyles from '../styles/tab-styles';\r\nimport PrismStyles from '../styles/prism-styles';\r\nimport PrismLanguagesStyles from '../styles/prism-languages-styles';\r\nimport CustomStyles from '../styles/custom-styles';\r\nimport { copyToClipboard, downloadResource, viewResource } from '../utils/common-utils';\r\nimport { schemaInObjectNotation,\r\n getTypeInfo,\r\n generateExample,\r\n normalizeExamples,\r\n getSchemaFromParam,\r\n nestExampleIfPresent,\r\n anyExampleWithSummaryOrDescription } from '../utils/schema-utils';\r\nimport './json-tree';\r\nimport './schema-tree';\r\nimport './tag-input';\r\nimport './breadcrumbs';\r\n\r\nimport serverTemplate from '../templates/server-template';\r\nimport securitySchemeTemplate from '../templates/security-scheme-template';\r\nimport languagePickerTemplate from '../templates/language-picker-template';\r\nimport updateCodeExample from '../utils/update-code-example';\r\nimport copySymbol from './assets/copy-symbol';\r\n\r\nexport default class ApiRequest extends LitElement {\r\n constructor() {\r\n super();\r\n this.resolvedSpec = {};\r\n this.responseMessage = '';\r\n this.resultLoad = false;\r\n this.responseStatus = 'success';\r\n this.responseHeaders = '';\r\n this.responseText = '';\r\n this.responseUrl = '';\r\n this.codeExample = '';\r\n this.activeResponseTab = 'response'; // allowed values: response, headers, curl\r\n this.selectedRequestBodyType = '';\r\n this.selectedRequestBodyExample = '';\r\n this.selectedAuthScheme = 0;\r\n this.activeParameterSchemaTabs = {};\r\n this.showCurlBeforeTry = true;\r\n this.selectedLanguage = 'shell';\r\n }\r\n\r\n static get properties() {\r\n return {\r\n schemaShortSummary: { type: String, attribute: 'schema-short-summary' },\r\n serverUrl: { type: String, attribute: 'server-url' },\r\n resolvedSpec: { type: Object },\r\n selectedServer: { type: Object },\r\n servers: { type: Array },\r\n method: { type: String },\r\n path: { type: String },\r\n security: { type: Array },\r\n parameters: { type: Array },\r\n request_body: { type: Object },\r\n api_keys: { type: Array },\r\n parser: { type: Object },\r\n accept: { type: String },\r\n callback: { type: String },\r\n webhook: { type: String },\r\n responseMessage: { type: String, attribute: false },\r\n responseText: { type: String, attribute: false },\r\n responseHeaders: { type: String, attribute: false },\r\n responseStatus: { type: String, attribute: false },\r\n responseUrl: { type: String, attribute: false },\r\n codeExample: { type: String, attribute: false },\r\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\r\n allowTry: { type: String, attribute: 'allow-try' },\r\n showCurlBeforeTry: { type: String, attribute: 'show-curl-before-try' },\r\n renderStyle: { type: String, attribute: 'render-style' },\r\n schemaStyle: { type: String, attribute: 'schema-style' },\r\n activeSchemaTab: { type: String, attribute: 'active-schema-tab' },\r\n activeParameterSchemaTabs: {\r\n type: Object,\r\n converter: {\r\n fromAttribute: (attr) => JSON.parse(attr),\r\n toAttribute: (prop) => JSON.stringify(prop),\r\n },\r\n attribute: 'active-parameter-schema-tabs',\r\n },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\r\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\r\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\r\n\r\n // properties for internal tracking\r\n activeResponseTab: { type: String }, // internal tracking of response-tab not exposed as a attribute\r\n selectedRequestBodyType: { type: String, attribute: 'selected-request-body-type' }, // internal tracking of selected request-body type\r\n selectedRequestBodyExample: { type: String, attribute: 'selected-request-body-example' }, // internal tracking of selected request-body example\r\n\r\n selectedAuthScheme: { type: Number },\r\n selectedLanguage: { type: String },\r\n\r\n // open-api file download\r\n specUrl: { type: String, attribute: 'spec-url' },\r\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n TableStyles,\r\n InputStyles,\r\n FontStyles,\r\n FlexStyles,\r\n BorderStyles,\r\n TabStyles,\r\n PrismStyles,\r\n PrismLanguagesStyles,\r\n css`\r\n *, *:before, *:after { box-sizing: border-box; }\r\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\r\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\r\n tag-input:focus-within { outline: 1px solid;}\r\n .read-mode {\r\n border-top: 1px solid #E7E9EE;\r\n margin-top: 24px;\r\n }\r\n\r\n .param-name {\r\n font-size: 14px;\r\n font-weight: normal;\r\n line-height: 20px;\r\n color: #545454; \r\n margin-block: 24px 4px;\r\n font-family: var(--font-regular);\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n }\r\n .param-name.deprecated { \r\n color: #DC5A41;\r\n }\r\n .param-type{\r\n line-height: 16px;\r\n color: #4A4A4A; \r\n font-family: var(--font-mono);\r\n font-size: var(--font-size-mono);\r\n }\r\n\r\n .param-type > span {\r\n margin-left: 8px;\r\n }\r\n\r\n .param-constraint{\r\n min-width:100px;\r\n }\r\n .param-constraint:empty{\r\n display:none;\r\n }\r\n\r\n .param-description {\r\n font-size: 13px;\r\n line-height: 18px;\r\n color: #4A4A4A;\r\n }\r\n\r\n .top-gap{margin-top:24px;}\r\n\r\n .textarea {\r\n min-height:220px; \r\n padding:5px;\r\n resize:vertical;\r\n direction: ltr;\r\n }\r\n .example:first-child {\r\n margin-top: -9px;\r\n }\r\n\r\n .response-message{\r\n font-weight:bold;\r\n text-overflow: ellipsis;\r\n }\r\n .response-message.error {\r\n color:var(--red);\r\n }\r\n .response-message.success {\r\n color:var(--blue);\r\n }\r\n\r\n .file-input-container {\r\n align-items:flex-end;\r\n }\r\n .file-input-container .input-set:first-child .file-input-remove-btn{\r\n visibility:hidden;\r\n }\r\n\r\n .file-input-remove-btn{\r\n font-size:16px;\r\n color:var(--red);\r\n outline: none;\r\n border: none;\r\n background:none;\r\n cursor:pointer;\r\n }\r\n\r\n .v-tab-btn {\r\n font-size: var(--smal-font-size);\r\n height:24px; \r\n border:none; \r\n background:none; \r\n opacity: 0.3;\r\n cursor: pointer;\r\n padding: 4px 8px;\r\n }\r\n .v-tab-btn.active {\r\n font-weight: bold;\r\n background: var(--bg);\r\n opacity: 1;\r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n .textarea {\r\n padding:8px;\r\n }\r\n }\r\n\r\n @media only screen and (max-width: 470px) {\r\n .hide-in-small-screen {\r\n display:none;\r\n }\r\n }\r\n `,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n render() {\r\n return html`\r\n
    \r\n
    \r\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('path'))}\r\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('query'))}\r\n ${this.requestBodyTemplate()}\r\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}\r\n ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}\r\n ${this.allowTry === 'false' ? '' : html`${this.apiCallTemplate()}`}\r\n
    \r\n
    \r\n ${languagePickerTemplate.call(this)}\r\n ${securitySchemeTemplate.call(this)}\r\n ${serverTemplate.call(this)}\r\n ${this.apiResponseTabTemplate()}\r\n
    \r\n
    \r\n `;\r\n }\r\n\r\n async updated() {\r\n if (this.showCurlBeforeTry === 'true') {\r\n updateCodeExample.call(this, this.shadowRoot);\r\n }\r\n\r\n // In focused mode after rendering the request component, update the text-areas(which contains examples) using\r\n // the original values from hidden textareas\r\n // This is done coz, user may update the dom by editing the textarea's and once the DOM is updated externally change detection wont happen, therefore update the values manually\r\n\r\n // if (this.renderStyle === 'focused') {\r\n // if (changedProperties.size === 1 && changedProperties.has('activeSchemaTab')) {\r\n // // dont update example as only tabs is switched\r\n // } else {\r\n // this.requestUpdate();\r\n // }\r\n // }\r\n\r\n if (this.webhook === 'true') {\r\n this.allowTry = 'false';\r\n }\r\n }\r\n\r\n async saveExampleState() {\r\n if (this.renderStyle === 'focused') {\r\n const reqBodyTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea.request-body-param-user-input')];\r\n reqBodyTextAreaEls.forEach((el) => {\r\n el.dataset.user_example = el.value;\r\n });\r\n const exampleTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea[data-ptype=\"form-data\"]')];\r\n exampleTextAreaEls.forEach((el) => {\r\n el.dataset.user_example = el.value;\r\n });\r\n this.requestUpdate();\r\n }\r\n }\r\n\r\n async updateExamplesFromDataAttr() {\r\n // In focused mode after rendering the request component, update the text-areas(which contains examples) using\r\n // the original values from hidden textareas\r\n // This is done coz, user may update the dom by editing the textarea's and once the DOM is updated externally change detection wont happen, therefore update the values manually\r\n if (this.renderStyle === 'focused') {\r\n const reqBodyTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea.request-body-param-user-input')];\r\n reqBodyTextAreaEls.forEach((el) => {\r\n el.value = el.dataset.user_example || el.dataset.example;\r\n });\r\n const exampleTextAreaEls = [...this.shadowRoot.querySelectorAll('textarea[data-ptype=\"form-data\"]')];\r\n exampleTextAreaEls.forEach((el) => {\r\n el.value = el.dataset.user_example || el.dataset.example;\r\n });\r\n this.requestUpdate();\r\n }\r\n }\r\n\r\n /* eslint-disable indent */\r\n renderExample(example, paramType, paramName) {\r\n return html`\r\n ${paramType === 'array' ? '[' : ''}\r\n {\r\n const inputEl = e.target.closest('.request-card').querySelector(`[data-pname=\"${paramName}\"]`);\r\n if (inputEl) {\r\n inputEl.value = e.target.dataset.exampleType === 'array' ? e.target.dataset.example.split('~|~') : e.target.dataset.example;\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }\r\n }}\"\r\n > ${example.printableValue || example.value} \r\n ${paramType === 'array' ? '] ' : ''}\r\n `;\r\n }\r\n\r\n renderShortFormatExamples(examples, paramType, paramName) {\r\n return html`${examples.map((x, i) => html`\r\n ${i === 0 ? '' : '┃'}\r\n ${this.renderExample(x, paramType, paramName)}`)}`;\r\n }\r\n\r\n renderLongFormatExamples(exampleList, paramType, paramName) {\r\n return html`
      \r\n ${exampleList.map((v) => html`\r\n
    • \r\n ${this.renderExample(v, paramType, paramName)}\r\n ${v.summary?.length > 0 ? html`(${v.summary})` : ''}\r\n ${v.description?.length > 0 ? html`

      ${unsafeHTML(marked(v.description))}

      ` : ''}\r\n
    • \r\n `)}\r\n
    `;\r\n }\r\n\r\n exampleListTemplate(paramName, paramType, exampleList = []) {\r\n return html` ${\r\n exampleList.length > 0\r\n ? html`Example: \r\n ${anyExampleWithSummaryOrDescription(exampleList)\r\n ? this.renderLongFormatExamples(exampleList, paramType, paramName)\r\n : this.renderShortFormatExamples(exampleList, paramType, paramName)}`\r\n : ''\r\n }`;\r\n }\r\n\r\n inputParametersTemplate(paramType) {\r\n const filteredParams = this.parameters ? this.parameters.filter((param) => param.in === paramType) : [];\r\n if (filteredParams.length === 0) {\r\n return '';\r\n }\r\n let title = '';\r\n if (paramType === 'path') {\r\n title = 'Path Params';\r\n } else if (paramType === 'query') {\r\n title = 'Query-String Params';\r\n } else if (paramType === 'header') {\r\n title = 'Headers';\r\n } else if (paramType === 'cookie') {\r\n title = 'Cookies';\r\n }\r\n\r\n const tableRows = [];\r\n for (const param of filteredParams) {\r\n const [declaredParamSchema, serializeStyle, mimeTypeElem] = getSchemaFromParam(param);\r\n if (!declaredParamSchema) {\r\n continue;\r\n }\r\n const paramSchema = getTypeInfo(declaredParamSchema);\r\n if (!paramSchema) {\r\n continue; // eslint-disable-line no-continue\r\n }\r\n const schemaAsObj = schemaInObjectNotation(declaredParamSchema, {});\r\n // let exampleVal = '';\r\n // let exampleList = [];\r\n let paramStyle = 'form';\r\n let paramExplode = true;\r\n let paramAllowReserved = false;\r\n if (paramType === 'query') {\r\n if (param.style && 'form spaceDelimited pipeDelimited'.includes(param.style)) {\r\n paramStyle = param.style;\r\n } else if (serializeStyle) {\r\n paramStyle = serializeStyle;\r\n }\r\n if (typeof param.explode === 'boolean') {\r\n paramExplode = param.explode;\r\n }\r\n if (typeof param.allowReserved === 'boolean') {\r\n paramAllowReserved = param.allowReserved;\r\n }\r\n }\r\n // openapi 3.1.0 spec based examples (which must be Object(string : { value:any, summary?: string, description?: string})\r\n const example = normalizeExamples(\r\n (param.examples\r\n || nestExampleIfPresent(param.example)\r\n || nestExampleIfPresent(mimeTypeElem?.example)\r\n || mimeTypeElem?.examples\r\n || nestExampleIfPresent(paramSchema.examples)\r\n || nestExampleIfPresent(paramSchema.example)\r\n ),\r\n paramSchema.type,\r\n );\r\n if (!example.exampleVal && paramSchema.type === 'object') {\r\n example.exampleVal = generateExample(\r\n declaredParamSchema,\r\n serializeStyle || 'json',\r\n '',\r\n '',\r\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\r\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\r\n true,\r\n 'text',\r\n false,\r\n )[0].exampleValue;\r\n }\r\n if (!this.resolvedSpec.securitySchemes.some((e) => e.name === param.name)) {\r\n tableRows.push(html`\r\n
    \r\n ${param.name}\r\n\r\n
    \r\n ${paramSchema.type === 'array'\r\n ? `${paramSchema.arrayType}`\r\n : `${paramSchema.format ? paramSchema.format : paramSchema.type}`\r\n }\r\n ${param.deprecated ? html`deprecated` : ''}\r\n ${param.required ? html`required` : ''}\r\n
    \r\n
    \r\n\r\n ${this.allowTry === 'true'\r\n ? html`\r\n ${paramSchema.type === 'array'\r\n ? html`\r\n \r\n `\r\n : paramSchema.type === 'object'\r\n ? html`\r\n
    \r\n
    {\r\n if (e.target.tagName.toLowerCase() === 'button') {\r\n const newState = { ...this.activeParameterSchemaTabs };\r\n newState[param.name] = e.target.dataset.tab;\r\n this.activeParameterSchemaTabs = newState;\r\n }\r\n }}\">\r\n \r\n \r\n
    \r\n ${this.activeParameterSchemaTabs[param.name] === 'example'\r\n ? html`
    \r\n \r\n
    `\r\n : html`\r\n
    \r\n \r\n
    `\r\n }\r\n
    `\r\n : html`\r\n {\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }}\r\n />`\r\n }`\r\n : ''\r\n }\r\n ${unsafeHTML(marked(param.description || ''))}\r\n ${this.exampleListTemplate.call(this, param.name, paramSchema.type, example.exampleList)}\r\n `);\r\n }\r\n }\r\n\r\n return html`\r\n
    \r\n
    \r\n
    ${title}
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n ${tableRows}\r\n
    \r\n
    \r\n
    `;\r\n }\r\n\r\n // This method is called before navigation change in focused mode\r\n async beforeNavigationFocusedMode() {\r\n // this.saveExampleState();\r\n }\r\n\r\n // This method is called after navigation change in focused mode\r\n async afterNavigationFocusedMode() {\r\n this.selectedRequestBodyType = '';\r\n this.selectedRequestBodyExample = '';\r\n this.updateExamplesFromDataAttr();\r\n this.clearResponseData();\r\n }\r\n\r\n // Request-Body Event Handlers\r\n onSelectExample(e) {\r\n this.selectedRequestBodyExample = e.target.value;\r\n const exampleDropdownEl = e.target;\r\n window.setTimeout((selectEl) => {\r\n const readOnlyExampleEl = selectEl.closest('.example-panel').querySelector('.request-body-param');\r\n const userInputExampleTextareaEl = selectEl.closest('.example-panel').querySelector('.request-body-param-user-input');\r\n userInputExampleTextareaEl.value = readOnlyExampleEl.innerText;\r\n\r\n const requestPanelEl = this.getRequestPanel({ target: selectEl });\r\n updateCodeExample.call(this, requestPanelEl);\r\n }, 0, exampleDropdownEl);\r\n }\r\n\r\n onMimeTypeChange(e) {\r\n this.selectedRequestBodyType = e.target.value;\r\n const mimeDropdownEl = e.target;\r\n this.selectedRequestBodyExample = '';\r\n window.setTimeout((selectEl) => {\r\n const readOnlyExampleEl = selectEl.closest('.request-body-container').querySelector('.request-body-param');\r\n if (readOnlyExampleEl) {\r\n const userInputExampleTextareaEl = selectEl.closest('.request-body-container').querySelector('.request-body-param-user-input');\r\n userInputExampleTextareaEl.value = readOnlyExampleEl.innerText;\r\n }\r\n }, 0, mimeDropdownEl);\r\n }\r\n\r\n requestBodyTemplate() {\r\n if (!this.request_body) {\r\n return '';\r\n }\r\n if (Object.keys(this.request_body).length === 0) {\r\n return '';\r\n }\r\n\r\n // Variable to store partial HTMLs\r\n let reqBodyTypeSelectorHtml = '';\r\n let reqBodyFileInputHtml = '';\r\n let reqBodyFormHtml = '';\r\n let reqBodySchemaHtml = '';\r\n let reqBodyExampleHtml = '';\r\n\r\n const requestBodyTypes = [];\r\n const { content } = this.request_body;\r\n for (const mimeType in content) {\r\n requestBodyTypes.push({\r\n mimeType,\r\n schema: content[mimeType].schema,\r\n example: content[mimeType].example,\r\n examples: content[mimeType].examples,\r\n });\r\n if (!this.selectedRequestBodyType) {\r\n this.selectedRequestBodyType = mimeType;\r\n }\r\n }\r\n // MIME Type selector\r\n reqBodyTypeSelectorHtml = requestBodyTypes.length === 1\r\n ? ''\r\n : html`\r\n \r\n `;\r\n\r\n // For Loop - Main\r\n requestBodyTypes.forEach((reqBody) => {\r\n let schemaAsObj;\r\n let reqBodyExamples = [];\r\n\r\n if (this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose')) {\r\n // Generate Example\r\n if (reqBody.mimeType === this.selectedRequestBodyType) {\r\n reqBodyExamples = generateExample(\r\n reqBody.schema,\r\n reqBody.mimeType,\r\n reqBody.examples,\r\n reqBody.example,\r\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\r\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\r\n 'text',\r\n false,\r\n );\r\n if (!this.selectedRequestBodyExample) {\r\n this.selectedRequestBodyExample = (reqBodyExamples.length > 0 ? reqBodyExamples[0].exampleId : '');\r\n }\r\n reqBodyExampleHtml = html`\r\n ${reqBodyExampleHtml}\r\n
    \r\n ${reqBodyExamples.length === 1\r\n ? ''\r\n : html`\r\n \r\n `\r\n }\r\n ${reqBodyExamples\r\n .filter((v) => v.exampleId === this.selectedRequestBodyExample)\r\n .map((v) => html`\r\n
    \r\n ${v.exampleSummary && v.exampleSummary.length > 80 ? html`
    ${v.exampleSummary}
    ` : ''}\r\n ${v.exampleDescription ? html`
    ${unsafeHTML(marked(v.exampleDescription || ''))}
    ` : ''}\r\n \r\n
    ${(v.exampleFormat === 'text' ? v.exampleValue : JSON.stringify(v.exampleValue, null, 2))}
    \r\n\r\n \r\n \r\n
    \r\n `)}\r\n\r\n
    \r\n `;\r\n }\r\n } else if (this.selectedRequestBodyType.includes('form-urlencoded') || this.selectedRequestBodyType.includes('form-data')) {\r\n if (reqBody.mimeType === this.selectedRequestBodyType) {\r\n const ex = generateExample(\r\n reqBody.schema,\r\n reqBody.mimeType,\r\n reqBody.examples,\r\n reqBody.example,\r\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\r\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\r\n 'text',\r\n false,\r\n );\r\n if (reqBody.schema) {\r\n reqBodyFormHtml = this.formDataTemplate(reqBody.schema, reqBody.mimeType, (ex[0] ? ex[0].exampleValue : ''));\r\n }\r\n }\r\n } else if ((/^audio\\/|^image\\/|^video\\/|^font\\/|tar$|zip$|7z$|rtf$|msword$|excel$|\\/pdf$|\\/octet-stream$/.test(this.selectedRequestBodyType))) {\r\n if (reqBody.mimeType === this.selectedRequestBodyType) {\r\n reqBodyFileInputHtml = html`\r\n
    \r\n \r\n
    \r\n `;\r\n }\r\n }\r\n\r\n // Generate Schema\r\n if (reqBody.mimeType.includes('json') || reqBody.mimeType.includes('xml') || reqBody.mimeType.includes('text') || this.selectedRequestBodyType.includes('jose')) {\r\n schemaAsObj = schemaInObjectNotation(reqBody.schema, {});\r\n if (this.schemaStyle === 'table') {\r\n reqBodySchemaHtml = html`\r\n ${reqBodySchemaHtml}\r\n \r\n `;\r\n } else if (this.schemaStyle === 'tree') {\r\n reqBodySchemaHtml = html`\r\n ${reqBodySchemaHtml}\r\n \r\n `;\r\n }\r\n }\r\n });\r\n\r\n return html`\r\n
    \r\n
    \r\n REQUEST BODY ${this.request_body.required ? html`*` : ''} \r\n ${this.selectedRequestBodyType}\r\n \r\n ${reqBodyTypeSelectorHtml}\r\n
    \r\n ${this.request_body.description ? html`
    ${unsafeHTML(marked(this.request_body.description))}
    ` : ''}\r\n \r\n ${(this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose'))\r\n ? html`\r\n
    \r\n
    { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}\">\r\n \r\n \r\n
    \r\n
    ${reqBodyExampleHtml}
    \r\n
    ${reqBodySchemaHtml}
    \r\n
    `\r\n : html` \r\n ${reqBodyFileInputHtml}\r\n ${reqBodyFormHtml}`\r\n }\r\n
    \r\n `;\r\n }\r\n\r\n formDataParamAsObjectTemplate(fieldName, fieldSchema, mimeType) {\r\n // This template is used when form-data param should be send as a object (application/json, application/xml)\r\n const formdataPartSchema = schemaInObjectNotation(fieldSchema, {});\r\n const formdataPartExample = generateExample(\r\n fieldSchema,\r\n 'json',\r\n fieldSchema.examples,\r\n fieldSchema.example,\r\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\r\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\r\n 'text',\r\n false,\r\n );\r\n\r\n return html`\r\n
    \r\n
    \r\n
    {\r\n if (e.target.classList.contains('v-tab-btn')) {\r\n const { tab } = e.target.dataset;\r\n if (tab) {\r\n const tabPanelEl = e.target.closest('.tab-panel');\r\n const selectedTabBtnEl = tabPanelEl.querySelector(`.v-tab-btn[data-tab=\"${tab}\"]`);\r\n const otherTabBtnEl = [...tabPanelEl.querySelectorAll(`.v-tab-btn:not([data-tab=\"${tab}\"])`)];\r\n const selectedTabContentEl = tabPanelEl.querySelector(`.tab-content[data-tab=\"${tab}\"]`);\r\n const otherTabContentEl = [...tabPanelEl.querySelectorAll(`.tab-content:not([data-tab=\"${tab}\"])`)];\r\n selectedTabBtnEl.classList.add('active');\r\n selectedTabContentEl.style.display = 'block';\r\n otherTabBtnEl.forEach((el) => { el.classList.remove('active'); });\r\n otherTabContentEl.forEach((el) => { el.style.display = 'none'; });\r\n }\r\n }\r\n if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; }\r\n }}\">\r\n \r\n \r\n
    \r\n
    \r\n ${html`\r\n
    \r\n \r\n
    `\r\n }\r\n ${html`\r\n
    \r\n \r\n
    `\r\n }\r\n
    \r\n `;\r\n }\r\n\r\n formDataTemplate(schema, mimeType, exampleValue = '') {\r\n const formDataTableRows = [];\r\n if (schema.properties) {\r\n for (const fieldName in schema.properties) {\r\n const fieldSchema = schema.properties[fieldName];\r\n if (fieldSchema.readOnly) {\r\n continue;\r\n }\r\n const fieldExamples = fieldSchema.examples || fieldSchema.example || '';\r\n const fieldType = fieldSchema.type;\r\n const paramSchema = getTypeInfo(fieldSchema);\r\n const labelColWidth = 'read focused'.includes(this.renderStyle) ? '200px' : '160px';\r\n const example = normalizeExamples((paramSchema.examples || paramSchema.example), paramSchema.type);\r\n formDataTableRows.push(html`\r\n \r\n \r\n
    \r\n ${fieldName}${(schema.required?.includes(fieldName) || fieldSchema.required) ? html`*` : ''}\r\n
    \r\n
    ${paramSchema.type}
    \r\n \r\n \r\n ${fieldType === 'array'\r\n ? fieldSchema.items?.format === 'binary'\r\n ? html`\r\n
    this.onAddRemoveFileInput(e, fieldName, mimeType)}\">\r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n `\r\n : html`\r\n \r\n \r\n `\r\n : html`\r\n ${fieldType === 'object'\r\n ? this.formDataParamAsObjectTemplate.call(this, fieldName, fieldSchema, mimeType)\r\n : html`\r\n ${this.allowTry === 'true'\r\n ? html` {\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }}\r\n />`\r\n : ''\r\n }\r\n `\r\n }`\r\n }\r\n \r\n ${fieldType === 'object'\r\n ? ''\r\n : html`\r\n \r\n ${paramSchema.default || paramSchema.constrain || paramSchema.allowedValues || paramSchema.pattern\r\n ? html`\r\n
    \r\n ${paramSchema.default ? html`Default: ${paramSchema.default}
    ` : ''}\r\n ${paramSchema.pattern ? html`Pattern: ${paramSchema.pattern}
    ` : ''}\r\n ${paramSchema.constrain ? html`${paramSchema.constrain}
    ` : ''}\r\n ${paramSchema.allowedValues && paramSchema.allowedValues.split('┃').map((v, i) => html`\r\n ${i > 0 ? '┃' : html`Allowed: `}\r\n ${html`\r\n {\r\n const inputEl = e.target.closest('div').querySelector(`[data-pname=\"${fieldName}\"]`);\r\n if (inputEl) {\r\n if (e.target.dataset.type === 'array') {\r\n inputEl.value = [e.target.dataset.enum];\r\n } else {\r\n inputEl.value = e.target.dataset.enum;\r\n }\r\n\r\n const requestPanelEl = this.getRequestPanel(e);\r\n updateCodeExample.call(this, requestPanelEl);\r\n }\r\n }}\"\r\n > \r\n ${v} \r\n `\r\n }`)\r\n }\r\n
    `\r\n : ''\r\n }\r\n `\r\n }\r\n \r\n ${fieldType === 'object'\r\n ? ''\r\n : html`\r\n \r\n \r\n \r\n ${unsafeHTML(marked(fieldSchema.description || ''))}\r\n ${this.exampleListTemplate.call(this, fieldName, paramSchema.type, example.exampleList)}\r\n \r\n \r\n `\r\n }`);\r\n }\r\n return html`\r\n \r\n ${formDataTableRows}\r\n
    \r\n `;\r\n }\r\n\r\n return html`\r\n \r\n ${schema.description ? html`${unsafeHTML(marked(schema.description))}` : ''}\r\n `;\r\n }\r\n\r\n codeExampleTemplate(display = 'flex') {\r\n return html`\r\n
    \r\n \r\n
    ${unsafeHTML(Prism.highlight(this.codeExample.trim().replace(/\\\\$/, ''), Prism.languages[this.selectedLanguage], this.selectedLanguage))}
    \r\n
    \r\n `;\r\n }\r\n\r\n apiResponseTabTemplate() {\r\n let responseFormat = '';\r\n let responseContent = '';\r\n if (!this.responseIsBlob) {\r\n if (this.responseHeaders.includes('application/x-ndjson')) {\r\n responseFormat = 'json';\r\n const prismLines = this.responseText.split('\\n').map((q) => Prism.highlight(q, Prism.languages[responseFormat], responseFormat)).join('\\n');\r\n responseContent = html`${unsafeHTML(prismLines)}`;\r\n } else if (this.responseHeaders.includes('json')) {\r\n responseFormat = 'json';\r\n responseContent = html`${unsafeHTML(Prism.highlight(this.responseText, Prism.languages[responseFormat], responseFormat))}`;\r\n } else if (this.responseHeaders.includes('html') || this.responseHeaders.includes('xml')) {\r\n responseFormat = 'html';\r\n responseContent = html`${unsafeHTML(Prism.highlight(this.responseText, Prism.languages[responseFormat], responseFormat))}`;\r\n } else {\r\n responseFormat = 'text';\r\n responseContent = html`${this.responseText}`;\r\n }\r\n }\r\n return html`\r\n \r\n \r\n
    \r\n ${this.codeExampleTemplate('flex')}\r\n
    \r\n ${this.responseMessage\r\n ? html`\r\n
    \r\n
    \r\n
    ${this.responseMessage}
    \r\n
    `\r\n : ''\r\n }\r\n ${this.responseIsBlob\r\n ? html`\r\n
    \r\n \r\n ${this.responseBlobType === 'view'\r\n ? html``\r\n : ''\r\n }\r\n
    `\r\n : html`\r\n ${this.responseText ? html`\r\n
    \r\n \r\n
    ${responseContent}
    \r\n
    `\r\n : ''\r\n }`\r\n }\r\n
    \r\n
    `;\r\n }\r\n\r\n apiCallTemplate() {\r\n let selectServerDropdownHtml = '';\r\n if (this.servers && this.servers.length > 0) {\r\n selectServerDropdownHtml = html`\r\n \r\n `;\r\n }\r\n const selectedServerHtml = html`\r\n
    \r\n ${selectServerDropdownHtml}\r\n ${this.serverUrl\r\n ? html`\r\n
    \r\n
    API Server
    \r\n ${this.serverUrl} \r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n `;\r\n\r\n if (!this.resultLoad) {\r\n this.updateComplete.then(() => {\r\n const el = this.renderRoot.host.shadowRoot.children[0];\r\n updateCodeExample.call(this, el.target ? el.target : el);\r\n });\r\n this.resultLoad = true;\r\n } else {\r\n const el = this.renderRoot.host.shadowRoot.children[0];\r\n updateCodeExample.call(this, el.target ? el.target : el);\r\n }\r\n\r\n return html`\r\n
    \r\n
    \r\n
    \r\n ${selectedServerHtml}\r\n
    \r\n
    \r\n
    Authentication
    \r\n ${this.security?.length > 0\r\n ? html`\r\n ${this.api_keys.length > 0\r\n ? html`
    \r\n ${this.api_keys.length === 1\r\n ? `${this.api_keys[0]?.typeDisplay} in ${this.api_keys[0].in}`\r\n : `${this.api_keys.length} API keys applied`\r\n } \r\n
    `\r\n : html`
    Required (None Applied)`\r\n }`\r\n : html` Not Required `\r\n }\r\n
    \r\n
    \r\n \r\n
    \r\n `;\r\n }\r\n /* eslint-enable indent */\r\n\r\n async onFillRequestData(e) {\r\n const requestPanelEl = e.target.closest('.request-panel');\r\n const requestPanelInputEls = [...requestPanelEl.querySelectorAll('input, tag-input, textarea:not(.is-hidden)')];\r\n requestPanelInputEls.forEach((el) => {\r\n if (el.dataset.example) {\r\n if (el.tagName.toUpperCase() === 'TAG-INPUT') {\r\n el.value = el.dataset.example.split('~|~');\r\n } else {\r\n el.value = el.dataset.example;\r\n }\r\n }\r\n });\r\n }\r\n\r\n async onClearRequestData(e) {\r\n const requestPanelEl = e.target.closest('.request-panel');\r\n const requestPanelInputEls = [...requestPanelEl.querySelectorAll('input, tag-input, textarea:not(.is-hidden)')];\r\n requestPanelInputEls.forEach((el) => { el.value = ''; });\r\n }\r\n\r\n async onTryClick(e) {\r\n const tryBtnEl = e.target ? e.target : e;\r\n\r\n const { fetchUrl, fetchOptions, reqHeaders, reqCookie } = updateCodeExample.call(this, tryBtnEl);\r\n const encodedUrl = `/api/proxy/${encodeURIComponent(fetchUrl)}`;\r\n\r\n this.responseUrl = '';\r\n this.responseHeaders = [];\r\n this.responseStatus = 'success';\r\n this.responseIsBlob = false;\r\n\r\n this.respContentDisposition = '';\r\n if (this.responseBlobUrl) {\r\n URL.revokeObjectURL(this.responseBlobUrl);\r\n this.responseBlobUrl = '';\r\n }\r\n if (this.fetchCredentials) {\r\n fetchOptions.credentials = this.fetchCredentials;\r\n }\r\n const controller = new AbortController();\r\n const { signal } = controller;\r\n fetchOptions.headers = reqHeaders;\r\n const tempRequest = { url: encodedUrl, ...fetchOptions };\r\n this.dispatchEvent(new CustomEvent('before-try', {\r\n bubbles: true,\r\n composed: true,\r\n detail: {\r\n request: tempRequest,\r\n controller,\r\n },\r\n }));\r\n const updatedFetchOptions = {\r\n method: tempRequest.method,\r\n headers: tempRequest.headers,\r\n credentials: tempRequest.credentials,\r\n body: tempRequest.body,\r\n };\r\n\r\n //fetch uses the cookies in the browser, so we add the needed cookies for the request\r\n reqCookie.forEach((cookie) => {\r\n document.cookie = `${cookie.name}=${cookie.value}; path=/`\r\n })\r\n\r\n const fetchRequest = new Request(tempRequest.url, updatedFetchOptions);\r\n let fetchResponse;\r\n let responseClone;\r\n try {\r\n let respBlob;\r\n let respJson;\r\n let respText;\r\n tryBtnEl.disabled = true;\r\n this.responseText = '';\r\n this.responseMessage = '';\r\n this.requestUpdate();\r\n const startTime = performance.now();\r\n fetchResponse = await fetch(fetchRequest, { signal });\r\n const endTime = performance.now();\r\n responseClone = fetchResponse.clone(); // create a response clone to allow reading response body again (response.json, response.text etc)\r\n tryBtnEl.disabled = false;\r\n this.responseMessage = html`${fetchResponse.statusText ? `${fetchResponse.statusText}:${fetchResponse.status}` : fetchResponse.status}
    Took ${Math.round(endTime - startTime)} milliseconds
    `;\r\n this.responseUrl = fetchResponse.url;\r\n const respHeadersObj = {};\r\n fetchResponse.headers.forEach((hdrVal, hdr) => {\r\n respHeadersObj[hdr] = hdrVal;\r\n this.responseHeaders = `${this.responseHeaders}${hdr}: ${hdrVal}\\n`;\r\n });\r\n const contentType = fetchResponse.headers.get('content-type');\r\n const respEmpty = (await fetchResponse.clone().text()).length === 0;\r\n if (respEmpty) {\r\n this.responseText = '';\r\n } else if (contentType) {\r\n if (contentType === 'application/x-ndjson') {\r\n this.responseText = await fetchResponse.text();\r\n } else if (contentType.includes('json')) {\r\n if ((/charset=[^\"']+/).test(contentType)) {\r\n const encoding = contentType.split('charset=')[1];\r\n const buffer = await fetchResponse.arrayBuffer();\r\n try {\r\n respText = new TextDecoder(encoding).decode(buffer);\r\n } catch {\r\n respText = new TextDecoder('utf-8').decode(buffer);\r\n }\r\n try {\r\n respJson = JSON.parse(respText);\r\n this.responseText = JSON.stringify(respJson, null, 2);\r\n } catch {\r\n this.responseText = respText;\r\n }\r\n } else {\r\n respJson = await fetchResponse.json();\r\n this.responseText = JSON.stringify(respJson, null, 2);\r\n }\r\n // eslint-disable-next-line no-useless-escape\r\n } else if (/^font\\/|tar$|zip$|7z$|rtf$|msword$|excel$|\\/pdf$|\\/octet-stream$|^application\\/vnd\\./.test(contentType)) {\r\n this.responseIsBlob = true;\r\n this.responseBlobType = 'download';\r\n } else if (/^audio|^image|^video/.test(contentType)) {\r\n this.responseIsBlob = true;\r\n this.responseBlobType = 'view';\r\n } else {\r\n respText = await fetchResponse.text();\r\n if (contentType.includes('xml')) {\r\n this.responseText = formatXml(respText, { textNodesOnSameLine: true, indentor: ' ' });\r\n } else {\r\n this.responseText = respText;\r\n }\r\n }\r\n if (this.responseIsBlob) {\r\n const contentDisposition = fetchResponse.headers.get('content-disposition');\r\n this.respContentDisposition = contentDisposition ? contentDisposition.split('filename=')[1].replace(/\"|'/g, '') : 'filename';\r\n respBlob = await fetchResponse.blob();\r\n this.responseBlobUrl = URL.createObjectURL(respBlob);\r\n }\r\n } else {\r\n respText = await fetchResponse.text();\r\n this.responseText = respText;\r\n }\r\n this.dispatchEvent(new CustomEvent('after-try', {\r\n bubbles: true,\r\n composed: true,\r\n detail: {\r\n request: fetchRequest,\r\n response: responseClone,\r\n responseHeaders: respHeadersObj,\r\n responseBody: respJson || respText || respBlob,\r\n responseStatus: responseClone.ok,\r\n },\r\n }));\r\n } catch (err) {\r\n tryBtnEl.disabled = false;\r\n if (err.name === 'AbortError') {\r\n this.dispatchEvent(new CustomEvent('request-aborted', {\r\n bubbles: true,\r\n composed: true,\r\n detail: {\r\n err,\r\n request: fetchRequest,\r\n },\r\n }));\r\n this.responseMessage = 'Request Aborted';\r\n this.responseText = 'Request Aborted';\r\n } else {\r\n this.dispatchEvent(new CustomEvent('after-try', {\r\n bubbles: true,\r\n composed: true,\r\n detail: {\r\n err,\r\n request: fetchRequest,\r\n },\r\n }));\r\n this.responseMessage = `${err.message} (CORS or Network Issue)`;\r\n }\r\n }\r\n this.requestUpdate();\r\n\r\n //now we remove the cookies added\r\n reqCookie.forEach((cookie) => {\r\n document.cookie = `${cookie.name}=; path=/`\r\n })\r\n }\r\n\r\n getRequestPanel(e) {\r\n return e.target.closest('.request-panel');\r\n }\r\n\r\n onAddRemoveFileInput(e, pname, ptype) {\r\n if (e.target.tagName.toLowerCase() !== 'button') {\r\n return;\r\n }\r\n\r\n if (e.target.classList.contains('file-input-remove-btn')) {\r\n // Remove File Input Set\r\n const el = e.target.closest('.input-set');\r\n el.remove();\r\n return;\r\n }\r\n const el = e.target.closest('.file-input-container');\r\n\r\n // Add File Input Set\r\n\r\n // Container\r\n const newInputContainerEl = document.createElement('div');\r\n newInputContainerEl.setAttribute('class', 'input-set row');\r\n\r\n // File Input\r\n const newInputEl = document.createElement('input');\r\n newInputEl.type = 'file';\r\n newInputEl.style = 'width:200px; margin-top:2px;';\r\n newInputEl.setAttribute('data-pname', pname);\r\n newInputEl.setAttribute('data-ptype', ptype.includes('form-urlencode') ? 'form-urlencode' : 'form-data');\r\n newInputEl.setAttribute('data-array', 'false');\r\n newInputEl.setAttribute('data-file-array', 'true');\r\n\r\n // Remover Button\r\n const newRemoveBtnEl = document.createElement('button');\r\n newRemoveBtnEl.setAttribute('class', 'file-input-remove-btn');\r\n newRemoveBtnEl.innerHTML = '✕';\r\n\r\n newInputContainerEl.appendChild(newInputEl);\r\n newInputContainerEl.appendChild(newRemoveBtnEl);\r\n el.insertBefore(newInputContainerEl, e.target);\r\n // el.appendChild(newInputContainerEl);\r\n }\r\n\r\n clearResponseData() {\r\n this.responseUrl = '';\r\n this.responseHeaders = '';\r\n this.responseText = '';\r\n this.responseStatus = 'success';\r\n this.responseMessage = '';\r\n this.responseIsBlob = false;\r\n this.responseBlobType = '';\r\n this.respContentDisposition = '';\r\n if (this.responseBlobUrl) {\r\n URL.revokeObjectURL(this.responseBlobUrl);\r\n this.responseBlobUrl = '';\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.codeExample = '';\r\n // Cleanup ObjectURL for the blob data if this component created one\r\n if (this.responseBlobUrl) {\r\n URL.revokeObjectURL(this.responseBlobUrl);\r\n this.responseBlobUrl = '';\r\n }\r\n super.disconnectedCallback();\r\n }\r\n}\r\n\r\n// Register the element with the browser\r\nif (!customElements.get('api-request')) customElements.define('api-request', ApiRequest);\r\n","// Takes a value as input and provides a printable string to replresent null values, spaces, blankstring etc\r\nexport function getPrintableVal(val) {\r\n if (val === undefined) {\r\n return '';\r\n }\r\n if (val === null) {\r\n return 'null';\r\n }\r\n if (val === '') {\r\n return '∅';\r\n }\r\n if (typeof val === 'boolean' || typeof val === 'number') {\r\n return `${val}`;\r\n }\r\n if (Array.isArray(val)) {\r\n return val.map((v) => (v === null ? 'null' : v === '' ? '∅' : v.toString().replace(/^ +| +$/g, (m) => '●'.repeat(m.length)) || '')).join(', ');\r\n }\r\n if (typeof val === 'object') {\r\n const keys = Object.keys(val);\r\n return `{ ${keys[0]}:${val[keys[0]]}${keys.length > 1 ? ',' : ''} ... }`;\r\n }\r\n return val.toString().replace(/^ +| +$/g, (m) => '●'.repeat(m.length)) || '';\r\n}\r\n\r\n/* Generates an schema object containing type and constraint info */\r\nexport function getTypeInfo(schema) {\r\n if (!schema) {\r\n return;\r\n }\r\n let dataType = '';\r\n let constrain = '';\r\n // let examples;\r\n\r\n if (schema.$ref) {\r\n const n = schema.$ref.lastIndexOf('/');\r\n const schemaNode = schema.$ref.substring(n + 1);\r\n dataType = `{recursive: ${schemaNode}} `;\r\n } else if (schema.type) {\r\n dataType = Array.isArray(schema.type) ? schema.type.join(schema.length === 2 ? ' or ' : '┃') : schema.type;\r\n if (schema.format || schema.enum || schema.const) {\r\n dataType = dataType.replace('string', schema.enum ? 'enum' : schema.const ? 'const' : schema.format);\r\n }\r\n if (schema.nullable) {\r\n dataType += '┃null';\r\n }\r\n } else if (schema.const) {\r\n dataType = 'const';\r\n } else if (Object.keys(schema).length === 0) {\r\n dataType = 'any';\r\n } else {\r\n dataType = '{missing-type-info}';\r\n }\r\n\r\n const info = {\r\n type: dataType,\r\n format: schema.format || '',\r\n pattern: (schema.pattern && !schema.enum) ? schema.pattern : '',\r\n readOrWriteOnly: (schema.readOnly ? '🆁' : schema.writeOnly ? '🆆' : ''),\r\n deprecated: schema.deprecated ? '❌' : '',\r\n examples: schema.examples || schema.example,\r\n default: getPrintableVal(schema.default),\r\n description: schema.description || '',\r\n constrain: '',\r\n allowedValues: '',\r\n arrayType: '',\r\n html: '',\r\n };\r\n\r\n if (info.type === '{recursive}') {\r\n info.description = schema.$ref.substring(schema.$ref.lastIndexOf('/') + 1);\r\n } else if (info.type === '{missing-type-info}' || info.type === 'any') {\r\n info.description = info.description || '';\r\n }\r\n // Set Allowed Values\r\n info.allowedValues = schema.const\r\n ? schema.const\r\n : Array.isArray(schema.enum)\r\n ? schema.enum.map((v) => (getPrintableVal(v))).join('┃')\r\n : '';\r\n\r\n if (dataType === 'array' && schema.items) {\r\n const arrayItemType = schema.items?.type;\r\n const arrayItemDefault = getPrintableVal(schema.items.default);\r\n\r\n info.arrayType = `${schema.type} of ${Array.isArray(arrayItemType) ? arrayItemType.join('') : arrayItemType}`;\r\n info.default = arrayItemDefault;\r\n info.allowedValues = schema.items.const\r\n ? schema.const\r\n : Array.isArray(schema.items?.enum)\r\n ? schema.items.enum.map((v) => (getPrintableVal(v))).join('┃')\r\n : '';\r\n }\r\n if (dataType.match(/integer|number/g)) {\r\n if (schema.minimum !== undefined || schema.exclusiveMinimum !== undefined) {\r\n constrain += schema.minimum !== undefined ? `Min ${schema.minimum}` : `More than ${schema.exclusiveMinimum}`;\r\n }\r\n if (schema.maximum !== undefined || schema.exclusiveMaximum !== undefined) {\r\n constrain += schema.maximum !== undefined ? `${constrain ? '┃' : ''}Max ${schema.maximum}` : `${constrain ? '┃' : ''}Less than ${schema.exclusiveMaximum}`;\r\n }\r\n if (schema.multipleOf !== undefined) {\r\n constrain += `${constrain ? '┃' : ''} multiple of ${schema.multipleOf}`;\r\n }\r\n }\r\n if (dataType.match(/string/g)) {\r\n if (schema.minLength !== undefined && schema.maxLength !== undefined) {\r\n constrain += `${constrain ? '┃' : ''}${schema.minLength} to ${schema.maxLength} chars`;\r\n } else if (schema.minLength !== undefined) {\r\n constrain += `${constrain ? '┃' : ''}Min ${schema.minLength} chars`;\r\n } else if (schema.maxLength !== undefined) {\r\n constrain += `Max ${constrain ? '┃' : ''}${schema.maxLength} chars`;\r\n }\r\n }\r\n info.constrain = constrain;\r\n info.html = `${info.type}~|~${info.readOrWriteOnly}~|~${info.constrain}~|~${info.default}~|~${info.allowedValues}~|~${info.pattern}~|~${info.description}~|~${schema.title || ''}~|~${info.deprecated ? 'deprecated' : ''}`;\r\n return info;\r\n}\r\n\r\nexport function nestExampleIfPresent(example) {\r\n if (typeof example === 'boolean' || typeof example === 'number') {\r\n return {\r\n Example: { value: `${example}` },\r\n };\r\n }\r\n if (example === '') {\r\n return {\r\n Example: { value: '' },\r\n };\r\n }\r\n return example ? { Example: { value: example } } : example;\r\n}\r\n\r\n/**\r\n * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes)\r\n * [{\r\n * exampleVal : 'value to be rendered on the input control (text-box)',\r\n * exampleList : [\r\n * value : '',\r\n * printableValue: '',\r\n * summary : '',\r\n * description : ''\r\n * ]\r\n * }]\r\n * */\r\nexport function normalizeExamples(examples, dataType = 'string') {\r\n if (!examples) {\r\n return {\r\n exampleVal: '',\r\n exampleList: [],\r\n };\r\n }\r\n if (examples.constructor === Object) {\r\n const exampleList = Object.values(examples)\r\n .filter((v) => (v['x-example-show-value'] !== false))\r\n .map((v) => ({\r\n value: (typeof v.value === 'boolean' || typeof v.value === 'number' ? `${v.value}` : (v.value || '')),\r\n printableValue: getPrintableVal(v.value),\r\n summary: v.summary || '',\r\n description: v.description || '',\r\n }));\r\n const exampleVal = exampleList.length > 0\r\n ? exampleList[0].value\r\n : '';\r\n return { exampleVal, exampleList };\r\n }\r\n\r\n // This is non-standard way to provide example but will support for now\r\n if (!Array.isArray(examples)) {\r\n examples = examples ? [examples] : [];\r\n }\r\n\r\n if (examples.length === 0) {\r\n return {\r\n exampleVal: '',\r\n exampleList: [],\r\n };\r\n }\r\n\r\n if (dataType === 'array') {\r\n const [exampleVal] = examples;\r\n const exampleList = examples.map((v) => ({\r\n value: v,\r\n printableValue: getPrintableVal(v),\r\n }));\r\n return { exampleVal, exampleList };\r\n }\r\n\r\n const exampleVal = examples[0].toString();\r\n const exampleList = examples.map((v) => ({\r\n value: v.toString(),\r\n printableValue: getPrintableVal(v),\r\n }));\r\n return { exampleVal, exampleList };\r\n}\r\n\r\nexport function anyExampleWithSummaryOrDescription(examples) {\r\n return examples.some((x) => x.summary?.length > 0 || x.description?.length > 0);\r\n}\r\n\r\nexport function getSampleValueByType(schemaObj) {\r\n const example = schemaObj.examples\r\n ? schemaObj.examples[0]\r\n : schemaObj.example === null\r\n ? null\r\n : schemaObj.example || undefined;\r\n if (example === '') { return ''; }\r\n if (example === null) { return null; }\r\n if (example === 0) { return 0; }\r\n if (example === false) { return false; }\r\n if (example instanceof Date) {\r\n switch (schemaObj.format.toLowerCase()) {\r\n case 'date':\r\n return example.toISOString().split('T')[0];\r\n case 'time':\r\n return example.toISOString().split('T')[1];\r\n default:\r\n return example.toISOString();\r\n }\r\n }\r\n if (example) { return example; }\r\n\r\n if (Object.keys(schemaObj).length === 0) {\r\n return null;\r\n }\r\n if (schemaObj.$ref) {\r\n // Indicates a Circular ref\r\n return schemaObj.$ref;\r\n }\r\n if (schemaObj.const === false || schemaObj.const === 0 || schemaObj.const === null || schemaObj.const === '') {\r\n return schemaObj.const;\r\n }\r\n if (schemaObj.const) {\r\n return schemaObj.const;\r\n }\r\n const typeValue = Array.isArray(schemaObj.type) ? schemaObj.type[0] : schemaObj.type;\r\n if (!typeValue) {\r\n return '?';\r\n }\r\n if (typeValue.match(/^integer|^number/g)) {\r\n const multipleOf = Number.isNaN(Number(schemaObj.multipleOf)) ? undefined : Number(schemaObj.multipleOf);\r\n const maximum = Number.isNaN(Number(schemaObj.maximum)) ? undefined : Number(schemaObj.maximum);\r\n const minimumPossibleVal = Number.isNaN(Number(schemaObj.minimum))\r\n ? Number.isNaN(Number(schemaObj.exclusiveMinimum))\r\n ? maximum || 0\r\n : Number(schemaObj.exclusiveMinimum) + (typeValue.startsWith('integer') ? 1 : 0.001)\r\n : Number(schemaObj.minimum);\r\n const finalVal = multipleOf\r\n ? multipleOf >= minimumPossibleVal\r\n ? multipleOf\r\n : minimumPossibleVal % multipleOf === 0\r\n ? minimumPossibleVal\r\n : Math.ceil(minimumPossibleVal / multipleOf) * multipleOf\r\n : minimumPossibleVal;\r\n return finalVal;\r\n }\r\n if (typeValue.match(/^boolean/g)) { return false; }\r\n if (typeValue.match(/^null/g)) { return null; }\r\n if (typeValue.match(/^string/g)) {\r\n if (schemaObj.enum) { return schemaObj.enum[0]; }\r\n if (schemaObj.const) { return schemaObj.const; }\r\n if (schemaObj.pattern) { return schemaObj.pattern; }\r\n if (schemaObj.format) {\r\n const u = `${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);\r\n switch (schemaObj.format.toLowerCase()) {\r\n case 'url':\r\n case 'uri':\r\n return 'http://example.com';\r\n case 'date':\r\n return (new Date(0)).toISOString().split('T')[0];\r\n case 'time':\r\n return (new Date(0)).toISOString().split('T')[1];\r\n case 'date-time':\r\n return (new Date(0)).toISOString();\r\n case 'duration':\r\n return 'P3Y6M4DT12H30M5S'; // P=Period 3-Years 6-Months 4-Days 12-Hours 30-Minutes 5-Seconds\r\n case 'email':\r\n case 'idn-email':\r\n return 'user@example.com';\r\n case 'hostname':\r\n case 'idn-hostname':\r\n return 'www.example.com';\r\n case 'ipv4':\r\n return '198.51.100.42';\r\n case 'ipv6':\r\n return '2001:0db8:5b96:0000:0000:426f:8e17:642a';\r\n case 'uuid':\r\n return [u.substr(0, 8), u.substr(8, 4), `4000-8${u.substr(13, 3)}`, u.substr(16, 12)].join('-');\r\n default:\r\n return '';\r\n }\r\n } else {\r\n const minLength = Number.isNaN(schemaObj.minLength) ? undefined : Number(schemaObj.minLength);\r\n const maxLength = Number.isNaN(schemaObj.maxLength) ? undefined : Number(schemaObj.maxLength);\r\n const finalLength = minLength || (maxLength > 6 ? 6 : maxLength || undefined);\r\n return finalLength ? 'A'.repeat(finalLength) : 'string';\r\n }\r\n }\r\n // If type cannot be determined\r\n return '?';\r\n}\r\n\r\n/*\r\njson2xml- TestCase\r\n {\r\n 'prop1' : 'one',\r\n 'prop2' : 'two',\r\n 'prop3' : [ 'a', 'b', 'c' ],\r\n 'prop4' : {\r\n 'ob1' : 'val-1',\r\n 'ob2' : 'val-2'\r\n }\r\n }\r\n \r\n simple\r\n \r\n <0>a\r\n <1>b\r\n <2>c\r\n \r\n \r\n val-1\r\n val-2\r\n \r\n \r\n*/\r\nexport function json2xml(obj, level = 1) {\r\n const indent = ' '.repeat(level);\r\n let xmlText = '';\r\n if (level === 1 && typeof obj !== 'object') {\r\n return `\\n${indent}${obj.toString()}`;\r\n }\r\n for (const prop in obj) {\r\n const tagNameOrProp = (obj[prop]['::XML_TAG'] || prop);\r\n let tagName = '';\r\n if (Array.isArray(obj[prop])) {\r\n tagName = tagNameOrProp[0]['::XML_TAG'] || `${prop}`;\r\n } else {\r\n tagName = tagNameOrProp;\r\n }\r\n if (prop.startsWith('::')) {\r\n continue;\r\n }\r\n if (Array.isArray(obj[prop])) {\r\n xmlText = `${xmlText}\\n${indent}<${tagName}>${json2xml(obj[prop], level + 1)}\\n${indent}`;\r\n } else if (typeof obj[prop] === 'object') {\r\n xmlText = `${xmlText}\\n${indent}<${tagName}>${json2xml(obj[prop], level + 1)}\\n${indent}`;\r\n } else {\r\n xmlText = `${xmlText}\\n${indent}<${tagName}>${obj[prop].toString()}`;\r\n }\r\n }\r\n return xmlText;\r\n}\r\n\r\nfunction addSchemaInfoToExample(schema, obj) {\r\n if (typeof obj !== 'object' || obj === null) {\r\n return;\r\n }\r\n if (schema.title) {\r\n obj['::TITLE'] = schema.title;\r\n }\r\n if (schema.description) {\r\n obj['::DESCRIPTION'] = schema.description;\r\n }\r\n if (schema.xml?.name) {\r\n obj['::XML_TAG'] = schema.xml?.name;\r\n }\r\n if (schema.xml?.wrapped) {\r\n obj['::XML_WRAP'] = schema.xml?.wrapped.toString();\r\n }\r\n}\r\n\r\nfunction removeTitlesAndDescriptions(obj) {\r\n if (typeof obj !== 'object' || obj === null) {\r\n return;\r\n }\r\n delete obj['::TITLE'];\r\n delete obj['::DESCRIPTION'];\r\n delete obj['::XML_TAG'];\r\n delete obj['::XML_WRAP'];\r\n for (const k in obj) {\r\n removeTitlesAndDescriptions(obj[k]);\r\n }\r\n}\r\n\r\nfunction addPropertyExampleToObjectExamples(example, obj, propertyKey) {\r\n for (const key in obj) {\r\n obj[key][propertyKey] = example;\r\n }\r\n}\r\n\r\nfunction mergePropertyExamples(obj, propertyName, propExamples) {\r\n // Create an example for each variant of the propertyExample, merging them with the current (parent) example\r\n let i = 0;\r\n const maxCombinations = 10;\r\n const mergedObj = {};\r\n for (const exampleKey in obj) {\r\n for (const propExampleKey in propExamples) {\r\n mergedObj[`example-${i}`] = { ...obj[exampleKey] };\r\n mergedObj[`example-${i}`][propertyName] = propExamples[propExampleKey];\r\n i++;\r\n if (i >= maxCombinations) {\r\n break;\r\n }\r\n }\r\n if (i >= maxCombinations) {\r\n break;\r\n }\r\n }\r\n return mergedObj;\r\n}\r\n\r\n/* For changing JSON-Schema to a Sample Object, as per the schema (to generate examples based on schema) */\r\nexport function schemaToSampleObj(schema, config = { }) {\r\n let obj = {};\r\n if (!schema) {\r\n return;\r\n }\r\n if (schema.allOf) {\r\n const objWithAllProps = {};\r\n\r\n if (schema.allOf.length === 1 && !schema.allOf[0]?.properties && !schema.allOf[0]?.items) {\r\n // If allOf has single item and the type is not an object or array, then its a primitive\r\n if (schema.allOf[0].$ref) {\r\n return '{ }';\r\n }\r\n if (schema.allOf[0].readOnly && config.includeReadOnly) {\r\n const tempSchema = schema.allOf[0];\r\n return getSampleValueByType(tempSchema);\r\n }\r\n return;\r\n }\r\n\r\n schema.allOf.forEach((v) => {\r\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\r\n const partialObj = schemaToSampleObj(v, config);\r\n Object.assign(objWithAllProps, partialObj);\r\n } else if (v.type === 'array' || v.items) {\r\n const partialObj = [schemaToSampleObj(v, config)];\r\n Object.assign(objWithAllProps, partialObj);\r\n } else if (v.type) {\r\n const prop = `prop${Object.keys(objWithAllProps).length}`;\r\n objWithAllProps[prop] = getSampleValueByType(v);\r\n } else {\r\n return '';\r\n }\r\n });\r\n\r\n obj = objWithAllProps;\r\n } else if (schema.oneOf) {\r\n // 1. First create example with scheme.properties\r\n const objWithSchemaProps = {};\r\n if (schema.properties) {\r\n for (const propertyName in schema.properties) {\r\n if (schema.properties[propertyName].properties || schema.properties[propertyName].properties?.items) {\r\n objWithSchemaProps[propertyName] = schemaToSampleObj(schema.properties[propertyName], config);\r\n } else {\r\n objWithSchemaProps[propertyName] = getSampleValueByType(schema.properties[propertyName]);\r\n }\r\n }\r\n }\r\n\r\n if (schema.oneOf.length > 0) {\r\n /*\r\n oneOf:\r\n - type: object\r\n properties:\r\n option1_PropA:\r\n type: string\r\n option1_PropB:\r\n type: string\r\n - type: object\r\n properties:\r\n option2_PropX:\r\n type: string\r\n properties:\r\n prop1:\r\n type: string\r\n prop2:\r\n type: string\r\n minLength: 10\r\n\r\n The aboove Schem should generate the following 2 examples\r\n\r\n Example-1\r\n {\r\n prop1: 'string',\r\n prop2: 'AAAAAAAAAA', <-- min-length 10\r\n option1_PropA: 'string',\r\n option1_PropB: 'string'\r\n }\r\n\r\n Example-2\r\n {\r\n prop1: 'string',\r\n prop2: 'AAAAAAAAAA', <-- min-length 10\r\n option2_PropX: 'string'\r\n }\r\n */\r\n let i = 0;\r\n // Merge all examples of each oneOf-schema\r\n for (const key in schema.oneOf) {\r\n const oneOfSamples = schemaToSampleObj(schema.oneOf[key], config);\r\n for (const sampleKey in oneOfSamples) {\r\n // 2. In the final example include a one-of item along with properties\r\n let finalExample;\r\n if (Object.keys(objWithSchemaProps).length > 0) {\r\n if (oneOfSamples[sampleKey] === null || typeof oneOfSamples[sampleKey] !== 'object') {\r\n // This doesn't really make sense since every oneOf schema _should_ be an object if there are common properties, so we'll skip this\r\n continue;\r\n } else {\r\n finalExample = Object.assign(oneOfSamples[sampleKey], objWithSchemaProps);\r\n }\r\n } else {\r\n finalExample = oneOfSamples[sampleKey];\r\n }\r\n obj[`example-${i}`] = finalExample;\r\n addSchemaInfoToExample(schema.oneOf[key], obj[`example-${i}`]);\r\n i++;\r\n }\r\n }\r\n }\r\n } else if (schema.anyOf) {\r\n // First generate values for regular properties\r\n let commonObj;\r\n if (schema.type === 'object' || schema.properties) {\r\n commonObj = { 'example-0': {} };\r\n for (const propertyName in schema.properties) {\r\n if (schema.example) {\r\n commonObj = schema;\r\n break;\r\n }\r\n if (schema.properties[propertyName].deprecated && !config.includeDeprecated) { continue; }\r\n if (schema.properties[propertyName].readOnly && !config.includeReadOnly) { continue; }\r\n if (schema.properties[propertyName].writeOnly && !config.includeWriteOnly) { continue; }\r\n commonObj = mergePropertyExamples(commonObj, propertyName, schemaToSampleObj(schema.properties[propertyName], config));\r\n }\r\n }\r\n\r\n // Combine every variant of the regular properties with every variant of the anyOf samples\r\n let i = 0;\r\n for (const key in schema.anyOf) {\r\n const anyOfSamples = schemaToSampleObj(schema.anyOf[key], config);\r\n for (const sampleKey in anyOfSamples) {\r\n if (typeof commonObj !== 'undefined') {\r\n for (const commonKey in commonObj) {\r\n obj[`example-${i}`] = { ...commonObj[commonKey], ...anyOfSamples[sampleKey] };\r\n }\r\n } else {\r\n obj[`example-${i}`] = anyOfSamples[sampleKey];\r\n }\r\n addSchemaInfoToExample(schema.anyOf[key], obj[`example-${i}`]);\r\n i++;\r\n }\r\n }\r\n } else if (schema.type === 'object' || schema.properties) {\r\n obj['example-0'] = {};\r\n addSchemaInfoToExample(schema, obj['example-0']);\r\n if (schema.example) {\r\n obj['example-0'] = schema.example;\r\n } else {\r\n for (const propertyName in schema.properties) {\r\n if (schema.properties[propertyName]?.deprecated && !config.includeDeprecated) { continue; }\r\n if (schema.properties[propertyName]?.readOnly && !config.includeReadOnly) { continue; }\r\n if (schema.properties[propertyName]?.writeOnly && !config.includeWriteOnly) { continue; }\r\n if (schema.properties[propertyName]?.type === 'array' || schema.properties[propertyName]?.items) {\r\n if (schema.properties[propertyName].example) {\r\n addPropertyExampleToObjectExamples(schema.properties[propertyName].example, obj, propertyName);\r\n } else if (schema.properties[propertyName]?.items?.example) { // schemas and properties support single example but not multiple examples.\r\n addPropertyExampleToObjectExamples([schema.properties[propertyName].items.example], obj, propertyName);\r\n } else {\r\n const itemSamples = schemaToSampleObj(schema.properties[propertyName].items, config);\r\n if (config.useXmlTagForProp) {\r\n const xmlTagName = schema.properties[propertyName].xml?.name || propertyName;\r\n if (schema.properties[propertyName].xml?.wrapped) {\r\n const wrappedItemSample = JSON.parse(`{ \"${xmlTagName}\" : { \"${xmlTagName}\" : ${JSON.stringify(itemSamples['example-0'])} } }`);\r\n obj = mergePropertyExamples(obj, xmlTagName, wrappedItemSample);\r\n } else {\r\n obj = mergePropertyExamples(obj, xmlTagName, itemSamples);\r\n }\r\n } else {\r\n const arraySamples = [];\r\n for (const key in itemSamples) {\r\n arraySamples[key] = [itemSamples[key]];\r\n }\r\n obj = mergePropertyExamples(obj, propertyName, arraySamples);\r\n }\r\n }\r\n continue;\r\n }\r\n obj = mergePropertyExamples(obj, propertyName, schemaToSampleObj(schema.properties[propertyName], config));\r\n }\r\n }\r\n } else if (schema.type === 'array' || schema.items) {\r\n if (schema.items || schema.example) {\r\n if (schema.example) {\r\n obj['example-0'] = schema.example;\r\n } else if (schema.items?.example) { // schemas and properties support single example but not multiple examples.\r\n obj['example-0'] = [schema.items.example];\r\n } else {\r\n const samples = schemaToSampleObj(schema.items, config);\r\n let i = 0;\r\n for (const key in samples) {\r\n obj[`example-${i}`] = [samples[key]];\r\n addSchemaInfoToExample(schema.items, obj[`example-${i}`]);\r\n i++;\r\n }\r\n }\r\n } else {\r\n obj['example-0'] = [];\r\n }\r\n } else {\r\n return { 'example-0': getSampleValueByType(schema) };\r\n }\r\n return obj;\r\n}\r\n\r\nfunction generateMarkdownForArrayAndObjectDescription(schema, level = 0) {\r\n let markdown = ((schema.description || schema.title) && (schema.minItems || schema.maxItems)) ? '' : '';\r\n if (schema.title) {\r\n if (schema.description) {\r\n markdown = `${markdown} ${schema.description}
    `;\r\n } else {\r\n markdown = `${markdown} ${schema.title}
    `;\r\n }\r\n } else if (schema.description) {\r\n markdown = `${markdown} ${schema.description}
    `;\r\n }\r\n if (schema.minItems) {\r\n markdown = `${markdown} Min Items: ${schema.minItems}`;\r\n }\r\n if (schema.maxItems) {\r\n markdown = `${markdown} Max Items: ${schema.maxItems}`;\r\n }\r\n if (level > 0 && schema.items?.description) {\r\n let itemsMarkdown = '';\r\n if (schema.items.minProperties) {\r\n itemsMarkdown = `Min Properties: ${schema.items.minProperties}`;\r\n }\r\n if (schema.items.maxProperties) {\r\n itemsMarkdown = `${itemsMarkdown} Max Properties: ${schema.items.maxProperties}`;\r\n }\r\n markdown = `${markdown} ⮕ ${itemsMarkdown} [ ${schema.items.description} ] `;\r\n }\r\n return markdown;\r\n}\r\n/**\r\n * For changing OpenAPI-Schema to an Object Notation,\r\n * This Object would further be an input to UI Components to generate an Object-Tree\r\n * @param {object} schema - Schema object from OpenAPI spec\r\n * @param {object} obj - recursivly pass this object to generate object notation\r\n * @param {number} level - recursion level\r\n * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion\r\n */\r\nexport function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {\r\n if (!schema) {\r\n return;\r\n }\r\n if (schema.allOf) {\r\n const objWithAllProps = {};\r\n if (schema.allOf.length === 1 && !schema.allOf[0].properties && !schema.allOf[0].items) {\r\n // If allOf has single item and the type is not an object or array, then its a primitive\r\n const tempSchema = schema.allOf[0];\r\n return `${getTypeInfo(tempSchema).html}`;\r\n }\r\n // If allOf is an array of multiple elements, then all the keys makes a single object\r\n schema.allOf.map((v, i) => {\r\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\r\n const propSuffix = (v.anyOf || v.oneOf) && i > 0 ? i : '';\r\n const partialObj = schemaInObjectNotation(v, {}, (level + 1), propSuffix);\r\n Object.assign(objWithAllProps, partialObj);\r\n } else if (v.type === 'array' || v.items) {\r\n const partialObj = schemaInObjectNotation(v, {}, (level + 1));\r\n Object.assign(objWithAllProps, partialObj);\r\n } else if (v.type) {\r\n const prop = `prop${Object.keys(objWithAllProps).length}`;\r\n const typeObj = getTypeInfo(v);\r\n objWithAllProps[prop] = `${typeObj.html}`;\r\n } else {\r\n return '';\r\n }\r\n });\r\n obj = objWithAllProps;\r\n }\r\n if (schema.anyOf || schema.oneOf) {\r\n obj['::description'] = schema.description || '';\r\n // 1. First iterate the regular properties\r\n if (schema.type === 'object' || schema.properties) {\r\n obj['::description'] = schema.description || '';\r\n obj['::type'] = 'object';\r\n // obj['::deprecated'] = schema.deprecated || false;\r\n for (const key in schema.properties) {\r\n if (schema.required && schema.required.includes(key)) {\r\n obj[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n } else {\r\n obj[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n }\r\n }\r\n }\r\n // 2. Then show allof/anyof objects\r\n const objWithAnyOfProps = {};\r\n const xxxOf = schema.anyOf ? 'anyOf' : 'oneOf';\r\n schema[xxxOf].forEach((v, index) => {\r\n if (v.type === 'object' || v.properties || v.allOf || v.anyOf || v.oneOf) {\r\n const partialObj = schemaInObjectNotation(v, {});\r\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`] = partialObj;\r\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`]['::readwrite'] = ''; // xxx-options cannot be read or write only\r\n objWithAnyOfProps['::type'] = 'xxx-of-option';\r\n } else if (v.type === 'array' || v.items) {\r\n // This else-if block never seems to get executed\r\n const partialObj = schemaInObjectNotation(v, {});\r\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`] = partialObj;\r\n objWithAnyOfProps[`::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`]['::readwrite'] = ''; // xxx-options cannot be read or write only\r\n objWithAnyOfProps['::type'] = 'xxx-of-array';\r\n } else {\r\n const prop = `::OPTION~${index + 1}${v.title ? `~${v.title}` : ''}`;\r\n objWithAnyOfProps[prop] = `${getTypeInfo(v).html}`;\r\n objWithAnyOfProps['::type'] = 'xxx-of-option';\r\n }\r\n });\r\n obj[(schema.anyOf ? `::ANY~OF ${suffix}` : `::ONE~OF ${suffix}`)] = objWithAnyOfProps;\r\n // obj['::type'] = 'object';\r\n obj['::type'] = 'object';\r\n } else if (Array.isArray(schema.type)) {\r\n // When a property has multiple types, then check further if any of the types are array or object, if yes then modify the schema using one-of\r\n // Clone the schema - as it will be modified to replace multi-data-types with one-of;\r\n const subSchema = JSON.parse(JSON.stringify(schema));\r\n const primitiveType = [];\r\n const complexTypes = [];\r\n subSchema.type.forEach((v) => {\r\n if (v.match(/integer|number|string|null|boolean/g)) {\r\n primitiveType.push(v);\r\n } else if (v === 'array' && typeof subSchema.items?.type === 'string' && subSchema.items?.type.match(/integer|number|string|null|boolean/g)) {\r\n // Array with primitive types should also be treated as primitive type\r\n if (subSchema.items.type === 'string' && subSchema.items.format) {\r\n primitiveType.push(`[${subSchema.items.format}]`);\r\n } else {\r\n primitiveType.push(`[${subSchema.items.type}]`);\r\n }\r\n } else {\r\n complexTypes.push(v);\r\n }\r\n });\r\n let multiPrimitiveTypes;\r\n if (primitiveType.length > 0) {\r\n subSchema.type = primitiveType.join(primitiveType.length === 2 ? ' or ' : '┃');\r\n multiPrimitiveTypes = getTypeInfo(subSchema);\r\n if (complexTypes.length === 0) {\r\n return `${multiPrimitiveTypes?.html || ''}`;\r\n }\r\n }\r\n if (complexTypes.length > 0) {\r\n obj['::type'] = 'object';\r\n const multiTypeOptions = {\r\n '::type': 'xxx-of-option',\r\n };\r\n\r\n // Generate ONE-OF options for complexTypes\r\n complexTypes.forEach((v, i) => {\r\n if (v === 'null') {\r\n multiTypeOptions[`::OPTION~${i + 1}`] = 'NULL~|~~|~~|~~|~~|~~|~~|~~|~';\r\n } else if ('integer, number, string, boolean,'.includes(`${v},`)) {\r\n subSchema.type = Array.isArray(v) ? v.join('┃') : v;\r\n const primitiveTypeInfo = getTypeInfo(subSchema);\r\n multiTypeOptions[`::OPTION~${i + 1}`] = primitiveTypeInfo.html;\r\n } else if (v === 'object') {\r\n // If object type iterate all the properties and create an object-type-option\r\n const objTypeOption = {\r\n '::title': schema.title || '',\r\n '::description': schema.description || '',\r\n '::type': 'object',\r\n '::deprecated': schema.deprecated || false,\r\n };\r\n for (const key in schema.properties) {\r\n if (schema.required && schema.required.includes(key)) {\r\n objTypeOption[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n } else {\r\n objTypeOption[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n }\r\n }\r\n multiTypeOptions[`::OPTION~${i + 1}`] = objTypeOption;\r\n } else if (v === 'array') {\r\n multiTypeOptions[`::OPTION~${i + 1}`] = {\r\n '::title': schema.title || '',\r\n '::description': schema.description || '',\r\n '::type': 'array',\r\n '::props': schemaInObjectNotation(schema.items, {}, (level + 1)),\r\n };\r\n }\r\n });\r\n multiTypeOptions[`::OPTION~${complexTypes.length + 1}`] = multiPrimitiveTypes?.html || '';\r\n obj['::ONE~OF'] = multiTypeOptions;\r\n }\r\n } else if (schema.type === 'object' || schema.properties) { // If Object\r\n obj['::title'] = schema.title || '';\r\n obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);\r\n obj['::type'] = 'object';\r\n if ((Array.isArray(schema.type) && schema.type.includes('null')) || schema.nullable) {\r\n obj['::dataTypeLabel'] = 'object or null';\r\n }\r\n obj['::deprecated'] = schema.deprecated || false;\r\n obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';\r\n for (const key in schema.properties) {\r\n if (schema.required && schema.required.includes(key)) {\r\n obj[`${key}*`] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n } else {\r\n obj[key] = schemaInObjectNotation(schema.properties[key], {}, (level + 1));\r\n }\r\n }\r\n for (const key in schema.patternProperties) {\r\n obj[`[pattern: ${key}]`] = schemaInObjectNotation(schema.patternProperties[key], obj, (level + 1));\r\n }\r\n if (schema.additionalProperties) {\r\n obj['[any-key]'] = schemaInObjectNotation(schema.additionalProperties, {});\r\n }\r\n } else if (schema.type === 'array' || schema.items) { // If Array\r\n obj['::title'] = schema.title || '';\r\n obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);\r\n obj['::type'] = 'array';\r\n if ((Array.isArray(schema.type) && schema.type.includes('null')) || schema.nullable) {\r\n obj['::dataTypeLabel'] = 'array or null';\r\n }\r\n obj['::deprecated'] = schema.deprecated || false;\r\n obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';\r\n if (schema.items?.items) {\r\n obj['::array-type'] = schema.items.items.type;\r\n }\r\n obj['::props'] = schemaInObjectNotation(schema.items, {}, (level + 1));\r\n } else if (!schema.allOf) {\r\n const typeObj = getTypeInfo(schema);\r\n if (typeObj?.html) {\r\n return `${typeObj.html}`;\r\n }\r\n return '';\r\n }\r\n return obj;\r\n}\r\n\r\n/* Create Example object */\r\nexport function generateExample(schema, mimeType, examples = '', example = '', includeReadOnly = true, includeWriteOnly = true, outputType = 'json', includeGeneratedExample = false) {\r\n const finalExamples = [];\r\n // First check if examples is provided\r\n if (examples) {\r\n for (const eg in examples) {\r\n let egContent = '';\r\n let egFormat = 'json';\r\n if (mimeType?.toLowerCase().includes('json')) {\r\n if (outputType === 'text') {\r\n egContent = typeof examples[eg].value === 'string' ? examples[eg].value : JSON.stringify(examples[eg].value, undefined, 2);\r\n egFormat = 'text';\r\n } else {\r\n egContent = examples[eg].value;\r\n if (typeof examples[eg].value === 'string') {\r\n try {\r\n // const fixedJsonString = examples[eg].value.replace((/([\\w]+)(:)/g), '\"$1\"$2').replace((/'/g), '\"');\r\n const fixedJsonString = examples[eg].value;\r\n egContent = JSON.parse(fixedJsonString);\r\n egFormat = 'json';\r\n } catch (err) {\r\n egFormat = 'text';\r\n egContent = examples[eg].value;\r\n }\r\n }\r\n }\r\n } else {\r\n egContent = examples[eg].value;\r\n egFormat = 'text';\r\n }\r\n\r\n finalExamples.push({\r\n exampleId: eg,\r\n exampleSummary: examples[eg].summary || eg,\r\n exampleDescription: examples[eg].description || '',\r\n exampleType: mimeType,\r\n exampleValue: egContent,\r\n exampleFormat: egFormat,\r\n });\r\n }\r\n } else if (example) {\r\n let egContent = '';\r\n let egFormat = 'json';\r\n if (mimeType?.toLowerCase().includes('json')) {\r\n if (outputType === 'text') {\r\n egContent = typeof example === 'string' ? example : JSON.stringify(example, undefined, 2);\r\n egFormat = 'text';\r\n } else if (typeof example === 'object') {\r\n egContent = example;\r\n egFormat = 'json';\r\n } else if (typeof example === 'string') {\r\n try {\r\n egContent = JSON.parse(example);\r\n egFormat = 'json';\r\n } catch (err) {\r\n egFormat = 'text';\r\n egContent = example;\r\n }\r\n }\r\n } else {\r\n egContent = example;\r\n egFormat = 'text';\r\n }\r\n finalExamples.push({\r\n exampleId: 'Example',\r\n exampleSummary: '',\r\n exampleDescription: '',\r\n exampleType: mimeType,\r\n exampleValue: egContent,\r\n exampleFormat: egFormat,\r\n });\r\n }\r\n // If schema-level examples are not provided or includeGeneratedExample === true then generate one based on the schema field types\r\n if (finalExamples.length === 0 || includeGeneratedExample === true) {\r\n if (schema) {\r\n if (schema.example) {\r\n // Note: Deprecated: The 'example' property has been deprecated in 3.1.0 in favor of the JSON Schema 'examples' keyword\r\n finalExamples.push({\r\n exampleId: 'Example',\r\n exampleSummary: '',\r\n exampleDescription: '',\r\n exampleType: mimeType,\r\n exampleValue: schema.example,\r\n exampleFormat: ((mimeType?.toLowerCase().includes('json') && typeof schema.example === 'object') ? 'json' : 'text'),\r\n });\r\n } else if (mimeType?.toLowerCase().includes('json') || mimeType?.toLowerCase().includes('text') || mimeType?.toLowerCase().includes('*/*') || mimeType?.toLowerCase().includes('xml')) {\r\n let xmlRootStart = '';\r\n let xmlRootEnd = '';\r\n let exampleFormat = '';\r\n let exampleValue = '';\r\n if (mimeType?.toLowerCase().includes('xml')) {\r\n xmlRootStart = schema.xml?.name ? `<${schema.xml.name} ${schema.xml.namespace ? `xmlns=\"${schema.xml.namespace}\"` : ''}>` : '';\r\n xmlRootEnd = schema.xml?.name ? `` : '';\r\n exampleFormat = 'text';\r\n } else {\r\n exampleFormat = outputType;\r\n }\r\n const samples = schemaToSampleObj(schema, { includeReadOnly, includeWriteOnly, deprecated: true, useXmlTagForProp: mimeType?.toLowerCase().includes('xml') });\r\n let i = 0;\r\n for (const samplesKey in samples) {\r\n if (!samples[samplesKey]) {\r\n continue;\r\n }\r\n const summary = samples[samplesKey]['::TITLE'] || `Example ${++i}`;\r\n const description = samples[samplesKey]['::DESCRIPTION'] || '';\r\n if (mimeType?.toLowerCase().includes('xml')) {\r\n exampleValue = `\\n${xmlRootStart}${json2xml(samples[samplesKey], 1)}\\n${xmlRootEnd}`;\r\n } else {\r\n removeTitlesAndDescriptions(samples[samplesKey]);\r\n exampleValue = outputType === 'text' ? JSON.stringify(samples[samplesKey], null, 2) : samples[samplesKey];\r\n }\r\n\r\n finalExamples.push({\r\n exampleId: samplesKey,\r\n exampleSummary: summary,\r\n exampleDescription: description,\r\n exampleType: mimeType,\r\n exampleFormat,\r\n exampleValue,\r\n });\r\n }\r\n } else if (mimeType?.toLowerCase().includes('jose')) {\r\n finalExamples.push({\r\n exampleId: 'Example',\r\n exampleSummary: 'Base64 Encoded',\r\n exampleDescription: '',\r\n exampleType: mimeType,\r\n exampleValue: schema.pattern || 'bXJpbg==',\r\n exampleFormat: 'text',\r\n });\r\n } else {\r\n finalExamples.push({\r\n exampleId: 'Example',\r\n exampleSummary: '',\r\n exampleDescription: '',\r\n exampleType: mimeType,\r\n exampleValue: '',\r\n exampleFormat: 'text',\r\n });\r\n }\r\n } else {\r\n // No Example or Schema provided (should never reach here)\r\n finalExamples.push({\r\n exampleId: 'Example',\r\n exampleSummary: '',\r\n exampleDescription: '',\r\n exampleType: mimeType,\r\n exampleValue: '',\r\n exampleFormat: 'text',\r\n });\r\n }\r\n }\r\n return finalExamples;\r\n}\r\n\r\nfunction getSerializeStyleForContentType(contentType) {\r\n if (contentType === 'application/json') {\r\n return 'json';\r\n }\r\n if (contentType === 'application/xml') {\r\n return 'xml';\r\n }\r\n return null;\r\n}\r\n\r\nexport function getSchemaFromParam(param) {\r\n if (param.schema) {\r\n return [param.schema, null, null];\r\n }\r\n if (param.content) {\r\n // we gonna use the first content-encoding\r\n for (const contentType of Object.keys(param.content)) {\r\n if (param.content[contentType].schema) {\r\n return [param.content[contentType].schema, getSerializeStyleForContentType(contentType), param.content[contentType]];\r\n }\r\n }\r\n }\r\n return [null, null, null];\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport FontStyles from '../styles/font-styles';\r\nimport SchemaStyles from '../styles/schema-styles';\r\nimport CustomStyles from '../styles/custom-styles';\r\n\r\nexport default class SchemaTable extends LitElement {\r\n static get properties() {\r\n return {\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\r\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\r\n data: { type: Object },\r\n };\r\n }\r\n\r\n connectedCallback() {\r\n super.connectedCallback();\r\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\r\n if (!this.schemaDescriptionExpanded || !'true false'.includes(this.schemaDescriptionExpanded)) { this.schemaDescriptionExpanded = 'false'; }\r\n if (!this.schemaHideReadOnly || !'true false'.includes(this.schemaHideReadOnly)) { this.schemaHideReadOnly = 'true'; }\r\n if (!this.schemaHideWriteOnly || !'true false'.includes(this.schemaHideWriteOnly)) { this.schemaHideWriteOnly = 'true'; }\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n SchemaStyles,\r\n css`\r\n .table {\r\n font-size: var(--font-size-small);\r\n text-align: left;\r\n line-height: calc(var(--font-size-small) + 6px);\r\n }\r\n .param-table{\r\n border-radius: 4px;\r\n border:1px solid var(--light-border-color);\r\n border-bottom: none;\r\n margin-top: 10px;\r\n font-size: 14px;\r\n }\r\n .param-table .tr {\r\n border-bottom: 1px solid var(--light-border-color);\r\n display: grid;\r\n grid-template-columns: 3fr 2fr 4fr;\r\n overflow: hidden;\r\n }\r\n .param-table .td {\r\n padding: 4px 0;\r\n }\r\n .param-table .key {\r\n padding: 12px 10px 12px;\r\n }\r\n .table .key-descr {\r\n padding: 12px 10px 12px;\r\n }\r\n .table .key-descr p {\r\n margin: 0px;\r\n display: inline;\r\n }\r\n .key.deprecated .key-label {\r\n color: var(--red);\r\n }\r\n .deprecated-label{\r\n color: #ef6660;\r\n padding: 1px 5px;\r\n font-size: 12px;\r\n border: 1px solid #ef6660;\r\n border-radius: 4px;\r\n }\r\n .key-label {\r\n background-color: #f8f7fc;\r\n border-radius: 4px;\r\n padding: 0.2em 0.4em;\r\n font-family: var(--font-mono);\r\n font-size: 12px;\r\n }\r\n .param-table .key-type {\r\n border-left:1px solid var(--light-border-color);\r\n border-right:1px solid var(--light-border-color);\r\n padding: 12px 10px 12px;\r\n }\r\n .object-body .key-type {\r\n white-space: normal;\r\n color:#4A4A4A;\r\n font-family: var(--font-mono);\r\n font-size: 12px;\r\n }\r\n .collapsed-all-descr .tr:not(.expanded-descr) {\r\n max-height: calc(var(--font-size-regular) + var(--font-size-regular) + 10px);\r\n }\r\n .collapsed-all-descr .tr:not(.expanded-descr) .td p, .collapsed-all-descr .tr:not(.expanded-descr) .key, .collapsed-all-descr .tr:not(.expanded-descr) .key-type {\r\n text-overflow: ellipsis;\r\n display: inline;\r\n min-width: 0;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n .obj-toggle {\r\n padding: 0 2px;\r\n border-radius:2px;\r\n border: 1px solid transparent;\r\n display: inline-block;\r\n color:var(--vtex-pink);\r\n cursor:pointer;\r\n font-size: calc(var(--font-size-small) + 4px);\r\n font-family: var(--font-mono);\r\n background-clip: border-box;\r\n }\r\n .obj-toggle:hover {\r\n border-color: var(--vtex-pink);\r\n }\r\n .obj-toggle.expanded::after {\r\n content: '-';\r\n }\r\n .obj-toggle.collapsed::after {\r\n content: '+';\r\n }\r\n .tr.expanded + .object-body {\r\n display:block;\r\n }\r\n .tr.collapsed + .object-body {\r\n display:none;\r\n }`,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n /* eslint-disable indent */\r\n render() {\r\n return html`\r\n
    this.handleAllEvents(e)}\">\r\n
    \r\n
    ${this.data?.['::type'] || ''}
    \r\n ${(this.data && this.allowSchemaDescriptionExpandToggle === 'true')\r\n ? html`\r\n
    \r\n
    \r\n ${this.schemaDescriptionExpanded === 'true' ? 'Single line description' : 'Multiline description'}\r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n ${this.data?.['::description']\r\n ? html` ${unsafeHTML(marked(this.data['::description'] || ''))}`\r\n : ''\r\n }\r\n ${this.data\r\n ? html`
    \r\n
    \r\n
    Field
    \r\n
    Type
    \r\n
    Description
    \r\n
    \r\n ${this.generateTree(\r\n this.data['::type'] === 'array' ? this.data['::props'] : this.data,\r\n this.data['::type'],\r\n this.data['::array-type'],\r\n )}\r\n
    \r\n
    `\r\n : html`

    Schema not found

    `\r\n }\r\n \r\n `;\r\n }\r\n\r\n generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '') {\r\n if (this.schemaHideReadOnly === 'true') {\r\n if (dataType === 'array') {\r\n if (readOrWrite === 'readonly') {\r\n return;\r\n }\r\n }\r\n if (data && data['::readwrite'] === 'readonly') {\r\n return;\r\n }\r\n }\r\n if (this.schemaHideWriteOnly === 'true') {\r\n if (dataType === 'array') {\r\n if (readOrWrite === 'writeonly') {\r\n return;\r\n }\r\n }\r\n if (data && data['::readwrite'] === 'writeonly') {\r\n return;\r\n }\r\n }\r\n if (!data) {\r\n return html`
    \r\n
    \r\n ${key.replace('::OPTION~', '')}\r\n
    \r\n
    \r\n ${\r\n dataType === 'array'\r\n ? html` [ ] `\r\n : dataType === 'object'\r\n ? html` { } `\r\n : html` schema undefined `\r\n }\r\n
    \r\n
    ${unsafeHTML(marked(description)) || ''}
    \r\n
    `;\r\n }\r\n\r\n const newSchemaLevel = data['::type']?.startsWith('xxx-of') ? schemaLevel : (schemaLevel + 1);\r\n const newIndentLevel = dataType === 'xxx-of-option' || data['::type'] === 'xxx-of-option' || key.startsWith('::OPTION') ? indentLevel : (indentLevel + 1);\r\n const leftPadding = 10 * newIndentLevel; // 2 space indentation at each level\r\n if (Object.keys(data).length === 0) {\r\n return html`${key}`;\r\n }\r\n let keyLabel = '';\r\n let keyDescr = '';\r\n let isOneOfLabel = false;\r\n if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) {\r\n keyLabel = key.replace('::', '').replace('~', ' ');\r\n description = \"Click + to expand or - to hide each valid schema.\"\r\n isOneOfLabel = true;\r\n } else if (key.startsWith('::OPTION')) {\r\n const parts = key.split('~');\r\n if (parts[2]) {\r\n keyLabel = parts[2];\r\n keyDescr = '';\r\n }\r\n else {\r\n keyLabel = parts[1];\r\n keyDescr = parts[2];\r\n }\r\n \r\n } else {\r\n keyLabel = key;\r\n }\r\n\r\n let detailObjType = '';\r\n if (data['::type'] === 'object') {\r\n if (dataType === 'array') {\r\n detailObjType = 'array of object'; // Array of Object\r\n } else {\r\n detailObjType = data['::dataTypeLabel'] || data['::type'];\r\n }\r\n } else if (data['::type'] === 'array') {\r\n if (dataType === 'array') {\r\n // detailObjType = 'array of array'; // Array of array\r\n detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array\r\n } else {\r\n detailObjType = data['::dataTypeLabel'] || data['::type'];\r\n }\r\n }\r\n\r\n if (typeof data === 'object') {\r\n return html`\r\n ${newSchemaLevel >= 0 && key\r\n ? html`\r\n
    \r\n
    \r\n ${(keyLabel || keyDescr)\r\n ? html`\r\n `\r\n : ''\r\n }\r\n ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION')\r\n ? html`${keyLabel}${keyDescr}`\r\n : keyLabel.endsWith('*')\r\n ? html`${data['::deprecated'] ? '❌' : ''} ${keyLabel.substring(0, keyLabel.length - 1)}*`\r\n : html`${data['::deprecated'] ? '❌' : ''} ${keyLabel === '::props' ? '' : keyLabel}`\r\n }\r\n ${data['::type'] === 'xxx-of' && dataType === 'array' ? html`ARRAY` : ''} \r\n
    \r\n
    \r\n ${(data['::type'] || '').includes('xxx-of') ? '' : detailObjType}\r\n ${data['::readwrite'] === 'readonly' ? ' 🆁' : data['::readwrite'] === 'writeonly' ? ' 🆆' : ''}\r\n
    \r\n
    ${unsafeHTML(marked(description || ''))}
    \r\n
    `\r\n : html`\r\n ${data['::type'] === 'array' && dataType === 'array'\r\n ? html`\r\n
    \r\n
    \r\n
    \r\n ${arrayType && arrayType !== 'object' ? `${dataType} of ${arrayType}` : dataType}\r\n
    \r\n
    \r\n
    `\r\n : ''\r\n }`\r\n }\r\n
    \r\n ${Array.isArray(data) && data[0]\r\n ? html`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}`\r\n : html`\r\n ${Object.keys(data).map((dataKey) => html`\r\n ${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey)\r\n ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object'\r\n ? html`${this.generateTree(\r\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\r\n data[dataKey]['::type'],\r\n data[dataKey]['::array-type'] || '',\r\n dataKey,\r\n data[dataKey]['::description'],\r\n newSchemaLevel,\r\n newIndentLevel,\r\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\r\n )}`\r\n : ''\r\n : html`${this.generateTree(\r\n data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey],\r\n data[dataKey]['::type'],\r\n data[dataKey]['::array-type'] || '',\r\n dataKey,\r\n data[dataKey]?.['::description'] || '',\r\n newSchemaLevel,\r\n newIndentLevel,\r\n data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '',\r\n )}`\r\n }\r\n `)}\r\n `\r\n }\r\n
    \r\n `;\r\n }\r\n\r\n // For Primitive Data types\r\n // eslint-disable-next-line no-unused-vars\r\n const [type, readOrWriteOnly, constraint, defaultValue, allowedValues, pattern, schemaDescription, schemaTitle, deprecated] = data.split('~|~');\r\n if (readOrWriteOnly === '🆁' && this.schemaHideReadOnly === 'true') {\r\n return;\r\n }\r\n if (readOrWriteOnly === '🆆' && this.schemaHideWriteOnly === 'true') {\r\n return;\r\n }\r\n const dataTypeCss = type.replace(/┃.*/g, '').replace(/[^a-zA-Z0-9+]/g, '').substring(0, 4).toLowerCase();\r\n const typeDivider = type.replaceAll('┃', ' | ');\r\n const descrExpander = `${schemaDescription.length >= 50 || constraint || defaultValue || allowedValues || pattern ? '' : ''}`;\r\n let dataTypeHtml = '';\r\n if (dataType === 'array') {\r\n dataTypeHtml = html` \r\n
    \r\n [${typeDivider}] ${readOrWrite === 'readonly' ? '🆁' : readOrWrite === 'writeonly' ? '🆆' : ''}\r\n
    `;\r\n } else {\r\n dataTypeHtml = html` \r\n
    \r\n ${typeDivider} ${readOrWriteOnly}\r\n
    `;\r\n }\r\n return html`\r\n
    \r\n
    \r\n ${keyLabel?.endsWith('*')\r\n ? html`\r\n ${keyLabel.substring(0, keyLabel.length - 1)}*`\r\n : key.startsWith('::OPTION')\r\n ? html`${keyLabel}${keyDescr}`\r\n : html`${keyLabel ? html` ${keyLabel}` : html`${schemaTitle}`}`\r\n }\r\n
    \r\n ${dataTypeHtml}\r\n
    \r\n ${html`\r\n ${deprecated ? html`Deprecated` : ''}\r\n ${unsafeHTML(marked(dataType === 'array'\r\n ? `${descrExpander} ${description}`\r\n : schemaTitle\r\n ? `${descrExpander} ${schemaTitle}: ${schemaDescription}`\r\n : `${descrExpander} ${schemaDescription}`))}\r\n `\r\n }\r\n ${constraint ? html`
    Constraints: ${constraint}
    ` : ''}\r\n ${defaultValue ? html`
    Default: ${defaultValue}
    ` : ''}\r\n ${allowedValues ? html`
    ${type === 'const' ? 'Value' : 'Allowed'}: ${allowedValues}
    ` : ''}\r\n ${pattern ? html`
    Pattern: ${pattern}
    ` : ''}\r\n
    \r\n
    \r\n `;\r\n }\r\n /* eslint-enable indent */\r\n\r\n handleAllEvents(e) {\r\n if (e.target.classList.contains('obj-toggle')) {\r\n this.toggleObjectExpand(e);\r\n }\r\n }\r\n\r\n toggleObjectExpand(e) {\r\n const toggleEl = e.target;\r\n const rowEl = toggleEl.closest('.tr');\r\n if (rowEl.classList.contains('expanded')) {\r\n rowEl.classList.add('collapsed');\r\n rowEl.classList.remove('expanded');\r\n toggleEl.classList.add('collapsed');\r\n toggleEl.classList.remove('expanded');\r\n } else {\r\n rowEl.classList.remove('collapsed');\r\n rowEl.classList.add('expanded');\r\n toggleEl.classList.add('expanded');\r\n toggleEl.classList.remove('collapsed');\r\n }\r\n }\r\n}\r\nif (!customElements.get('schema-table')) customElements.define('schema-table', SchemaTable);\r\n","import { LitElement, html, css } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport { schemaInObjectNotation, generateExample } from '../utils/schema-utils';\r\nimport FontStyles from '../styles/font-styles';\r\nimport FlexStyles from '../styles/flex-styles';\r\nimport TableStyles from '../styles/table-styles';\r\nimport InputStyles from '../styles/input-styles';\r\nimport TabStyles from '../styles/tab-styles';\r\nimport BorderStyles from '../styles/border-styles';\r\nimport CustomStyles from '../styles/custom-styles';\r\nimport './json-tree';\r\nimport './schema-tree';\r\nimport './schema-table';\r\n\r\nexport default class ApiResponse extends LitElement {\r\n constructor() {\r\n super();\r\n this.selectedStatus = '';\r\n this.headersForEachRespStatus = {};\r\n this.mimeResponsesForEachStatus = {};\r\n this.activeSchemaTab = 'schema';\r\n }\r\n\r\n static get properties() {\r\n return {\r\n callback: { type: String },\r\n webhook: { type: String },\r\n responses: { type: Object },\r\n parser: { type: Object },\r\n schemaStyle: { type: String, attribute: 'schema-style' },\r\n renderStyle: { type: String, attribute: 'render-style' },\r\n selectedStatus: { type: String, attribute: 'selected-status' },\r\n selectedMimeType: { type: String, attribute: 'selected-mime-type' },\r\n activeSchemaTab: { type: String, attribute: 'active-schema-tab' },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\r\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n FlexStyles,\r\n TabStyles,\r\n TableStyles,\r\n InputStyles,\r\n BorderStyles,\r\n css`\r\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\r\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\r\n .response-panel {\r\n padding: 10px;\r\n border: 1px solid var(--light-border-color);\r\n border-radius: 4px;\r\n }\r\n .response-panel-header {\r\n border-bottom: 1px solid var(--light-border-color);\r\n }\r\n .resp-head{\r\n vertical-align: middle;\r\n padding:16px 0 8px;\r\n }\r\n .resp-descr{\r\n font-size:calc(var(--font-size-small) + 1px);\r\n color:var(--light-fg);\r\n text-align:left;\r\n }\r\n .resp-box{\r\n display: flex;\r\n flex-direction: row;\r\n flex: 1 1 auto;\r\n justify-content: space-around;\r\n align-items: center;\r\n column-gap: 12px;\r\n padding: 12px;\r\n }\r\n .resp-box:hover {\r\n cursor: pointer;\r\n color: var(--vtex-pink);\r\n font-weight: bold;\r\n }\r\n .resp-box.active {\r\n font-weight: bold;\r\n color: var(--vtex-pink);\r\n border-bottom: 2px solid var(--vtex-pink);\r\n }\r\n .resp-title {\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n flex: 1 1 auto;\r\n height: 45px;\r\n text-transform: uppercase;\r\n }\r\n .resp-content {\r\n padding: 24px 40px;\r\n max-height: calc(100vh - 5rem - 48px);\r\n overflow: auto;\r\n background-color: #FFFFFF;\r\n }\r\n .resp-content-body {\r\n overflow: auto;\r\n scrollbar-width: thin;\r\n scrollbar-color: white white;\r\n }\r\n .resp-content-body:hover {\r\n scrollbar-color: #CCCED8 white;\r\n }\r\n .resp-content-body::-webkit-scrollbar {\r\n display: block;\r\n width: 6px;\r\n height: 6px;\r\n background-color: white;\r\n }\r\n .resp-content-body::-webkit-scrollbar-thumb {\r\n border-radius: 4px;\r\n background: white;\r\n }\r\n .resp-content-body:hover::-webkit-scrollbar-thumb {\r\n background: #CCCED8;\r\n }\r\n .resp-content-container {\r\n display: none;\r\n background-color: rgba(0,0,0,0.1);\r\n }\r\n .top-gap{margin-top:16px;}\r\n .example-panel{\r\n font-size:var(--font-size-small);\r\n margin:0;\r\n }\r\n .focused-mode,\r\n .read-mode {\r\n margin: 32px 0px;\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n .dot {\r\n height: 8px;\r\n width: 8px;\r\n border-radius: 50%;\r\n display: inline-block;\r\n }\r\n .success {\r\n background-color: var(--success-color);\r\n }\r\n .informational {\r\n background-color: var(--informational-color);\r\n }\r\n .redirection {\r\n background-color: var(--redirection-color);\r\n }\r\n .error {\r\n background-color: var(--error-color);\r\n }\r\n `,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n render() {\r\n return html`\r\n
    \r\n ${this.responseTemplate()}\r\n
    \r\n `;\r\n }\r\n\r\n resetSelection() {\r\n this.selectedStatus = '';\r\n this.selectedMimeType = '';\r\n }\r\n\r\n getResponseStatusType(respStatus) {\r\n const status = respStatus.toString();\r\n return status.startsWith('1')\r\n ? 'informational'\r\n : status.startsWith('2')\r\n ? 'success'\r\n : status.startsWith('3')\r\n ? 'redirection'\r\n : (status.startsWith('4') || status.startsWith('5'))\r\n ? 'error'\r\n : '';\r\n }\r\n\r\n /* eslint-disable indent */\r\n responseTemplate() {\r\n if (!this.responses) { return ''; }\r\n for (const statusCode in this.responses) {\r\n if (!this.selectedStatus) {\r\n this.selectedStatus = statusCode;\r\n }\r\n const allMimeResp = {};\r\n for (const mimeResp in this.responses[statusCode]?.content) {\r\n const mimeRespObj = this.responses[statusCode].content[mimeResp];\r\n if (!this.selectedMimeType) {\r\n this.selectedMimeType = mimeResp;\r\n }\r\n // Generate Schema\r\n const schemaTree = schemaInObjectNotation(mimeRespObj.schema, {});\r\n // Generate Example\r\n const respExamples = generateExample(\r\n mimeRespObj.schema,\r\n mimeResp,\r\n mimeRespObj.examples,\r\n mimeRespObj.example,\r\n this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary\r\n this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary\r\n mimeResp.includes('json') ? 'json' : 'text',\r\n );\r\n allMimeResp[mimeResp] = {\r\n description: this.responses[statusCode].description,\r\n examples: respExamples,\r\n selectedExample: respExamples[0]?.exampleId || '',\r\n schemaTree,\r\n };\r\n }\r\n // Headers for each response status\r\n const tempHeaders = [];\r\n for (const key in this.responses[statusCode]?.headers) {\r\n tempHeaders.push({ name: key, ...this.responses[statusCode].headers[key] });\r\n }\r\n this.headersForEachRespStatus[statusCode] = tempHeaders;\r\n this.mimeResponsesForEachStatus[statusCode] = allMimeResp;\r\n }\r\n return html`\r\n ${Object.keys(this.responses).length >= 1\r\n ? html`
    \r\n ${Object.keys(this.responses).map((respStatus) => html`\r\n ${respStatus === '$$ref' // Swagger-Client parser creates '$$ref' object if JSON references are used to create responses - this should be ignored\r\n ? ''\r\n : html`\r\n
    {\r\n this.selectedStatus = respStatus;\r\n if (this.responses[respStatus].content && Object.keys(this.responses[respStatus].content)[0]) {\r\n this.selectedMimeType = Object.keys(this.responses[respStatus].content)[0]; // eslint-disable-line prefer-destructuring\r\n } else {\r\n this.selectedMimeType = undefined;\r\n }\r\n }}\"\r\n >\r\n
    \r\n
    \r\n ${this.callback === 'true' ? 'Callback Response' : 'Response'}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n ${respStatus}\r\n
    \r\n
    \r\n
    \r\n `\r\n }`)\r\n }
    `\r\n : ''\r\n }\r\n
    \r\n\r\n ${Object.keys(this.responses).map((status) => html`\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n ${this.callback === 'true' ? 'Callback Response' : 'Response'}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n ${status}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n ${unsafeHTML(marked(this.responses[status]?.description || ''))}\r\n ${(this.headersForEachRespStatus[status] && this.headersForEachRespStatus[status]?.length > 0)\r\n ? html`${this.responseHeaderListTemplate(this.headersForEachRespStatus[status])}`\r\n : ''\r\n }\r\n
    \r\n ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 0\r\n ? ''\r\n : html` \r\n
    \r\n ${Object.keys(this.mimeResponsesForEachStatus[status]).length === 1\r\n ? html` ${Object.keys(this.mimeResponsesForEachStatus[status])[0]} `\r\n : html`${this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[status]))}`\r\n } \r\n
    { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}\" >\r\n \r\n \r\n
    \r\n
    \r\n ${this.activeSchemaTab === 'example'\r\n ? html`
    \r\n ${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}\r\n
    `\r\n : html`
    \r\n ${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}\r\n
    `\r\n }\r\n
    \r\n `\r\n }\r\n
    \r\n
    \r\n
    \r\n `)}\r\n `;\r\n }\r\n\r\n responseHeaderListTemplate(respHeaders) {\r\n return html`\r\n
    Response headers
    \r\n \r\n ${respHeaders.map((v) => html`\r\n \r\n \r\n \r\n ${v.schema?.type\r\n ? html` `\r\n : ''\r\n }\r\n \r\n ${v.description?.type\r\n ? html``\r\n : ''\r\n }\r\n \r\n ${v.schema?.example\r\n ? html`\r\n `\r\n : ''\r\n }\r\n \r\n `)}\r\n
    \r\n ${v.name || ''}\r\n \r\n ${v.schema?.type || ''}\r\n \r\n
    ${unsafeHTML(marked(v.description || ''))}
    \r\n
    \r\n ${v.schema?.example || ''}\r\n
    `;\r\n }\r\n\r\n mimeTypeDropdownTemplate(mimeTypes) {\r\n return html`\r\n `;\r\n }\r\n\r\n onSelectExample(e) {\r\n const exampleContainerEl = e.target.closest('.example-panel');\r\n const exampleEls = [...exampleContainerEl.querySelectorAll('.example')];\r\n\r\n exampleEls.forEach((v) => {\r\n v.style.display = v.dataset.example === e.target.value ? 'block' : 'none';\r\n });\r\n }\r\n\r\n mimeExampleTemplate(mimeRespDetails) {\r\n if (!mimeRespDetails) {\r\n return html`\r\n
     No example provided 
    \r\n `;\r\n }\r\n return html`\r\n ${mimeRespDetails.examples.length === 1\r\n ? html`\r\n ${mimeRespDetails.examples[0].exampleFormat === 'json'\r\n ? html`\r\n ${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`
    ${mimeRespDetails.examples[0].exampleSummary}
    ` : ''}\r\n ${mimeRespDetails.examples[0].exampleDescription ? html`
    ${unsafeHTML(marked(mimeRespDetails.examples[0].exampleDescription || ''))}
    ` : ''}\r\n `\r\n : html`\r\n ${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`
    ${mimeRespDetails.examples[0].exampleSummary}
    ` : ''}\r\n ${mimeRespDetails.examples[0].exampleDescription ? html`
    ${unsafeHTML(marked(mimeRespDetails.examples[0].exampleDescription || ''))}
    ` : ''}\r\n
    ${mimeRespDetails.examples[0].exampleValue}
    \r\n `\r\n }`\r\n : html`\r\n \r\n \r\n ${mimeRespDetails.examples.map((v) => html`\r\n
    \r\n ${v.exampleSummary && v.exampleSummary.length > 80 ? html`
    ${v.exampleSummary}
    ` : ''}\r\n ${v.exampleDescription ? html`
    ${unsafeHTML(marked(v.exampleDescription || ''))}
    ` : ''}\r\n ${v.exampleFormat === 'json'\r\n ? html`\r\n `\r\n : html`
    ${v.exampleValue}
    `\r\n }\r\n
    \r\n `)}\r\n
    \r\n `\r\n }\r\n `;\r\n }\r\n\r\n mimeSchemaTemplate(mimeRespDetails) {\r\n if (!mimeRespDetails) {\r\n return html`\r\n
     Schema not found
    \r\n `;\r\n }\r\n return html`\r\n ${this.schemaStyle === 'table'\r\n ? html`\r\n `\r\n : html`\r\n `\r\n }`;\r\n }\r\n /* eslint-enable indent */\r\n}\r\n\r\n// Register the element with the browser\r\nif (!customElements.get('api-response')) customElements.define('api-response', ApiResponse);\r\n","/* eslint-disable max-len */\r\nimport { LitElement, html, css } from 'lit';\r\n// eslint-disable-next-line import/extensions\r\nimport checkSymbol from './assets/check-symbol';\r\nimport copySymbol from './assets/copy-symbol';\r\nimport './toast-component';\r\n\r\n/* eslint-disable indent */\r\n// eslint-disable-next-line import/prefer-default-export\r\nexport class ContentCopyButton extends LitElement {\r\n static properties = {\r\n id: { type: String },\r\n content: { type: String },\r\n copied: { type: Boolean },\r\n showButton: { type: Boolean },\r\n showToast: { type: Boolean },\r\n };\r\n\r\n constructor(id, content) {\r\n super();\r\n this.id = id;\r\n this.content = content;\r\n this.copied = false;\r\n this.showButton = false;\r\n this.showToast = false;\r\n this.addEventListener('closed-toast', () => { this.showToast = false; });\r\n }\r\n\r\n reset() {\r\n this.copied = false;\r\n this.showButton = false;\r\n }\r\n\r\n willUpdate(changedProperties) {\r\n if (changedProperties.has('id')) {\r\n this.reset();\r\n }\r\n }\r\n\r\n onButtonClick() {\r\n navigator.clipboard.writeText(this.content);\r\n this.copied = true;\r\n }\r\n\r\n onTextClick() {\r\n navigator.clipboard.writeText(this.content);\r\n this.showToast = true;\r\n }\r\n\r\n onMouseover() {\r\n this.showButton = true;\r\n }\r\n\r\n onMouseLeave() {\r\n this.showButton = false;\r\n this.copied = false;\r\n }\r\n\r\n render() {\r\n return html`\r\n
    \r\n ${this.content}\r\n \r\n
    \r\n ${\r\n this.showToast\r\n ? html``\r\n : ''\r\n }\r\n `;\r\n }\r\n\r\n static get styles() {\r\n return [\r\n css`\r\n .svg-container {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-end;\r\n align-items: flex-start;\r\n padding: 0px 8px 0px 0px;\r\n gap: 10px;\r\n width: 57px;\r\n height: 20px;\r\n background: linear-gradient(270deg, #FFFFFF 51.22%, rgba(255, 255, 255, 0) 104.88%);\r\n }\r\n\r\n span {\r\n flex: 1 0 auto;\r\n padding: 4px 8px;\r\n }\r\n\r\n span:hover {\r\n cursor: pointer;\r\n }\r\n\r\n button {\r\n background: none;\r\n color: inherit;\r\n border: none;\r\n padding: 0;\r\n cursor: pointer;\r\n outline: inherit;\r\n right: 0;\r\n display: block;\r\n position: -webkit-sticky;\r\n position: sticky;\r\n }\r\n\r\n .copy-container {\r\n width: inherit;\r\n height: inherit;\r\n opacity: 0;\r\n filter: alpha(opacity = 0);\r\n position: absolute;\r\n top:0; bottom:0; left:0; right:0;\r\n display: block;\r\n z-index: 2;\r\n background: transparent;\r\n }\r\n\r\n .content-copy-container {\r\n width: inherit;\r\n height: inherit;\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n flex-wrap: nowrap;\r\n font-size: 14px;\r\n white-space: nowrap;\r\n overflow-y: hidden;\r\n overflow-x: auto;\r\n align-items: center;\r\n }\r\n\r\n .content-copy-container::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n\r\n .content-copy-container::-webkit-scrollbar-track {\r\n background:var(--input-bg);\r\n }\r\n \r\n .content-copy-container::-webkit-scrollbar-thumb {\r\n border-radius: 2px;\r\n background-color: var(--border-color);\r\n }\r\n `,\r\n ];\r\n }\r\n}\r\n\r\nif (!customElements.get('content-copy-button')) customElements.define('content-copy-button', ContentCopyButton);\r\n","/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function postmanIcon(dimensions) {\r\n const width = dimensions?.width ?? 16;\r\n const height = dimensions?.height ?? 16;\r\n\r\n return html`\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n `;\r\n}\r\n","/* eslint-disable no-tabs */\r\n/* eslint-disable max-len */\r\nimport { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function openapiIcon(dimensions) {\r\n const width = dimensions?.width ?? 16;\r\n const height = dimensions?.height ?? 16;\r\n\r\n return html`\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n `;\r\n}\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport { rapidocApiKey, downloadResource, viewResource } from '../utils/common-utils';\r\nimport { pathSecurityTemplate } from './security-scheme-template';\r\nimport codeSamplesTemplate from './code-samples-template';\r\nimport callbackTemplate from './callback-template';\r\nimport '../components/api-request';\r\nimport '../components/api-response';\r\nimport '../components/content-copy-button';\r\nimport processPathDescription from '../utils/magic-block-utils';\r\nimport { joinURLandPath } from '../utils/url';\r\nimport renderBlockquote from '../utils/renderBlockquote';\r\nimport postmanIcon from '../components/assets/postman-icon';\r\nimport openapiIcon from '../components/assets/openapi-icon';\r\n\r\n/* eslint-disable indent */\r\nfunction headingRenderer(tagElementId) {\r\n const renderer = new marked.Renderer();\r\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\r\n return renderer;\r\n}\r\n\r\nexport function expandedEndpointBodyTemplate(path, tagName = '') {\r\n const acceptContentTypes = new Set();\r\n for (const respStatus in path.responses) {\r\n for (const acceptContentType in (path.responses[respStatus]?.content)) {\r\n acceptContentTypes.add(acceptContentType.trim());\r\n }\r\n }\r\n const accept = [...acceptContentTypes].join(', ');\r\n\r\n // Filter API Keys that are non-empty and are applicable to the the path\r\n const nonEmptyApiKeys = this.resolvedSpec.securitySchemes.filter((v) => (v.finalKeyValue && path.security?.some((ps) => (v.securitySchemeId in ps)))) || [];\r\n\r\n // If a RapiDoc API Key is specified on the element and its value is not hyphen(-) then include it for all paths\r\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === rapidocApiKey && v.value !== '-'));\r\n if (rapiDocApiKey) {\r\n nonEmptyApiKeys.push(rapiDocApiKey);\r\n }\r\n\r\n const docUrl = `https://developers.vtex.com/docs/api-reference/${this.specUrl.split('/')[3]}`;\r\n marked.Renderer.prototype.blockquote = renderBlockquote;\r\n\r\n const codeSampleTabPanel = path.xCodeSamples ? codeSamplesTemplate.call(this, path.xCodeSamples) : '';\r\n path.description = processPathDescription(path.description);\r\n return html`\r\n ${this.renderStyle === 'read' ? html`
    ` : ''}\r\n
    \r\n \r\n ${path.deprecated ? html`
    DEPRECATED
    ` : ''}\r\n ${html`\r\n ${path.xBadges && path.xBadges?.length > 0\r\n ? html`\r\n
    \r\n ${path.xBadges.map((v) => (\r\n html`${v.label}`\r\n ))\r\n }\r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n ${(this.renderStyle === 'focused' && tagName !== 'General ⦂') ? html`\r\n

    ${this.resolvedSpec.info.title} › ${tagName}

    \r\n ` : ''}\r\n
    \r\n
    \r\n ${(this.specUrl && this.allowSpecFileDownload) ? html`
    \r\n \r\n \r\n
    ` : ''}\r\n ${this.postmanUrl ? html`
    \r\n \r\n \r\n
    ` : ''}\r\n
    \r\n

    ${path.shortSummary || `${path.method.toUpperCase()} ${path.path}`}

    \r\n ${path.isWebhook\r\n ? html` WEBHOOK `\r\n : html`\r\n
    \r\n
    \r\n ${path.method}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n `\r\n }\r\n `\r\n }\r\n ${path.description ? html`
    ${unsafeHTML(marked(path.description))}
    ` : ''}\r\n \r\n ${codeSampleTabPanel}\r\n
    \r\n \r\n\r\n ${path.callbacks ? callbackTemplate.call(this, path.callbacks) : ''}\r\n\r\n \r\n
    \r\n
    \r\n `;\r\n}\r\n\r\nexport default function expandedEndpointTemplate() {\r\n if (!this.resolvedSpec) { return ''; }\r\n return html`\r\n ${this.resolvedSpec.tags.map((tag) => html`\r\n
    \r\n
    ${tag.name}
    \r\n \r\n
    \r\n ${unsafeHTML(`\r\n
    \r\n ${marked(tag.description || '', this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer(tag.elementId) } : undefined)}\r\n
    `)\r\n }\r\n
    \r\n
    \r\n
    \r\n ${tag.paths.map((path) => expandedEndpointBodyTemplate.call(this, path))}\r\n
    \r\n `)\r\n }\r\n`;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport { schemaInObjectNotation } from '../utils/schema-utils';\r\nimport '../components/json-tree';\r\nimport '../components/schema-tree';\r\nimport '../components/schema-table';\r\n\r\nfunction schemaBodyTemplate(sComponent) {\r\n return html`\r\n
    \r\n
    \r\n
    ${sComponent.name} Schema
    \r\n ${this.schemaStyle === 'table'\r\n ? html`\r\n `\r\n : html`\r\n `\r\n}\r\n
    `;\r\n}\r\n\r\nfunction componentBodyTemplate(sComponent, componentType) {\r\n if (sComponent.id.indexOf('schemas-') !== -1) {\r\n return schemaBodyTemplate.call(this, sComponent);\r\n }\r\n return html`\r\n
    \r\n
    \r\n ${html`\r\n
    ${sComponent.name} ${componentType}
    \r\n ${sComponent.component\r\n ? html`\r\n
    \r\n \r\n
    `\r\n : ''}\r\n `}\r\n
    \r\n `;\r\n}\r\n\r\nexport default function componentsTemplate() {\r\n if (!this.resolvedSpec) { return ''; }\r\n return html`\r\n ${this.resolvedSpec.components.map((component) => html`\r\n
    \r\n
    ${component.name}
    \r\n
    \r\n ${unsafeHTML(`
    ${marked(component.description ? component.description : '')}
    `)}\r\n
    \r\n
    \r\n
    \r\n ${component.subComponents.filter((c) => c.expanded !== false).map((sComponent) => componentBodyTemplate.call(this, sComponent, component.name))}\r\n
    \r\n `)\r\n}\r\n`;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport processPathDescription from '../utils/magic-block-utils';\r\nimport { downloadResource, viewResource } from '../utils/common-utils';\r\nimport renderBlockquote from '../utils/renderBlockquote';\r\nimport postmanIcon from '../components/assets/postman-icon';\r\nimport openapiIcon from '../components/assets/openapi-icon';\r\n\r\n/* eslint-disable indent */\r\nfunction headingRenderer() {\r\n const renderer = new marked.Renderer();\r\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\r\n return renderer;\r\n}\r\n\r\nexport default function overviewTemplate() {\r\n this.resolvedSpec.info.description = processPathDescription(this.resolvedSpec.info.description);\r\n marked.Renderer.prototype.blockquote = renderBlockquote;\r\n\r\n return html`\r\n
    \r\n \r\n ${this.resolvedSpec?.info\r\n ? html`\r\n
    \r\n ${(this.specUrl && this.allowSpecFileDownload) ? html`
    \r\n \r\n \r\n
    ` : ''}\r\n ${this.postmanUrl ? html`
    \r\n \r\n \r\n
    ` : ''}\r\n
    \r\n
    \r\n ${this.resolvedSpec.info.title}\r\n ${!this.resolvedSpec.info.version ? '' : html`\r\n \r\n ${this.resolvedSpec.info.version}\r\n `\r\n }\r\n
    \r\n
    \r\n ${this.resolvedSpec.info.contact?.email\r\n ? html`${this.resolvedSpec.info.contact.name || 'Email'}: \r\n ${this.resolvedSpec.info.contact.email}\r\n `\r\n : ''\r\n }\r\n ${this.resolvedSpec.info.contact?.url\r\n ? html`URL: ${this.resolvedSpec.info.contact.url}`\r\n : ''\r\n }\r\n ${this.resolvedSpec.info.license\r\n ? html`License: \r\n ${this.resolvedSpec.info.license.url\r\n ? html`${this.resolvedSpec.info.license.name}`\r\n : this.resolvedSpec.info.license.name\r\n } `\r\n : ''\r\n }\r\n ${this.resolvedSpec.info.termsOfService\r\n ? html`Terms of Service`\r\n : ''\r\n }\r\n
    \r\n \r\n
    \r\n ${this.resolvedSpec.info.description\r\n ? html`${\r\n unsafeHTML(`\r\n
    \r\n ${marked(this.resolvedSpec.info.description, this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer() } : undefined)}\r\n
    `)}`\r\n : ''\r\n }\r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport { marked } from 'marked';\r\nimport { pathIsInSearch } from '../utils/common-utils';\r\n\r\nexport function expandCollapseNavBarTag(navLinkEl, action = 'toggle') {\r\n const tagAndPathEl = navLinkEl?.closest('.nav-bar-tag-and-paths');\r\n const pathsUnderTagEl = tagAndPathEl?.querySelector('.nav-bar-paths-under-tag');\r\n if (tagAndPathEl) {\r\n const isExpanded = tagAndPathEl.classList.contains('expanded');\r\n if (isExpanded && (action === 'toggle' || action === 'collapse')) {\r\n pathsUnderTagEl.style.maxHeight = 0;\r\n tagAndPathEl.classList.replace('expanded', 'collapsed');\r\n } else if (!isExpanded && (action === 'toggle' || action === 'expand')) {\r\n tagAndPathEl.classList.replace('collapsed', 'expanded');\r\n pathsUnderTagEl.style.maxHeight = `${pathsUnderTagEl.scrollHeight}px`;\r\n }\r\n }\r\n}\r\n\r\nexport function expandCollapseAll(event, action = 'expand-all') {\r\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\r\n return;\r\n }\r\n const navEl = event.target.closest('.nav-scroll');\r\n const elList = [...navEl.querySelectorAll('.nav-bar-tag-and-paths')];\r\n if (action === 'expand-all') {\r\n elList.forEach((el) => {\r\n const navBarPathsUnderTagEl = el.querySelector('.nav-bar-paths-under-tag');\r\n el.classList.replace('collapsed', 'expanded');\r\n navBarPathsUnderTagEl.style.maxHeight = `${navBarPathsUnderTagEl?.scrollHeight}px`;\r\n });\r\n } else {\r\n elList.forEach((el) => {\r\n el.classList.replace('expanded', 'collapsed');\r\n el.querySelector('.nav-bar-paths-under-tag').style.maxHeight = 0;\r\n });\r\n }\r\n}\r\n\r\nexport function navBarClickAndEnterHandler(event) {\r\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\r\n return;\r\n }\r\n const navEl = event.target;\r\n event.stopPropagation();\r\n if (navEl.dataset?.action === 'navigate') {\r\n this.scrollToEventTarget(event, false);\r\n } else if (navEl.dataset?.action === 'expand-all' || (navEl.dataset?.action === 'collapse-all')) {\r\n expandCollapseAll(event, navEl.dataset.action);\r\n } else if (navEl.dataset?.action === 'expand-collapse-tag') {\r\n expandCollapseNavBarTag(navEl, 'toggle');\r\n }\r\n}\r\n\r\n/* eslint-disable indent */\r\nexport default function navbarTemplate() {\r\n if (!this.resolvedSpec || this.resolvedSpec.specLoadError) {\r\n return html`\r\n \r\n `;\r\n }\r\n return html`\r\n
    \r\n ${this.resolvedSpec.infoDescriptionHeaders.length > 0 ? html`
    ` : ''}\r\n `\r\n : html``\r\n }\r\n `\r\n }\r\n \r\n ${this.allowServerSelection === 'false'\r\n ? ''\r\n : html``\r\n }\r\n ${(this.allowAuthentication === 'false' || !this.resolvedSpec.securitySchemes)\r\n ? ''\r\n : html``\r\n }\r\n\r\n \r\n\r\n \r\n ${this.resolvedSpec.tags\r\n .filter((tag) => tag.paths.filter((path) => pathIsInSearch(this.matchPaths, path, this.matchType)).length)\r\n .map((tag) => html`\r\n `\r\n }`\r\n : ''\r\n }\r\n \r\n
    \r\n `)\r\n }\r\n\r\n \r\n ${this.resolvedSpec.components && this.showComponents === 'true' && this.renderStyle === 'focused'\r\n ? html`\r\n \r\n ${this.resolvedSpec.components.map((component) => (component.subComponents.length\r\n ? html`\r\n \r\n ${component.subComponents.filter((p) => p.expanded !== false).map((p) => html`\r\n `)\r\n }`\r\n : ''))\r\n }`\r\n : ''\r\n }\r\n `\r\n }\r\n\r\n`;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport { expandedEndpointBodyTemplate } from './expanded-endpoint-template';\r\nimport '../components/api-request';\r\nimport '../components/api-response';\r\nimport componentsTemplate from './components-template';\r\nimport overviewTemplate from './overview-template';\r\nimport serverTemplate, { setApiServer } from './server-template';\r\nimport securitySchemeTemplate from './security-scheme-template';\r\nimport { expandCollapseNavBarTag } from './navbar-template';\r\n\r\nfunction headingRenderer(tagElementId) {\r\n const renderer = new marked.Renderer();\r\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\r\n return renderer;\r\n}\r\n\r\nfunction wrapFocusedTemplate(templateToWrap) {\r\n return html`\r\n
    \r\n ${templateToWrap}\r\n
    `;\r\n}\r\n\r\nfunction defaultContentTemplate() {\r\n // In focused mode default content is overview or first path\r\n if (this.showInfo === 'true') {\r\n return wrapFocusedTemplate(overviewTemplate.call(this));\r\n }\r\n const selectedTagObj = this.resolvedSpec.tags[0];\r\n const selectedPathObj = this.resolvedSpec.tags[0]?.paths[0];\r\n return (selectedTagObj && selectedPathObj)\r\n ? wrapFocusedTemplate(expandedEndpointBodyTemplate.call(this, selectedPathObj, selectedTagObj.name))\r\n : wrapFocusedTemplate('');\r\n}\r\n\r\n/* eslint-disable indent */\r\nfunction focusedTagBodyTemplate(tag) {\r\n return html`\r\n

    ${tag.name}

    \r\n ${this.onNavTagClick === 'show-description' && tag.description\r\n ? html`\r\n
    \r\n ${\r\n unsafeHTML(`\r\n
    \r\n ${marked(tag.description || '', this.infoDescriptionHeadingsInNavBar === 'true' ? { renderer: headingRenderer(tag.elementId) } : undefined)}\r\n
    `)\r\n }\r\n
    `\r\n : ''\r\n }\r\n `;\r\n}\r\n\r\nexport default function focusedEndpointTemplate() {\r\n if (!this.focusedElementId || !this.resolvedSpec) {\r\n return;\r\n }\r\n const focusElId = this.focusedElementId;\r\n let selectedPathObj = null;\r\n let selectedTagObj = null;\r\n let focusedTemplate;\r\n let i = 0;\r\n if (focusElId.startsWith('overview') && this.showInfo === 'true') {\r\n focusedTemplate = overviewTemplate.call(this);\r\n } else if (focusElId === 'auth' && this.allowAuthentication === 'true') {\r\n focusedTemplate = securitySchemeTemplate.call(this);\r\n } else if (focusElId === 'servers' && this.allowServerSelection === 'true') {\r\n focusedTemplate = serverTemplate.call(this);\r\n } else if (focusElId === 'operations-top') {\r\n focusedTemplate = html`\r\n
    \r\n \r\n
    `;\r\n } else if (focusElId.startsWith('cmp--') && this.showComponents === 'true') {\r\n focusedTemplate = componentsTemplate.call(this);\r\n } else if (focusElId.startsWith('tag--')) {\r\n const idToFocus = focusElId.indexOf('--', 4) > 0 ? focusElId.substring(0, focusElId.indexOf('--', 5)) : focusElId;\r\n selectedTagObj = this.resolvedSpec.tags.find((v) => v.elementId === idToFocus);\r\n if (selectedTagObj) {\r\n focusedTemplate = wrapFocusedTemplate.call(this, focusedTagBodyTemplate.call(this, selectedTagObj));\r\n } else {\r\n focusedTemplate = defaultContentTemplate.call(this);\r\n }\r\n } else {\r\n for (i = 0; i < this.resolvedSpec.tags.length; i += 1) {\r\n selectedTagObj = this.resolvedSpec.tags[i];\r\n selectedPathObj = this.resolvedSpec.tags[i].paths.find((v) => `${v.elementId}` === focusElId);\r\n if (selectedPathObj) {\r\n break;\r\n }\r\n }\r\n if (selectedPathObj) {\r\n // In focused mode we must expand the nav-bar tag element if it is collapsed\r\n if (selectedPathObj.servers && selectedPathObj.servers.length > 0) {\r\n setApiServer.call(this, selectedPathObj.servers[0].url)\r\n }\r\n const newNavEl = this.shadowRoot.getElementById(`link-${focusElId}`);\r\n expandCollapseNavBarTag(newNavEl, 'expand');\r\n focusedTemplate = wrapFocusedTemplate.call(\r\n this,\r\n expandedEndpointBodyTemplate.call(this, selectedPathObj, (selectedTagObj.name || ''), (selectedTagObj.description || '')),\r\n );\r\n } else {\r\n // if focusedElementId is not found then show the default content (overview or first-path)\r\n focusedTemplate = defaultContentTemplate.call(this);\r\n }\r\n }\r\n return focusedTemplate;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\nimport '../components/api-request';\r\nimport '../components/api-response';\r\nimport '../components/content-copy-button';\r\nimport codeSamplesTemplate from './code-samples-template';\r\nimport callbackTemplate from './callback-template';\r\nimport { pathSecurityTemplate } from './security-scheme-template';\r\nimport { pathIsInSearch, rapidocApiKey } from '../utils/common-utils';\r\nimport processPathDescription from '../utils/magic-block-utils';\r\nimport { joinURLandPath } from '../utils/url';\r\n\r\nfunction toggleExpand(path) {\r\n if (path.expanded) {\r\n path.expanded = false; // collapse\r\n if (this.updateRoute === 'true') {\r\n this.replaceHistoryState('');\r\n }\r\n } else {\r\n path.expanded = true; // Expand\r\n if (this.updateRoute === 'true') {\r\n const newHash = `${this.routePrefix || '#'}${path.elementId}`;\r\n if (window.location.hash !== newHash) {\r\n this.replaceHistoryState(path.elementId);\r\n }\r\n }\r\n }\r\n this.requestUpdate();\r\n}\r\n\r\nexport function expandCollapseAll(operationsRootEl, action = 'expand-all') {\r\n const elList = [...operationsRootEl.querySelectorAll('.section-tag')];\r\n if (action === 'expand-all') {\r\n elList.map((el) => {\r\n el.classList.replace('collapsed', 'expanded');\r\n });\r\n } else {\r\n elList.map((el) => {\r\n el.classList.replace('expanded', 'collapsed');\r\n });\r\n }\r\n}\r\n\r\nfunction onExpandCollapseAll(e, action = 'expand-all') {\r\n expandCollapseAll.call(this, e.target.closest('.operations-root'), action);\r\n}\r\n\r\n/* eslint-disable indent */\r\nfunction endpointHeadTemplate(path, pathsExpanded = false) {\r\n return html`\r\n { toggleExpand.call(this, path, e); }}\" part=\"section-endpoint-head-${path.expanded ? 'expanded' : 'collapsed'}\" class='endpoint-head ${path.method} ${path.deprecated ? 'deprecated' : ''} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>\r\n
    ${path.method}
    \r\n
    \r\n ${path.path} \r\n ${path.isWebhook ? html` Webhook` : ''}\r\n
    \r\n ${path.deprecated\r\n ? html`\r\n \r\n deprecated \r\n `\r\n : ''\r\n }\r\n ${this.showSummaryWhenCollapsed\r\n ? html`\r\n
    \r\n
    ${path.summary || path.shortSummary}
    `\r\n : ''\r\n }\r\n
    \r\n `;\r\n}\r\n\r\nfunction endpointBodyTemplate(path) {\r\n const acceptContentTypes = new Set();\r\n for (const respStatus in path.responses) {\r\n for (const acceptContentType in (path.responses[respStatus]?.content)) {\r\n acceptContentTypes.add(acceptContentType.trim());\r\n }\r\n }\r\n const accept = [...acceptContentTypes].join(', ');\r\n // Filter API Keys that are non-empty and are applicable to the the path\r\n const nonEmptyApiKeys = this.resolvedSpec.securitySchemes.filter((v) => (v.finalKeyValue && path.security?.some((ps) => (v.securitySchemeId in ps)))) || [];\r\n\r\n // If a RapiDoc API Key is specified on the element and its value is not hyphen(-) then include it for all paths\r\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => (v.securitySchemeId === rapidocApiKey && v.value !== '-'));\r\n if (rapiDocApiKey) {\r\n nonEmptyApiKeys.push(rapiDocApiKey);\r\n }\r\n\r\n const codeSampleTabPanel = path.xCodeSamples ? codeSamplesTemplate(path.xCodeSamples) : '';\r\n path.description = processPathDescription(path.description);\r\n return html`\r\n \r\n
    \r\n
    \r\n ${path.summary\r\n ? html`
    ${path.summary}
    `\r\n : path.shortSummary !== path.description\r\n ? html`
    ${path.shortSummary}
    `\r\n : ''\r\n }\r\n ${path.xBadges && path.xBadges?.length > 0\r\n ? html`\r\n
    \r\n ${path.xBadges.map((v) => (\r\n html`${v.label}`\r\n ))\r\n }\r\n
    \r\n `\r\n : ''\r\n }\r\n
    \r\n
    \r\n ${path.method}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n ${path.description ? html`
    ${unsafeHTML(marked(path.description))}
    ` : ''}\r\n \r\n ${pathSecurityTemplate.call(this, path.security)}\r\n ${codeSampleTabPanel}\r\n
    \r\n
    \r\n
    \r\n 0 ? path.servers[0].url : this.selectedServer.computedUrl}\" \r\n active-schema-tab = \"${this.defaultSchemaTab}\"\r\n fill-request-fields-with-example = \"${this.fillRequestFieldsWithExample}\"\r\n allow-try = \"${this.allowTry}\"\r\n show-curl-before-try = \"${this.showCurlBeforeTry}\"\r\n accept = \"${accept}\"\r\n render-style=\"${this.renderStyle}\" \r\n schema-style = \"${this.schemaStyle}\" \r\n schema-expand-level = \"${this.schemaExpandLevel}\"\r\n schema-description-expanded = \"${this.schemaDescriptionExpanded}\"\r\n allow-schema-description-expand-toggle = \"${this.allowSchemaDescriptionExpandToggle}\"\r\n schema-hide-read-only = \"${this.schemaHideReadOnly === 'never' ? 'false' : path.isWebhook ? 'false' : 'true'}\"\r\n schema-hide-write-only = \"${this.schemaHideWriteOnly === 'never' ? 'false' : path.isWebhook ? 'true' : 'false'}\"\r\n fetch-credentials = \"${this.fetchCredentials}\"\r\n exportparts = \"wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,\r\n file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, \r\n anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle\"\r\n > \r\n\r\n ${path.callbacks ? callbackTemplate.call(this, path.callbacks) : ''}\r\n
    \r\n\r\n \r\n
    \r\n
    `;\r\n}\r\n\r\nexport default function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpanded = false) {\r\n if (!this.resolvedSpec) { return ''; }\r\n return html`\r\n ${showExpandCollapse\r\n ? html`\r\n
    \r\n onExpandCollapseAll(e, 'expand-all')}\" style=\"color:var(--primary-color); cursor:pointer;\">\r\n Expand all\r\n \r\n  |  \r\n onExpandCollapseAll(e, 'collapse-all')}\" style=\"color:var(--primary-color); cursor:pointer;\" >\r\n Collapse all\r\n \r\n   sections\r\n
    `\r\n : ''\r\n }\r\n ${this.resolvedSpec.tags.map((tag) => html`\r\n ${showTags\r\n ? html` \r\n `\r\n : html`\r\n \r\n `\r\n }\r\n `)\r\n }`;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\n\r\n/* eslint-disable indent */\r\nexport default function logoTemplate(style) {\r\nreturn html`\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n`;\r\n}\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport logoTemplate from './logo-template';\r\n\r\n/* eslint-disable indent */\r\nexport default function headerTemplate() {\r\n return html`\r\n
    \r\n
    \r\n \r\n ${logoTemplate('height:36px;width:36px;margin-left:5px')}\r\n \r\n \r\n
    ${this.headingText}
    \r\n
    \r\n
    \r\n ${(this.allowSpecUrlLoad === 'false')\r\n ? ''\r\n : html`\r\n \r\n
    \r\n `\r\n } \r\n ${(this.allowSpecFileLoad === 'false')\r\n ? ''\r\n : html`\r\n \r\n \r\n `\r\n }\r\n \r\n ${(this.allowSearch === 'false' || 'read focused'.includes(this.renderStyle))\r\n ? ''\r\n : html` \r\n \r\n
    \r\n `\r\n }\r\n \r\n ${(this.allowAdvancedSearch === 'false' || 'read focused'.includes(this.renderStyle))\r\n ? ''\r\n : html`\r\n \r\n `\r\n }\r\n
    \r\n
    `;\r\n }\r\n/* eslint-enable indent */\r\n","import { html } from 'lit';\r\nimport '../components/dialog-box';\r\n\r\n/* eslint-disable indent */\r\nexport default function searchByPropertiesModalTemplate() {\r\n document.addEventListener('close', () => { this.showAdvancedSearchDialog = false; });\r\n document.addEventListener('open', this.onOpenSearchDialog);\r\n\r\n return html`\r\n \r\n \r\n this.onAdvancedSearch(e, 400)}\"\r\n >\r\n
    \r\n
    \r\n this.onAdvancedSearch(e, 0)}\">\r\n \r\n
    \r\n
    \r\n this.onAdvancedSearch(e, 0)}\">\r\n \r\n
    \r\n
    \r\n this.onAdvancedSearch(e, 0)}\">\r\n \r\n
    \r\n
    \r\n this.onAdvancedSearch(e, 0)}\">\r\n \r\n
    \r\n
    \r\n this.onAdvancedSearch(e, 0)}\">\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n ${this.advancedSearchMatches?.map((path) => html`\r\n {\r\n this.matchPaths = ''; // clear quick filter if applied\r\n this.showAdvancedSearchDialog = false; // Hide Search Dialog\r\n this.requestUpdate();\r\n this.scrollToEventTarget(e, true);\r\n }\r\n }\"\r\n > \r\n ${path.method} \r\n ${path.path}\r\n ${path.summary}\r\n \r\n `)\r\n }\r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { LitElement, html } from 'lit';\r\nimport DialogBoxStyles from '../styles/dialog-box-styles';\r\n\r\nexport default class DialogBox extends LitElement {\r\n static get properties() {\r\n return {\r\n heading: { type: String, attribute: 'heading' },\r\n show: { type: String, attribute: 'show' },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [DialogBoxStyles];\r\n }\r\n\r\n connectedCallback() {\r\n super.connectedCallback();\r\n document.addEventListener('keydown', (e) => {\r\n if (e.code === 'Escape') {\r\n this.onClose();\r\n }\r\n });\r\n }\r\n\r\n attributeChangedCallback(name, oldVal, newVal) {\r\n if (oldVal !== newVal) {\r\n if (name === 'heading') {\r\n this.heading = newVal;\r\n }\r\n if (name === 'show') {\r\n this.show = newVal;\r\n if (newVal === 'true') {\r\n document.dispatchEvent(new CustomEvent('open', {\r\n bubbles: true,\r\n composed: true,\r\n detail: this,\r\n }));\r\n }\r\n }\r\n }\r\n super.attributeChangedCallback(name, oldVal, newVal);\r\n }\r\n\r\n /* eslint-disable indent */\r\n render() {\r\n return html`\r\n ${this.show === 'true'\r\n ? html`\r\n
    \r\n
    \r\n
    \r\n ${this.heading}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    `\r\n : ''\r\n }`;\r\n }\r\n /* eslint-enable indent */\r\n\r\n onClose() {\r\n document.dispatchEvent(new CustomEvent('close', {\r\n bubbles: true,\r\n composed: true,\r\n }));\r\n }\r\n}\r\n\r\nif (!customElements.get('dialog-box')) customElements.define('dialog-box', DialogBox);\r\n","import { html } from 'lit';\r\nimport ColorUtils from './color-utils';\r\n/* Generates an schema object containing type and constraint info */\r\nexport default function setTheme(baseTheme, theme = {}) {\r\n let newTheme = {};\r\n\r\n // Common Theme colors\r\n const primaryColor = theme.primaryColor ? theme.primaryColor : baseTheme === 'dark' ? '#f76b39' : '#ff591e';\r\n const primaryColorInvert = ColorUtils.color.invert(primaryColor);\r\n const primaryColorTrans = ColorUtils.color.opacity(primaryColor, '0.4');\r\n\r\n // Dark and Light Theme colors\r\n if (baseTheme === 'dark') {\r\n const bg1 = theme.bg1 ? theme.bg1 : '#2a2b2c';\r\n const fg1 = theme.fg1 ? theme.fg1 : '#bbb';\r\n\r\n const bg2 = theme.bg2 ? theme.bg2 : ColorUtils.color.brightness(bg1, 5); // or #383838;\r\n const bg3 = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, 17); // or #444;\r\n const lightBg = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, 35);\r\n const fg2 = theme.fg2 ? theme.fg2 : ColorUtils.color.brightness(fg1, -15); // or #ababab\r\n const fg3 = theme.fg3 ? theme.fg3 : ColorUtils.color.brightness(fg1, -20); // or #aaa\r\n const lightFg = theme.fg3 ? theme.fg3 : '#A1A8B3'; // or #777\r\n const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : '#aaa';\r\n\r\n const headerColor = theme.headerColor ? theme.headerColor : ColorUtils.color.brightness(bg1, 10);\r\n\r\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, 10);\r\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.opacity(ColorUtils.color.invert(navBgColor), '0.50');\r\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : ColorUtils.color.brightness(navBgColor, -15);\r\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : ColorUtils.color.invert(navBgColor);\r\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : ColorUtils.color.brightness(primaryColor, 25);\r\n const navAccentTextColor = theme.navAccentTextColor ? theme.navAccenttextColor : ColorUtils.color.invert(navAccentColor);\r\n\r\n const overlayBg = 'rgba(80, 80, 80, 0.4)';\r\n\r\n newTheme = {\r\n bg1,\r\n bg2,\r\n bg3,\r\n lightBg,\r\n fg1,\r\n fg2,\r\n fg3,\r\n lightFg,\r\n inlineCodeFg,\r\n primaryColor,\r\n primaryColorTrans,\r\n primaryColorInvert,\r\n overlayBg,\r\n navBgColor,\r\n navTextColor,\r\n navHoverBgColor,\r\n navHoverTextColor,\r\n navAccentColor,\r\n navAccentTextColor,\r\n headerColor,\r\n headerColorInvert: ColorUtils.color.invert(headerColor),\r\n headerColorDarker: ColorUtils.color.brightness(headerColor, -20),\r\n headerColorBorder: ColorUtils.color.brightness(headerColor, 10),\r\n\r\n borderColor: theme.borderColor || ColorUtils.color.brightness(bg1, 20), // #555\r\n lightBorderColor: theme.lightBorderColor || '#e7e9ee', // #444\r\n codeBorderColor: theme.codeBorderColor || ColorUtils.color.brightness(bg1, 30),\r\n\r\n inputBg: theme.inputBg || ColorUtils.color.brightness(bg1, -5), // #2f2f2f\r\n placeHolder: theme.placeHolder || ColorUtils.color.opacity(fg1, '0.3'),\r\n hoverColor: theme.hoverColor || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n red: theme.red ? theme.red : '#F06560',\r\n lightRed: theme.lightRed ? theme.lightRed : ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n pink: theme.pink ? theme.pink : '#ffb2b2',\r\n lightPink: theme.lightPink || ColorUtils.color.brightness(bg1, -10),\r\n vtexPink: theme.vtexPink ? theme.vtexPink : '#D71D55',\r\n\r\n green: theme.green || '#7ec699',\r\n lightGreen: theme.lightGreen || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n blue: theme.blue || '#71b7ff',\r\n lightBlue: theme.lightBlue || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n orange: theme.orange ? theme.orange : '#f08d49',\r\n lightOrange: theme.lightOrange || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n yellow: theme.yellow || '#827717',\r\n lightYellow: theme.lightYellow || ColorUtils.color.brightness(bg1, -10), // #2a2a2a\r\n\r\n purple: theme.purple || '#786FF1',\r\n brown: theme.brown || '#D4AC0D',\r\n\r\n codeBg: theme.codeBg || ColorUtils.color.opacity(ColorUtils.color.brightness(bg1, -15), 0.7),\r\n codeFg: theme.codeFg || '#aaa',\r\n codePropertyColor: theme.codePropertyColor || '#f8c555',\r\n codeKeywordColor: theme.codeKeywordColor || '#cc99cd',\r\n codeOperatorColor: theme.codeOperatorColor || '#67cdcc',\r\n };\r\n } else {\r\n const bg1 = (theme.bg1 ? theme.bg1 : '#fafbfc');\r\n const fg1 = (theme.fg1 ? theme.fg1 : '#444444');\r\n const bg2 = theme.bg2 ? theme.bg2 : ColorUtils.color.brightness(bg1, -5); // or '#fafafa'\r\n const bg3 = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, -15); // or '#f6f6f6'\r\n const lightBg = theme.bg3 ? theme.bg3 : ColorUtils.color.brightness(bg1, -45);\r\n const fg2 = theme.fg2 ? theme.fg2 : '#545454';\r\n const fg3 = theme.fg3 ? theme.fg3 : ColorUtils.color.brightness(fg1, 30); // or #666\r\n const lightFg = theme.fg3 ? theme.fg3 : '#A1A8B3'; // or #999\r\n const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : 'brown';\r\n\r\n const headerColor = theme.headerColor ? theme.headerColor : ColorUtils.color.brightness(bg1, -180);\r\n\r\n /*\r\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10);\r\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5);\r\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1;\r\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor;\r\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor;\r\n */\r\n const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -200);\r\n const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.opacity(ColorUtils.color.invert(navBgColor), '0.65');\r\n const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : ColorUtils.color.brightness(navBgColor, -15);\r\n const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : ColorUtils.color.invert(navBgColor);\r\n const navAccentColor = theme.navAccentColor ? theme.navAccentColor : ColorUtils.color.brightness(primaryColor, 25);\r\n const navAccentTextColor = theme.navAccentTextColor ? theme.navAccenttextColor : ColorUtils.color.invert(navAccentColor);\r\n const overlayBg = 'rgba(0, 0, 0, 0.4)';\r\n\r\n newTheme = {\r\n bg1,\r\n bg2,\r\n bg3,\r\n lightBg,\r\n fg1,\r\n fg2,\r\n fg3,\r\n lightFg,\r\n inlineCodeFg,\r\n primaryColor,\r\n primaryColorTrans,\r\n primaryColorInvert,\r\n overlayBg,\r\n navBgColor,\r\n navTextColor,\r\n navHoverBgColor,\r\n navHoverTextColor,\r\n navAccentColor,\r\n navAccentTextColor,\r\n headerColor,\r\n headerColorInvert: ColorUtils.color.invert(headerColor),\r\n headerColorDarker: ColorUtils.color.brightness(headerColor, -20),\r\n headerColorBorder: ColorUtils.color.brightness(headerColor, 10),\r\n\r\n borderColor: theme.borderColor || '#B9B9B9',\r\n lightBorderColor: theme.lightBorderColor || '#e7e9ee',\r\n codeBorderColor: theme.codeBorderColor || 'transparent',\r\n\r\n inputBg: theme.inputBg || 'rgba(255, 255, 255, 0.0001)',\r\n placeHolder: theme.placeHolder || ColorUtils.color.brightness(lightFg, 20), // #dedede\r\n hoverColor: theme.hoverColor || ColorUtils.color.brightness(bg1, -5), // # f1f1f1\r\n\r\n rebelPink: '#e31c58',\r\n\r\n red: theme.red || '#F06560',\r\n lightRed: theme.lightRed || '#fff0f0',\r\n\r\n pink: theme.pink ? theme.pink : '#990055',\r\n lightPink: theme.lightPink ? theme.lightPink : '#ffb2b2',\r\n vtexPink: theme.vtexPink ? theme.vtexPink : '#D71D55',\r\n\r\n green: theme.green || '#690',\r\n lightGreen: theme.lightGreen || '#fbfff0',\r\n\r\n blue: theme.blue || '#47AFE8',\r\n lightBlue: theme.lightBlue || '#eff8fd',\r\n\r\n orange: theme.orange || '#FF9900',\r\n lightOrange: theme.lightOrange || '#fff5e6',\r\n\r\n yellow: theme.yellow || '#827717',\r\n lightYellow: theme.lightYellow || '#fff5cc',\r\n\r\n purple: theme.purple || '#786FF1',\r\n brown: theme.brown || '#D4AC0D',\r\n\r\n fgPositive: '#38853C',\r\n bgPositive: '#DFF1E0',\r\n borderPositive: '#83D187',\r\n\r\n fgPatch: '#6C6314',\r\n bgPatch: '#e9e7da',\r\n borderPatch: '#afa871',\r\n\r\n fgWarning: '#D56A00',\r\n bgWarning: '#FFEBD7',\r\n borderWarning: '#F5AE70',\r\n\r\n fgInfo: '#2978B5',\r\n bgInfo: '#DEECF7',\r\n borderInfo: '#7CBBEA',\r\n\r\n fgCritical: '#CC3D3D',\r\n bgCritical: '#F8E3E3',\r\n borderCritical: '#F49494',\r\n\r\n codeBg: theme.codeBg || ColorUtils.color.opacity(ColorUtils.color.brightness(bg1, -15), 0.7),\r\n codeFg: theme.codeFg || '#666',\r\n codePropertyColor: theme.codePropertyColor || '#905',\r\n codeKeywordColor: theme.codeKeywordColor || '#07a',\r\n codeOperatorColor: theme.codeOperatorColor || '#9a6e3a',\r\n };\r\n }\r\n return html`\r\n `;\r\n}\r\n","import { html } from 'lit';\r\n\r\n// Templates\r\nimport expandedEndpointTemplate from './expanded-endpoint-template';\r\nimport focusedEndpointTemplate from './focused-endpoint-template';\r\nimport overviewTemplate from './overview-template';\r\nimport endpointTemplate from './endpoint-template';\r\nimport { recoverPersistedApiKeys } from './security-scheme-template';\r\nimport headerTemplate from './header-template';\r\nimport navbarTemplate from './navbar-template';\r\nimport advancedSearchTemplate from './advance-search-template';\r\nimport SetTheme from '../utils/theme';\r\nimport { isValidHexColor } from '../utils/color-utils';\r\n\r\nexport default function mainBodyTemplate(isMini = false, showExpandCollapse = true, showTags = true, pathsExpanded = false) {\r\n if (!this.resolvedSpec) {\r\n return '';\r\n }\r\n if (this.persistAuth === 'true') {\r\n recoverPersistedApiKeys.call(this);\r\n }\r\n const newTheme = {\r\n bg1: isValidHexColor(this.bgColor) ? this.bgColor : '',\r\n fg1: isValidHexColor(this.textColor) ? this.textColor : '',\r\n headerColor: isValidHexColor(this.headerColor) ? this.headerColor : '',\r\n primaryColor: isValidHexColor(this.primaryColor) ? this.primaryColor : '',\r\n navBgColor: isValidHexColor(this.navBgColor) ? this.navBgColor : '',\r\n navTextColor: isValidHexColor(this.navTextColor) ? this.navTextColor : '',\r\n navHoverBgColor: isValidHexColor(this.navHoverBgColor) ? this.navHoverBgColor : '',\r\n navHoverTextColor: isValidHexColor(this.navHoverTextColor) ? this.navHoverTextColor : '',\r\n navAccentColor: isValidHexColor(this.navAccentColor) ? this.navAccentColor : '',\r\n navAccentTextColor: isValidHexColor(this.navAccentTextColor) ? this.navAccentTextColor : '',\r\n };\r\n /* eslint-disable indent */\r\n if (this.resolvedSpec.specLoadError) {\r\n if (isMini) {\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n
    ${this.resolvedSpec.info.description}
    \r\n `;\r\n }\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n \r\n ${headerTemplate.call(this)}\r\n
    \r\n \r\n
    \r\n

    ${this.resolvedSpec.info.title}

    \r\n
    ${this.resolvedSpec.info.description}
    \r\n
    \r\n
    \r\n `;\r\n }\r\n if (this.resolvedSpec.isSpecLoading) {\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n `;\r\n }\r\n\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n\r\n \r\n ${this.showHeader === 'false' ? '' : headerTemplate.call(this)}\r\n\r\n \r\n ${this.allowAdvancedSearch === 'false' ? '' : advancedSearchTemplate.call(this)}\r\n\r\n
    \r\n \r\n ${((this.renderStyle === 'read' || this.renderStyle === 'focused')\r\n && this.showSideNav === 'true'\r\n && this.resolvedSpec\r\n ) ? navbarTemplate.call(this) : ''\r\n }\r\n\r\n \r\n
    \r\n \r\n
    \r\n ${this.loading === true\r\n ? html`
    `\r\n : html`\r\n ${this.loadFailed === true\r\n ? html`
    Unable to load the Spec
    `\r\n : html`\r\n
    \r\n ${this.renderStyle === 'focused'\r\n ? html`${focusedEndpointTemplate.call(this)}`\r\n : html`\r\n ${this.showInfo === 'true' ? overviewTemplate.call(this) : ''}\r\n
    \r\n \r\n
    \r\n ${this.renderStyle === 'read'\r\n ? expandedEndpointTemplate.call(this)\r\n : endpointTemplate.call(this, showExpandCollapse, showTags, pathsExpanded)\r\n }\r\n `\r\n }\r\n
    \r\n `\r\n }`\r\n }\r\n
    \r\n \r\n
    \r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { css, LitElement, unsafeCSS } from 'lit';\r\nimport { marked } from 'marked';\r\nimport Prism from 'prismjs';\r\nimport 'prismjs/components/prism-css';\r\nimport 'prismjs/components/prism-yaml';\r\nimport 'prismjs/components/prism-go';\r\nimport 'prismjs/components/prism-java';\r\nimport 'prismjs/components/prism-json';\r\nimport 'prismjs/components/prism-bash';\r\nimport 'prismjs/components/prism-python';\r\nimport 'prismjs/components/prism-http';\r\nimport 'prismjs/components/prism-csharp';\r\n\r\n// Styles\r\nimport FontStyles from './styles/font-styles';\r\nimport InputStyles from './styles/input-styles';\r\nimport FlexStyles from './styles/flex-styles';\r\nimport TableStyles from './styles/table-styles';\r\nimport EndpointStyles from './styles/endpoint-styles';\r\nimport PrismStyles from './styles/prism-styles';\r\nimport TabStyles from './styles/tab-styles';\r\nimport NavStyles from './styles/nav-styles';\r\nimport InfoStyles from './styles/info-styles';\r\nimport CustomStyles from './styles/custom-styles';\r\n// import { expandCollapseNavBarTag } from '@/templates/navbar-template';\r\nimport { advancedSearch, pathIsInSearch, componentIsInSearch, rapidocApiKey, sleep } from './utils/common-utils';\r\nimport ProcessSpec from './utils/spec-parser';\r\nimport mainBodyTemplate from './templates/main-body-template';\r\nimport { applyApiKey, onClearAllApiKeys } from './templates/security-scheme-template';\r\nimport { setApiServer } from './templates/server-template';\r\n\r\nexport default class RapiDoc extends LitElement {\r\n constructor() {\r\n super();\r\n /* const intersectionObserverOptions = {\r\n root: this.getRootNode().host,\r\n rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom\r\n threshold: 0,\r\n };\r\n this.showSummaryWhenCollapsed = true;\r\n // Will activate intersection observer only after spec load and hash analyze\r\n // to scroll to the proper element without being reverted by observer behavior\r\n this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions);\r\n */\r\n this.isIntersectionObserverActive = false;\r\n }\r\n\r\n static get properties() {\r\n return {\r\n // Heading\r\n headingText: { type: String, attribute: 'heading-text' },\r\n gotoPath: { type: String, attribute: 'goto-path' },\r\n\r\n // Spec\r\n updateRoute: { type: String, attribute: 'update-route' },\r\n routePrefix: { type: String, attribute: 'route-prefix' },\r\n specUrl: { type: String, attribute: 'spec-url' },\r\n spec: { type: String, attribute: 'spec' },\r\n sortTags: { type: String, attribute: 'sort-tags' },\r\n generateMissingTags: { type: String, attribute: 'generate-missing-tags' },\r\n sortEndpointsBy: { type: String, attribute: 'sort-endpoints-by' },\r\n specFile: { type: String, attribute: false },\r\n\r\n // Postman collection\r\n postmanUrl: { type: String, attribute: 'postman-url' },\r\n\r\n // UI Layouts\r\n layout: { type: String },\r\n renderStyle: { type: String, attribute: 'render-style' },\r\n defaultSchemaTab: { type: String, attribute: 'default-schema-tab' },\r\n responseAreaHeight: { type: String, attribute: 'response-area-height' },\r\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\r\n persistAuth: { type: String, attribute: 'persist-auth' },\r\n onNavTagClick: { type: String, attribute: 'on-nav-tag-click' },\r\n\r\n // Schema Styles\r\n schemaStyle: { type: String, attribute: 'schema-style' },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n schemaHideReadOnly: { type: String, attribute: 'schema-hide-read-only' },\r\n schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },\r\n\r\n // API Server\r\n apiKeyName: { type: String, attribute: 'api-key-name' },\r\n apiKeyLocation: { type: String, attribute: 'api-key-location' },\r\n apiKeyValue: { type: String, attribute: 'api-key-value' },\r\n defaultApiServerUrl: { type: String, attribute: 'default-api-server' },\r\n serverUrl: { type: String, attribute: 'server-url' },\r\n oauthReceiver: { type: String, attribute: 'oauth-receiver' },\r\n\r\n // Hide/Show Sections & Enable Disable actions\r\n showHeader: { type: String, attribute: 'show-header' },\r\n showSideNav: { type: String, attribute: 'show-side-nav' },\r\n showInfo: { type: String, attribute: 'show-info' },\r\n allowAuthentication: { type: String, attribute: 'allow-authentication' },\r\n allowTry: { type: String, attribute: 'allow-try' },\r\n showCurlBeforeTry: { type: String, attribute: 'show-curl-before-try' },\r\n allowSpecUrlLoad: { type: String, attribute: 'allow-spec-url-load' },\r\n allowSpecFileLoad: { type: String, attribute: 'allow-spec-file-load' },\r\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\r\n allowSearch: { type: String, attribute: 'allow-search' },\r\n allowAdvancedSearch: { type: String, attribute: 'allow-advanced-search' },\r\n allowServerSelection: { type: String, attribute: 'allow-server-selection' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n showComponents: { type: String, attribute: 'show-components' },\r\n pageDirection: { type: String, attribute: 'page-direction' },\r\n\r\n // Main Colors and Font\r\n theme: { type: String },\r\n bgColor: { type: String, attribute: 'bg-color' },\r\n textColor: { type: String, attribute: 'text-color' },\r\n headerColor: { type: String, attribute: 'header-color' },\r\n primaryColor: { type: String, attribute: 'primary-color' },\r\n fontSize: { type: String, attribute: 'font-size' },\r\n regularFont: { type: String, attribute: 'regular-font' },\r\n monoFont: { type: String, attribute: 'mono-font' },\r\n mediumFont: { type: String, attribute: 'medium-font' },\r\n loadFonts: { type: String, attribute: 'load-fonts' },\r\n cssFile: { type: String, attribute: 'css-file' },\r\n cssClasses: { type: String, attribute: 'css-classes' },\r\n\r\n // Nav Bar Colors\r\n navBgColor: { type: String, attribute: 'nav-bg-color' },\r\n navTextColor: { type: String, attribute: 'nav-text-color' },\r\n navHoverBgColor: { type: String, attribute: 'nav-hover-bg-color' },\r\n navHoverTextColor: { type: String, attribute: 'nav-hover-text-color' },\r\n navAccentColor: { type: String, attribute: 'nav-accent-color' },\r\n navAccentTextColor: { type: String, attribute: 'nav-accent-text-color' },\r\n navActiveItemMarker: { type: String, attribute: 'nav-active-item-marker' },\r\n navItemSpacing: { type: String, attribute: 'nav-item-spacing' },\r\n showMethodInNavBar: { type: String, attribute: 'show-method-in-nav-bar' },\r\n usePathInNavBar: { type: String, attribute: 'use-path-in-nav-bar' },\r\n infoDescriptionHeadingsInNavBar: { type: String, attribute: 'info-description-headings-in-navbar' },\r\n\r\n // Fetch Options\r\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\r\n\r\n // Filters\r\n matchPaths: { type: String, attribute: 'match-paths' },\r\n matchType: { type: String, attribute: 'match-type' },\r\n\r\n // Internal Properties\r\n loading: { type: Boolean }, // indicates spec is being loaded\r\n focusedElementId: { type: String }, // updating the focusedElementId will automatically render appropriate section in focused mode\r\n showAdvancedSearchDialog: { type: Boolean },\r\n advancedSearchMatches: { type: Object },\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n InputStyles,\r\n FlexStyles,\r\n TableStyles,\r\n EndpointStyles,\r\n PrismStyles,\r\n TabStyles,\r\n NavStyles,\r\n InfoStyles,\r\n css`\r\n :host {\r\n display:flex;\r\n flex-direction: column;\r\n min-width:360px;\r\n width:100%;\r\n height:100%;\r\n margin:0;\r\n padding:0;\r\n overflow: hidden;\r\n letter-spacing:normal;\r\n color:var(--fg);\r\n background-color:var(--bg);\r\n font-family:var(--font-regular);\r\n }\r\n :where(button, input[type=\"checkbox\"], [tabindex=\"0\"]):focus-visible { box-shadow: var(--focus-shadow); }\r\n :where(input[type=\"text\"], input[type=\"password\"], select, textarea):focus-visible { border-color: var(--primary-color); }\r\n .body {\r\n display:flex;\r\n height:100%;\r\n width:100%;\r\n overflow:hidden;\r\n max-width: 2087px;\r\n }\r\n .main-content { \r\n margin:0;\r\n padding: 0; \r\n display:block;\r\n flex:1;\r\n height:100%;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--border-color) transparent;\r\n }\r\n\r\n .main-content-inner--view-mode {\r\n padding: 0 8px;\r\n }\r\n .main-content::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n .main-content::-webkit-scrollbar-track {\r\n background:transparent;\r\n }\r\n .main-content::-webkit-scrollbar-thumb {\r\n background-color: var(--border-color);\r\n }\r\n .section-gap.section-tag {\r\n border-bottom:1px solid var(--border-color);\r\n }\r\n .section-tag-header {\r\n position:relative;\r\n cursor: n-resize;\r\n padding: 12px 0;\r\n }\r\n .collapsed .section-tag-header:hover{\r\n cursor: s-resize;\r\n }\r\n\r\n .section-tag-header:hover{\r\n background-image: linear-gradient(to right, rgba(0,0,0,0), var(--border-color), rgba(0,0,0,0));\r\n }\r\n\r\n .section-tag-header:hover::after {\r\n position:absolute;\r\n margin-left:-24px;\r\n font-size:20px;\r\n top: calc(50% - 14px);\r\n color:var(--primary-color);\r\n content: '⬆'; \r\n }\r\n\r\n .collapsed .section-tag-header::after {\r\n position:absolute;\r\n margin-left:-24px;\r\n font-size:20px;\r\n top: calc(50% - 14px);\r\n color: var(--border-color);\r\n content: '⬇'; \r\n }\r\n .collapsed .section-tag-header:hover::after {\r\n color:var(--primary-color);\r\n }\r\n\r\n .collapsed .section-tag-body {\r\n display:none;\r\n }\r\n\r\n .logo {\r\n height:36px;\r\n width:36px;\r\n margin-left:5px; \r\n }\r\n .only-large-screen-flex,\r\n .only-large-screen{\r\n display:none;\r\n }\r\n .tag.title {\r\n text-transform: uppercase;\r\n }\r\n .main-header {\r\n background-color:var(--header-bg);\r\n color:var(--header-fg);\r\n width:100%;\r\n }\r\n .header-title {\r\n font-size:calc(var(--font-size-regular) + 8px); \r\n padding:0 8px;\r\n }\r\n input.header-input{\r\n background:var(--header-color-darker);\r\n color:var(--header-fg);\r\n border:1px solid var(--header-color-border);\r\n flex:1; \r\n padding-right:24px;\r\n border-radius:3px;\r\n }\r\n input.header-input::placeholder {\r\n opacity:0.4;\r\n }\r\n .loader {\r\n margin: 16px auto 16px auto; \r\n border: 4px solid var(--bg3);\r\n border-radius: 50%;\r\n border-top: 4px solid var(--primary-color);\r\n width: 36px;\r\n height: 36px;\r\n animation: spin 2s linear infinite;\r\n }\r\n .expanded-endpoint-body { \r\n position: relative;\r\n padding: 6px 0px; \r\n }\r\n .expanded-endpoint-body .tag-description {\r\n background: var(--code-bg);\r\n border-radius: var(--border-radius);\r\n transition: max-height .2s ease-out;\r\n }\r\n .expanded-endpoint-body .tag-icon {\r\n transition: transform .2s ease-out;\r\n }\r\n .expanded-endpoint-body .tag-icon.expanded {\r\n transform: rotate(180deg);\r\n }\r\n .divider { \r\n border-top: 2px solid var(--border-color);\r\n margin: 24px 0;\r\n width:100%;\r\n }\r\n\r\n .tooltip {\r\n cursor:pointer;\r\n border: 1px solid var(--border-color);\r\n border-left-width: 4px;\r\n margin-left:2px;\r\n }\r\n .tooltip a {\r\n color: var(--fg2);\r\n text-decoration: none;\r\n }\r\n .tooltip-text {\r\n color: var(--fg2);\r\n max-width: 400px;\r\n position: absolute;\r\n z-index:1;\r\n background-color: var(--bg2);\r\n visibility: hidden;\r\n\r\n overflow-wrap: break-word;\r\n }\r\n .tooltip:hover {\r\n color: var(--primary-color);\r\n border-color: var(--primary-color);\r\n }\r\n .tooltip:hover a:hover {\r\n color: var(--primary-color);\r\n }\r\n\r\n .tooltip:hover .tooltip-text {\r\n visibility: visible;\r\n }\r\n\r\n @keyframes spin {\r\n 0% { transform: rotate(0deg); }\r\n 100% { transform: rotate(360deg); }\r\n }\r\n\r\n .nav-method { font-weight: bold; margin-right: 4px; font-size: calc(var(--font-size-small) - 2px); white-space: nowrap; }\r\n .nav-method.false { display: none; }\r\n\r\n .nav-method.as-colored-text.get { color:var(--get-color); }\r\n .nav-method.as-colored-text.put { color:var(--put-color); }\r\n .nav-method.as-colored-text.post { color:var(--post-color); }\r\n .nav-method.as-colored-text.delete { color:var(--delete-color); }\r\n .nav-method.as-colored-text.head, .nav-method.as-colored-text.patch, .nav-method.as-colored-text.options { color:var(--nav-head-color); }\r\n \r\n .nav-method.as-colored-block {\r\n padding: 1px 4px;\r\n min-width: 30px;\r\n border-radius: 4px 0 0 4px;\r\n color: #000;\r\n }\r\n .colored-block .nav-method.as-colored-block {\r\n outline: 1px solid;\r\n }\r\n\r\n .nav-method.as-colored-block.get { background-color: var(--blue); }\r\n .nav-method.as-colored-block.put { background-color: var(--orange); }\r\n .nav-method.as-colored-block.post { background-color: var(--green); }\r\n .nav-method.as-colored-block.delete { background-color: var(--red); }\r\n .nav-method.as-colored-block.head, .nav-method.as-colored-block.patch , .nav-method.as-colored-block.options { \r\n background-color: var(--yellow); \r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n .nav-bar {\r\n width: 260px;\r\n display:flex;\r\n }\r\n .only-large-screen{\r\n display:block;\r\n }\r\n .only-large-screen-flex{\r\n display:flex;\r\n }\r\n .section-gap { \r\n padding: 0 0 0 24px; \r\n }\r\n .section-gap--focused-mode {\r\n padding: 24px 8px; \r\n }\r\n .section-gap--read-mode { \r\n padding: 24px 8px; \r\n }\r\n .endpoint-body {\r\n position: relative;\r\n padding:36px 0 48px 0;\r\n }\r\n }\r\n\r\n @media (min-width: 2560px) {\r\n .body {\r\n padding-left: 316px;\r\n padding-right: 221px;\r\n }\r\n }\r\n\r\n @media only screen and (min-width: 1024px) {\r\n .nav-bar {\r\n width: ${unsafeCSS(this.fontSize === 'default' ? '300px' : this.fontSize === 'large' ? '315px' : '330px')};\r\n display:flex;\r\n }\r\n .section-gap--focused-mode { \r\n padding: 12px 80px 12px 80px; \r\n }\r\n .section-gap--read-mode { \r\n padding: 24px 80px 12px 80px; \r\n }\r\n }`,\r\n CustomStyles,\r\n ];\r\n }\r\n\r\n // Startup\r\n connectedCallback() {\r\n super.connectedCallback();\r\n const parent = this.parentElement;\r\n if (parent) {\r\n /* if (parent.offsetWidth === 0 && parent.style.width === '') {\r\n parent.style.width = '100vw';\r\n }\r\n if (parent.offsetHeight === 0 && parent.style.height === '') {\r\n parent.style.height = '100vh';\r\n } */\r\n if (parent.tagName === 'BODY') {\r\n if (!parent.style.marginTop) { parent.style.marginTop = '0'; }\r\n if (!parent.style.marginRight) { parent.style.marginRight = '0'; }\r\n if (!parent.style.marginBottom) { parent.style.marginBottom = '0'; }\r\n if (!parent.style.marginLeft) { parent.style.marginLeft = '0'; }\r\n }\r\n }\r\n\r\n if (this.loadFonts !== 'false') {\r\n const fontDescriptor = {\r\n family: 'Open Sans',\r\n style: 'normal',\r\n weight: '300',\r\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\r\n };\r\n const fontWeight300 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontDescriptor.weight = '600';\r\n const fontWeight600 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontWeight300.load().then((font) => { document.fonts.add(font); });\r\n fontWeight600.load().then((font) => { document.fonts.add(font); });\r\n }\r\n\r\n if (!this.layout || !'row, column,'.includes(`${this.layout},`)) { this.layout = 'row'; }\r\n if (!this.renderStyle || !'read, view, focused,'.includes(`${this.renderStyle},`)) { this.renderStyle = 'focused'; }\r\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\r\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\r\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\r\n }\r\n if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {\r\n this.defaultSchemaTab = 'example';\r\n } else if (this.defaultSchemaTab === 'model') {\r\n this.defaultSchemaTab = 'schema';\r\n }\r\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\r\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\r\n\r\n if (!this.schemaHideReadOnly || !'default, never,'.includes(`${this.schemaHideReadOnly},`)) { this.schemaHideReadOnly = 'default'; }\r\n if (!this.schemaHideWriteOnly || !'default, never,'.includes(`${this.schemaHideWriteOnly},`)) { this.schemaHideWriteOnly = 'default'; }\r\n\r\n if (!this.fillRequestFieldsWithExample || !'true, false,'.includes(`${this.fillRequestFieldsWithExample},`)) { this.fillRequestFieldsWithExample = 'true'; }\r\n if (!this.persistAuth || !'true, false,'.includes(`${this.persistAuth},`)) { this.persistAuth = 'false'; }\r\n if (!this.responseAreaHeight) {\r\n this.responseAreaHeight = '400px';\r\n }\r\n\r\n if (!this.allowSearch || !'true, false,'.includes(`${this.allowSearch},`)) { this.allowSearch = 'true'; }\r\n if (!this.allowAdvancedSearch || !'true, false,'.includes(`${this.allowAdvancedSearch},`)) { this.allowAdvancedSearch = 'true'; }\r\n\r\n if (!this.allowTry || !'true, false,'.includes(`${this.allowTry},`)) { this.allowTry = 'true'; }\r\n if (!this.apiKeyValue) { this.apiKeyValue = '-'; }\r\n if (!this.apiKeyLocation) { this.apiKeyLocation = 'header'; }\r\n if (!this.apiKeyName) { this.apiKeyName = ''; }\r\n\r\n if (!this.oauthReceiver) { this.oauthReceiver = 'oauth-receiver.html'; }\r\n if (!this.updateRoute || !'true, false,'.includes(`${this.updateRoute},`)) { this.updateRoute = 'true'; }\r\n if (!this.routePrefix) { this.routePrefix = window.location.href.indexOf('#') > -1 ? '#' : '?endpoint='; }\r\n if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; }\r\n if (!this.generateMissingTags || !'true, false,'.includes(`${this.generateMissingTags},`)) { this.generateMissingTags = 'false'; }\r\n if (!this.sortEndpointsBy || !'method, path, summary, none,'.includes(`${this.sortEndpointsBy},`)) { this.sortEndpointsBy = 'path'; }\r\n\r\n if (!this.onNavTagClick || !'expand-collapse, show-description,'.includes(`${this.onNavTagClick},`)) { this.onNavTagClick = 'expand-collapse'; }\r\n if (!this.navItemSpacing || !'compact, relaxed, default,'.includes(`${this.navItemSpacing},`)) { this.navItemSpacing = 'default'; }\r\n if (!this.showMethodInNavBar || !'false, as-plain-text, as-colored-text, as-colored-block,'.includes(`${this.showMethodInNavBar},`)) { this.showMethodInNavBar = 'false'; }\r\n if (!this.usePathInNavBar || !'true, false,'.includes(`${this.usePathInNavBar},`)) { this.usePathInNavBar = 'false'; }\r\n if (!this.navActiveItemMarker || !'left-bar, colored-block'.includes(`${this.navActiveItemMarker},`)) { this.navActiveItemMarker = 'left-bar'; }\r\n\r\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\r\n if (!this.showInfo || !'true, false,'.includes(`${this.showInfo},`)) { this.showInfo = 'true'; }\r\n if (!this.allowServerSelection || !'true, false,'.includes(`${this.allowServerSelection},`)) { this.allowServerSelection = 'true'; }\r\n if (!this.allowAuthentication || !'true, false,'.includes(`${this.allowAuthentication},`)) { this.allowAuthentication = 'true'; }\r\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\r\n\r\n if (!this.showSideNav || !'true false'.includes(this.showSideNav)) { this.showSideNav = 'true'; }\r\n if (!this.showComponents || !'true false'.includes(this.showComponents)) { this.showComponents = 'false'; }\r\n if (!this.infoDescriptionHeadingsInNavBar || !'true, false,'.includes(`${this.infoDescriptionHeadingsInNavBar},`)) { this.infoDescriptionHeadingsInNavBar = 'false'; }\r\n if (!this.fetchCredentials || !'omit, same-origin, include,'.includes(`${this.fetchCredentials},`)) { this.fetchCredentials = ''; }\r\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\r\n\r\n if (!this.showAdvancedSearchDialog) { this.showAdvancedSearchDialog = false; }\r\n\r\n if (!this.cssFile) { this.cssFile = null; }\r\n if (!this.cssClasses) { this.cssClasses = ''; }\r\n\r\n Prism.languages.node = Prism.languages.javascript;\r\n\r\n marked.setOptions({\r\n highlight: (code, lang) => {\r\n if (lang === 'curl') lang = 'bash';\r\n if (Prism.languages[lang]) {\r\n return Prism.highlight(code, Prism.languages[lang], lang);\r\n }\r\n return code;\r\n },\r\n });\r\n\r\n window.addEventListener('hashchange', () => {\r\n this.scrollToPath(this.getElementIDFromURL());\r\n }, true);\r\n }\r\n\r\n // Cleanup\r\n disconnectedCallback() {\r\n /* if (this.intersectionObserver) {\r\n this.intersectionObserver.disconnect();\r\n } */\r\n super.disconnectedCallback();\r\n }\r\n\r\n infoDescriptionHeadingRenderer() {\r\n const renderer = new marked.Renderer();\r\n renderer.heading = ((text, level, raw, slugger) => `${text}`);\r\n return renderer;\r\n }\r\n\r\n render() {\r\n // return render(mainBodyTemplate(this), this.shadowRoot, { eventContext: this });\r\n /* const cssLinkEl = document.querySelector(`link[href*=\"${this.cssFile}\"]`);\r\n // adding custom style for RapiDoc\r\n if (cssLinkEl) {\r\n this.shadowRoot.appendChild(cssLinkEl.cloneNode());\r\n } */\r\n return mainBodyTemplate.call(this);\r\n }\r\n\r\n /* observeExpandedContent() {\r\n // Main Container\r\n const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me');\r\n observeOverviewEls.forEach((targetEl) => {\r\n this.intersectionObserver.observe(targetEl);\r\n });\r\n } */\r\n\r\n attributeChangedCallback(name, oldVal, newVal) {\r\n if (name === 'spec-url' || name === 'spec') {\r\n if (oldVal !== newVal) {\r\n // put it at the end of event-loop to load all the attributes\r\n window.setTimeout(async () => {\r\n await this.loadSpec(newVal);\r\n // If goto-path is provided and no location-hash is present then try to scroll there\r\n if (this.gotoPath && !window.location.hash) {\r\n this.scrollToPath(this.gotoPath);\r\n }\r\n }, 0);\r\n }\r\n }\r\n if (name === 'render-style') {\r\n if (newVal === 'read') {\r\n window.setTimeout(() => {\r\n this.observeExpandedContent();\r\n }, 100);\r\n } else {\r\n // this.intersectionObserver.disconnect();\r\n }\r\n }\r\n if (name === 'api-key-name' || name === 'api-key-location' || name === 'api-key-value') {\r\n let updateSelectedApiKey = false;\r\n let apiKeyName = '';\r\n let apiKeyLocation = '';\r\n let apiKeyValue = '';\r\n\r\n if (name === 'api-key-name') {\r\n if (this.getAttribute('api-key-location') && this.getAttribute('api-key-value')) {\r\n apiKeyName = newVal;\r\n apiKeyLocation = this.getAttribute('api-key-location');\r\n apiKeyValue = this.getAttribute('api-key-value');\r\n updateSelectedApiKey = true;\r\n }\r\n } else if (name === 'api-key-location') {\r\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-value')) {\r\n apiKeyLocation = newVal;\r\n apiKeyName = this.getAttribute('api-key-name');\r\n apiKeyValue = this.getAttribute('api-key-value');\r\n updateSelectedApiKey = true;\r\n }\r\n } else if (name === 'api-key-value') {\r\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-location')) {\r\n apiKeyValue = newVal;\r\n apiKeyLocation = this.getAttribute('api-key-location');\r\n apiKeyName = this.getAttribute('api-key-name');\r\n updateSelectedApiKey = true;\r\n }\r\n }\r\n\r\n if (updateSelectedApiKey) {\r\n if (this.resolvedSpec) {\r\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => v.securitySchemeId === rapidocApiKey);\r\n if (!rapiDocApiKey) {\r\n this.resolvedSpec.securitySchemes.push({\r\n securitySchemeId: rapidocApiKey,\r\n description: 'api-key provided in rapidoc element attributes',\r\n type: 'apiKey',\r\n name: apiKeyName,\r\n in: apiKeyLocation,\r\n value: apiKeyValue,\r\n finalKeyValue: apiKeyValue,\r\n });\r\n } else {\r\n rapiDocApiKey.name = apiKeyName;\r\n rapiDocApiKey.in = apiKeyLocation;\r\n rapiDocApiKey.value = apiKeyValue;\r\n rapiDocApiKey.finalKeyValue = apiKeyValue;\r\n }\r\n this.requestUpdate();\r\n }\r\n }\r\n }\r\n super.attributeChangedCallback(name, oldVal, newVal);\r\n }\r\n\r\n onSpecUrlChange() {\r\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\r\n }\r\n\r\n onSpecFileChange(e) {\r\n this.setAttribute('spec-file', this.shadowRoot.getElementById('spec-file').value);\r\n const specFile = e.target.files[0];\r\n const reader = new FileReader();\r\n reader.onload = () => {\r\n try {\r\n const specObj = JSON.parse(reader.result);\r\n this.loadSpec(specObj);\r\n this.shadowRoot.getElementById('spec-url').value = '';\r\n } catch (err) {\r\n console.error('RapiDoc: Unable to read or parse json'); // eslint-disable-line no-console\r\n }\r\n };\r\n // Read the Text file\r\n reader.readAsText(specFile);\r\n }\r\n\r\n onFileLoadClick() {\r\n this.shadowRoot.getElementById('spec-file').click();\r\n }\r\n\r\n onSearchChange(e) {\r\n this.matchPaths = e.target.value;\r\n this.resolvedSpec.tags.forEach((tag) => tag.paths.filter((v) => {\r\n if (this.matchPaths) {\r\n // v.expanded = false;\r\n if (pathIsInSearch(this.matchPaths, v, this.matchType)) {\r\n tag.expanded = true;\r\n }\r\n }\r\n }));\r\n this.resolvedSpec.components.forEach((component) => component.subComponents.filter((v) => {\r\n v.expanded = false;\r\n if (!this.matchPaths || componentIsInSearch(this.matchPaths, v)) {\r\n v.expanded = true;\r\n }\r\n }));\r\n this.requestUpdate();\r\n }\r\n\r\n onClearSearch() {\r\n const searchEl = this.shadowRoot.getElementById('nav-bar-search');\r\n searchEl.value = '';\r\n this.matchPaths = '';\r\n this.resolvedSpec.components.forEach((component) => component.subComponents.filter((v) => {\r\n v.expanded = true;\r\n }));\r\n }\r\n\r\n onShowSearchModalClicked() {\r\n this.showAdvancedSearchDialog = true;\r\n }\r\n\r\n // Event Handler on Dialog-Box is opened\r\n async onOpenSearchDialog(e) {\r\n // Set focus to text input\r\n const inputEl = e.detail.querySelector('input');\r\n await sleep(0);\r\n if (inputEl) {\r\n inputEl.focus();\r\n }\r\n }\r\n\r\n // Public Method\r\n async loadSpec(specUrl) {\r\n if (!specUrl) {\r\n return;\r\n }\r\n this.matchPaths = '';\r\n try {\r\n this.resolvedSpec = {\r\n specLoadError: false,\r\n isSpecLoading: true,\r\n tags: [],\r\n };\r\n this.loading = true;\r\n this.loadFailed = false;\r\n const processedSpec = await ProcessSpec.call(\r\n this,\r\n specUrl,\r\n this.spec,\r\n this.generateMissingTags === 'true',\r\n this.sortTags === 'true',\r\n this.getAttribute('sort-endpoints-by'),\r\n this.getAttribute('api-key-name'),\r\n this.getAttribute('api-key-location'),\r\n this.getAttribute('api-key-value'),\r\n this.getAttribute('server-url'),\r\n );\r\n this.loading = false;\r\n this.afterSpecParsedAndValidated(processedSpec);\r\n } catch (err) {\r\n this.loading = false;\r\n this.loadFailed = true;\r\n this.resolvedSpec = null;\r\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\r\n }\r\n }\r\n\r\n async afterSpecParsedAndValidated(spec) {\r\n this.resolvedSpec = spec;\r\n this.selectedServer = undefined;\r\n if (this.defaultApiServerUrl) {\r\n if (this.defaultApiServerUrl === this.serverUrl) {\r\n this.selectedServer = {\r\n url: this.serverUrl,\r\n computedUrl: this.serverUrl,\r\n };\r\n } else if (this.resolvedSpec.servers) {\r\n this.selectedServer = this.resolvedSpec.servers.find((v) => (v.url === this.defaultApiServerUrl));\r\n }\r\n }\r\n if (!this.selectedServer) {\r\n if (this.resolvedSpec.servers) {\r\n this.selectedServer = this.resolvedSpec.servers[0]; // eslint-disable-line prefer-destructuring\r\n }\r\n }\r\n this.requestUpdate();\r\n // eslint-disable-next-line no-await-in-loop\r\n while (!await this.updateComplete);\r\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\r\n this.dispatchEvent(specLoadedEvent);\r\n\r\n // Initiate IntersectionObserver and put it at the end of event loop, to allow loading all the child elements (must for larger specs)\r\n // this.intersectionObserver.disconnect();\r\n if (this.renderStyle === 'read') {\r\n await sleep(100);\r\n this.observeExpandedContent(); // This will auto-highlight the selected nav-item in read-mode\r\n }\r\n\r\n this.isIntersectionObserverActive = true;\r\n\r\n // On first time Spec load, try to navigate to location hash if provided\r\n const elementId = this.getElementIDFromURL();\r\n\r\n if (elementId) {\r\n if (this.renderStyle === 'view') {\r\n this.expandAndGotoOperation(elementId, true, true);\r\n } else {\r\n this.scrollToPath(elementId);\r\n }\r\n } else if (this.renderStyle === 'focused') {\r\n // If goto-path is provided and no location-hash is present then try to scroll to default element\r\n if (!this.gotoPath) {\r\n const defaultElementId = this.showInfo ? 'overview' : this.resolvedSpec.tags[0]?.paths[0];\r\n this.scrollToPath(defaultElementId);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Return the URL from where is served the RapiDoc component, removing any hash and route prefix\r\n */\r\n getComponentBaseURL() {\r\n const { href } = window.location;\r\n\r\n // Remove end of string # or /\r\n const cleanRouterPrefix = this.routePrefix.replace(/(#|\\/)$/, '');\r\n if (!cleanRouterPrefix) {\r\n return href.split('#')[0];\r\n }\r\n\r\n const splitRoute = href.split(cleanRouterPrefix);\r\n\r\n if (splitRoute.length <= 0) {\r\n return href;\r\n }\r\n\r\n return splitRoute[0];\r\n }\r\n\r\n /**\r\n * Returns the element id encoded in the URL's hash or router prefix, or\r\n * an empty string when the prefix isn't present (so callers don't get the\r\n * full href and pass it to scrollToPath, which would mis-focus the doc).\r\n */\r\n getElementIDFromURL() {\r\n const { href } = window.location;\r\n const baseURL = this.getComponentBaseURL();\r\n const prefix = `${baseURL}${this.routePrefix}`;\r\n if (!href.startsWith(prefix) || href === baseURL) {\r\n return '';\r\n }\r\n return href.slice(prefix.length);\r\n }\r\n\r\n replaceHistoryState(hashId) {\r\n const baseURL = this.getComponentBaseURL();\r\n window.history.replaceState(null, null, `${baseURL}${this.routePrefix || '#'}${hashId}`);\r\n }\r\n\r\n expandAndGotoOperation(elementId, scrollToElement = true) {\r\n if (!this.resolvedSpec) {\r\n return;\r\n }\r\n // Expand full operation and tag\r\n let isExpandingNeeded = true;\r\n const tmpElementId = elementId.indexOf('#') === -1 ? elementId : elementId.substring(1);\r\n if (tmpElementId.startsWith('overview') || tmpElementId === 'servers' || tmpElementId === 'auth') {\r\n isExpandingNeeded = false;\r\n } else {\r\n for (let i = 0; i < this.resolvedSpec.tags?.length; i++) {\r\n const tag = this.resolvedSpec.tags[i];\r\n const path = tag.paths?.find((p) => p.elementId === elementId);\r\n if (path) {\r\n if (path.expanded && tag.expanded) {\r\n isExpandingNeeded = false;\r\n } else {\r\n path.expanded = true;\r\n tag.expanded = true;\r\n }\r\n }\r\n }\r\n }\r\n if (scrollToElement) {\r\n // requestUpdate() and delay required, else we cant find element\r\n if (isExpandingNeeded) {\r\n this.requestUpdate();\r\n }\r\n window.setTimeout(() => {\r\n const gotoEl = this.shadowRoot.getElementById(tmpElementId);\r\n if (gotoEl) {\r\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n if (this.updateRoute === 'true') {\r\n this.replaceHistoryState(tmpElementId);\r\n }\r\n }\r\n }, isExpandingNeeded ? 150 : 0);\r\n }\r\n }\r\n\r\n isValidTopId(id) {\r\n return (id.startsWith('overview') || id === 'servers' || id === 'auth');\r\n }\r\n\r\n isValidPathId(id) {\r\n if (id === 'overview' && this.showInfo) {\r\n return true;\r\n }\r\n if (id === 'servers' && this.allowServerSelection) {\r\n return true;\r\n }\r\n if (id === 'auth' && this.allowAuthentication) {\r\n return true;\r\n }\r\n if (id.startsWith('tag--')) {\r\n return this.resolvedSpec?.tags?.find((tag) => tag.elementId === id);\r\n }\r\n return this.resolvedSpec?.tags?.find((tag) => tag.paths.find((path) => path.elementId === id));\r\n }\r\n\r\n onIntersect(entries) {\r\n if (this.isIntersectionObserverActive === false) {\r\n return;\r\n }\r\n\r\n entries.forEach((entry) => {\r\n if (entry.isIntersecting && entry.intersectionRatio > 0) {\r\n const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active');\r\n const newNavEl = this.shadowRoot.getElementById(`link-${entry.target.id}`);\r\n\r\n // Add active class in the new element\r\n if (newNavEl) {\r\n if (this.updateRoute === 'true') {\r\n this.replaceHistoryState(entry.target.id);\r\n }\r\n // newNavEl.scrollIntoView({ behavior: 'auto', block: 'center' });\r\n newNavEl.classList.add('active');\r\n newNavEl.part.add('section-navbar-active-item');\r\n }\r\n\r\n // Remove active class from previous element\r\n // if it is different from the new one (edge case on loading in read render style)\r\n if (oldNavEl && oldNavEl !== newNavEl) {\r\n oldNavEl.classList.remove('active');\r\n oldNavEl.part.remove('section-navbar-active-item');\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Called by anchor tags created using markdown\r\n handleHref(e) {\r\n if (e.target.tagName.toLowerCase() === 'a') {\r\n if (e.target.getAttribute('href').startsWith('#')) {\r\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\r\n if (gotoEl) {\r\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Called by\r\n * - onClick of Navigation Bar\r\n * - onClick of Advanced Search items\r\n *\r\n * Functionality:\r\n * 1. First deactivate IntersectionObserver\r\n * 2. Scroll to the element\r\n * 3. Activate IntersectionObserver (after little delay)\r\n *\r\n */\r\n async scrollToEventTarget(event, scrollNavItemToView = true) {\r\n if (!(event.type === 'click' || (event.type === 'keyup' && event.keyCode === 13))) {\r\n return;\r\n }\r\n const navEl = event.target;\r\n if (!navEl.dataset.contentId) {\r\n return;\r\n }\r\n this.isIntersectionObserverActive = false;\r\n if (this.renderStyle === 'focused') {\r\n const requestEl = this.shadowRoot.querySelector('api-request');\r\n if (requestEl) {\r\n requestEl.beforeNavigationFocusedMode();\r\n }\r\n }\r\n this.scrollToPath(navEl.dataset.contentId, true, scrollNavItemToView);\r\n setTimeout(() => {\r\n this.isIntersectionObserverActive = true;\r\n }, 300);\r\n }\r\n\r\n // Public Method (scrolls to a given path and highlights the left-nav selection)\r\n async scrollToPath(elementId, expandPath = true, scrollNavItemToView = true) {\r\n if (this.renderStyle === 'focused') {\r\n // for focused mode update this.focusedElementId to update the rendering, else it wont find the needed html elements\r\n // focusedElementId will get validated in the template\r\n this.focusedElementId = elementId;\r\n await sleep(0);\r\n }\r\n if (this.renderStyle === 'view') {\r\n this.expandAndGotoOperation(elementId, expandPath, true);\r\n } else {\r\n let isValidElementId = false;\r\n const contentEl = this.shadowRoot.getElementById(elementId);\r\n if (contentEl) {\r\n isValidElementId = true;\r\n contentEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n } else {\r\n isValidElementId = false;\r\n }\r\n if (isValidElementId) {\r\n // for focused style it is important to reset request-body-selection and response selection which maintains the state for in case of multiple req-body or multiple response mime-type\r\n if (this.renderStyle === 'focused') {\r\n const requestEl = this.shadowRoot.querySelector('api-request');\r\n if (requestEl) {\r\n requestEl.afterNavigationFocusedMode();\r\n }\r\n const responseEl = this.shadowRoot.querySelector('api-response');\r\n if (responseEl) {\r\n responseEl.resetSelection();\r\n }\r\n }\r\n\r\n // Update Location Hash\r\n if (this.updateRoute === 'true') {\r\n this.replaceHistoryState(elementId);\r\n }\r\n\r\n // Update NavBar View and Styles\r\n const newNavEl = this.shadowRoot.getElementById(`link-${elementId}`);\r\n\r\n if (newNavEl) {\r\n if (scrollNavItemToView) {\r\n newNavEl.scrollIntoView({ behavior: 'auto', block: 'center' });\r\n }\r\n await sleep(0);\r\n const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active');\r\n if (oldNavEl) {\r\n oldNavEl.classList.remove('active');\r\n oldNavEl.part.remove('active');\r\n oldNavEl.part.remove('section-navbar-active-item');\r\n }\r\n newNavEl.classList.add('active'); // must add the class after scrolling\r\n newNavEl.part.add('section-navbar-active-item');\r\n // this.requestUpdate();\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Public Method - to update security-scheme of type http\r\n setHttpUserNameAndPassword(securitySchemeId, username, password) {\r\n return applyApiKey.call(this, securitySchemeId, username, password);\r\n }\r\n\r\n // Public Method - to update security-scheme of type apiKey or OAuth\r\n setApiKey(securitySchemeId, apiKeyValue) {\r\n return applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\r\n }\r\n\r\n // Public Method\r\n removeAllSecurityKeys() {\r\n return onClearAllApiKeys.call(this);\r\n }\r\n\r\n // Public Method\r\n setApiServer(apiServerUrl) {\r\n // return apiServerUrl;\r\n return setApiServer.call(this, apiServerUrl);\r\n }\r\n\r\n // Event handler for Advanced Search text-inputs and checkboxes\r\n onAdvancedSearch(ev, delay) {\r\n const eventTargetEl = ev.target;\r\n clearTimeout(this.timeoutId);\r\n this.timeoutId = setTimeout(() => {\r\n let searchInputEl;\r\n if (eventTargetEl.type === 'text') {\r\n searchInputEl = eventTargetEl;\r\n } else {\r\n searchInputEl = eventTargetEl.closest('.advanced-search-options').querySelector('input[type=text]');\r\n }\r\n const searchOptions = [...eventTargetEl.closest('.advanced-search-options').querySelectorAll('input:checked')].map((v) => v.id);\r\n this.advancedSearchMatches = advancedSearch(searchInputEl.value, this.resolvedSpec.tags, searchOptions);\r\n }, delay);\r\n }\r\n}\r\nif (!customElements.get('rapi-doc')) customElements.define('rapi-doc', RapiDoc);\r\n","import { css, LitElement } from 'lit';\r\nimport { marked } from 'marked';\r\nimport Prism from 'prismjs';\r\nimport 'prismjs/components/prism-css';\r\nimport 'prismjs/components/prism-yaml';\r\nimport 'prismjs/components/prism-go';\r\nimport 'prismjs/components/prism-java';\r\nimport 'prismjs/components/prism-json';\r\nimport 'prismjs/components/prism-bash';\r\nimport 'prismjs/components/prism-python';\r\nimport 'prismjs/components/prism-http';\r\nimport 'prismjs/components/prism-csharp';\r\n\r\n// Styles\r\nimport FontStyles from '~/styles/font-styles';\r\nimport InputStyles from '~/styles/input-styles';\r\nimport FlexStyles from '~/styles/flex-styles';\r\nimport TableStyles from '~/styles/table-styles';\r\nimport PrismStyles from '~/styles/prism-styles';\r\nimport TabStyles from '~/styles/tab-styles';\r\nimport NavStyles from '~/styles/nav-styles';\r\nimport InfoStyles from '~/styles/info-styles';\r\n\r\nimport EndpointStyles from '~/styles/endpoint-styles';\r\nimport { rapidocApiKey } from '~/utils/common-utils';\r\nimport ProcessSpec from '~/utils/spec-parser';\r\nimport mainBodyTemplate from '~/templates/main-body-template';\r\nimport { applyApiKey, onClearAllApiKeys } from '~/templates/security-scheme-template';\r\nimport { setApiServer } from '~/templates/server-template';\r\n\r\nexport default class RapiDocMini extends LitElement {\r\n constructor() {\r\n super();\r\n this.isMini = true;\r\n this.updateRoute = 'false';\r\n this.renderStyle = 'view';\r\n this.showHeader = 'false';\r\n this.allowAdvancedSearch = 'false';\r\n }\r\n\r\n static get properties() {\r\n return {\r\n // Spec\r\n specUrl: { type: String, attribute: 'spec-url' },\r\n sortEndpointsBy: { type: String, attribute: 'sort-endpoints-by' },\r\n\r\n // UI Layouts\r\n layout: { type: String },\r\n pathsExpanded: { type: String, attribute: 'paths-expanded' },\r\n defaultSchemaTab: { type: String, attribute: 'default-schema-tab' },\r\n responseAreaHeight: { type: String, attribute: 'response-area-height' },\r\n showSummaryWhenCollapsed: { type: String, attribute: 'show-summary-when-collapsed' },\r\n fillRequestFieldsWithExample: { type: String, attribute: 'fill-request-fields-with-example' },\r\n persistAuth: { type: String, attribute: 'persist-auth' },\r\n\r\n // Schema Styles\r\n schemaStyle: { type: String, attribute: 'schema-style' },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n\r\n // API Server\r\n apiKeyName: { type: String, attribute: 'api-key-name' },\r\n apiKeyLocation: { type: String, attribute: 'api-key-location' },\r\n apiKeyValue: { type: String, attribute: 'api-key-value' },\r\n defaultApiServerUrl: { type: String, attribute: 'default-api-server' },\r\n serverUrl: { type: String, attribute: 'server-url' },\r\n oauthReceiver: { type: String, attribute: 'oauth-receiver' },\r\n\r\n allowTry: { type: String, attribute: 'allow-try' },\r\n\r\n // Main Colors and Font\r\n theme: { type: String },\r\n bgColor: { type: String, attribute: 'bg-color' },\r\n textColor: { type: String, attribute: 'text-color' },\r\n primaryColor: { type: String, attribute: 'primary-color' },\r\n fontSize: { type: String, attribute: 'font-size' },\r\n regularFont: { type: String, attribute: 'regular-font' },\r\n monoFont: { type: String, attribute: 'mono-font' },\r\n mediumFont: { type: String, attribute: 'medium-font' },\r\n loadFonts: { type: String, attribute: 'load-fonts' },\r\n\r\n // Fetch Options\r\n fetchCredentials: { type: String, attribute: 'fetch-credentials' },\r\n\r\n // Filters\r\n matchPaths: { type: String, attribute: 'match-paths' },\r\n matchType: { type: String, attribute: 'match-type' },\r\n\r\n // Internal Properties\r\n loading: { type: Boolean }, // indicates spec is being loaded\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n InputStyles,\r\n FlexStyles,\r\n TableStyles,\r\n EndpointStyles,\r\n PrismStyles,\r\n TabStyles,\r\n NavStyles,\r\n InfoStyles,\r\n css`\r\n :host {\r\n display:flex;\r\n flex-direction: column;\r\n min-width:360px;\r\n width:100%;\r\n height:100%;\r\n margin:0;\r\n padding:0;\r\n overflow: hidden;\r\n letter-spacing:normal;\r\n color:var(--fg);\r\n background-color:var(--bg);\r\n font-family:var(--font-regular);\r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n .only-large-screen{\r\n display:block;\r\n }\r\n .only-large-screen-flex{\r\n display:flex;\r\n }\r\n }`,\r\n ];\r\n }\r\n\r\n // Startup\r\n connectedCallback() {\r\n super.connectedCallback();\r\n\r\n if (this.loadFonts !== 'false') {\r\n const fontDescriptor = {\r\n family: 'Open Sans',\r\n style: 'normal',\r\n weight: '300',\r\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\r\n };\r\n const fontWeight300 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontDescriptor.weight = '600';\r\n const fontWeight600 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontWeight300.load().then((font) => { document.fonts.add(font); });\r\n fontWeight600.load().then((font) => { document.fonts.add(font); });\r\n }\r\n\r\n if (!this.showSummaryWhenCollapsed || !'true, false,'.includes(`${this.showSummaryWhenCollapsed},`)) { this.showSummaryWhenCollapsed = 'true'; }\r\n if (!this.layout || !'row, column,'.includes(`${this.layout},`)) { this.layout = 'row'; }\r\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\r\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\r\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\r\n }\r\n if (!this.defaultSchemaTab || !'example, schema, model,'.includes(`${this.defaultSchemaTab},`)) {\r\n this.defaultSchemaTab = 'example';\r\n } else if (this.defaultSchemaTab === 'model') {\r\n this.defaultSchemaTab = 'schema';\r\n }\r\n this.pathsExpanded = this.pathsExpanded === 'true';\r\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\r\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\r\n if (!this.fillRequestFieldsWithExample || !'true, false,'.includes(`${this.fillRequestFieldsWithExample},`)) { this.fillRequestFieldsWithExample = 'true'; }\r\n if (!this.persistAuth || !'true, false,'.includes(`${this.persistAuth},`)) { this.persistAuth = 'false'; }\r\n if (!this.responseAreaHeight) { this.responseAreaHeight = '300px'; }\r\n\r\n if (!this.allowTry || !'true, false,'.includes(`${this.allowTry},`)) { this.allowTry = 'true'; }\r\n if (!this.apiKeyValue) { this.apiKeyValue = '-'; }\r\n if (!this.apiKeyLocation) { this.apiKeyLocation = 'header'; }\r\n if (!this.apiKeyName) { this.apiKeyName = ''; }\r\n\r\n if (!this.oauthReceiver) { this.oauthReceiver = 'oauth-receiver.html'; }\r\n if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; }\r\n if (!this.sortEndpointsBy || !'method, path, summary,'.includes(`${this.sortEndpointsBy},`)) { this.sortEndpointsBy = 'path'; }\r\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\r\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\r\n\r\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\r\n if (!this.fetchCredentials || !'omit, same-origin, include,'.includes(`${this.fetchCredentials},`)) { this.fetchCredentials = ''; }\r\n\r\n marked.setOptions({\r\n highlight: (code, lang) => {\r\n if (lang === 'curl') lang = 'bash';\r\n if (Prism.languages[lang]) {\r\n return Prism.highlight(code, Prism.languages[lang], lang);\r\n }\r\n return code;\r\n },\r\n });\r\n }\r\n\r\n render() {\r\n return mainBodyTemplate.call(this, true, false, false, this.pathsExpanded);\r\n }\r\n\r\n attributeChangedCallback(name, oldVal, newVal) {\r\n if (name === 'spec-url') {\r\n if (oldVal !== newVal) {\r\n // put it at the end of event-loop to load all the attributes\r\n window.setTimeout(async () => {\r\n await this.loadSpec(newVal);\r\n }, 0);\r\n }\r\n }\r\n if (name === 'api-key-name' || name === 'api-key-location' || name === 'api-key-value') {\r\n let updateSelectedApiKey = false;\r\n let apiKeyName = '';\r\n let apiKeyLocation = '';\r\n let apiKeyValue = '';\r\n\r\n if (name === 'api-key-name') {\r\n if (this.getAttribute('api-key-location') && this.getAttribute('api-key-value')) {\r\n apiKeyName = newVal;\r\n apiKeyLocation = this.getAttribute('api-key-location');\r\n apiKeyValue = this.getAttribute('api-key-value');\r\n updateSelectedApiKey = true;\r\n }\r\n } else if (name === 'api-key-location') {\r\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-value')) {\r\n apiKeyLocation = newVal;\r\n apiKeyName = this.getAttribute('api-key-name');\r\n apiKeyValue = this.getAttribute('api-key-value');\r\n updateSelectedApiKey = true;\r\n }\r\n } else if (name === 'api-key-value') {\r\n if (this.getAttribute('api-key-name') && this.getAttribute('api-key-location')) {\r\n apiKeyValue = newVal;\r\n apiKeyLocation = this.getAttribute('api-key-location');\r\n apiKeyName = this.getAttribute('api-key-name');\r\n updateSelectedApiKey = true;\r\n }\r\n }\r\n\r\n if (updateSelectedApiKey) {\r\n if (this.resolvedSpec) {\r\n const rapiDocApiKey = this.resolvedSpec.securitySchemes.find((v) => v.securitySchemeId === rapidocApiKey);\r\n if (!rapiDocApiKey) {\r\n this.resolvedSpec.securitySchemes.push({\r\n apiKeyId: rapidocApiKey,\r\n description: 'api-key provided in rapidoc element attributes',\r\n type: 'apiKey',\r\n name: apiKeyName,\r\n in: apiKeyLocation,\r\n value: apiKeyValue,\r\n finalKeyValue: apiKeyValue,\r\n });\r\n } else {\r\n rapiDocApiKey.name = apiKeyName;\r\n rapiDocApiKey.in = apiKeyLocation;\r\n rapiDocApiKey.value = apiKeyValue;\r\n rapiDocApiKey.finalKeyValue = apiKeyValue;\r\n }\r\n this.requestUpdate();\r\n }\r\n }\r\n }\r\n super.attributeChangedCallback(name, oldVal, newVal);\r\n }\r\n\r\n onSpecUrlChange() {\r\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\r\n }\r\n\r\n // Public Method\r\n async loadSpec(specUrl) {\r\n if (!specUrl) {\r\n return;\r\n }\r\n try {\r\n this.resolvedSpec = {\r\n specLoadError: false,\r\n isSpecLoading: true,\r\n tags: [],\r\n };\r\n this.loading = true;\r\n this.loadFailed = false;\r\n this.requestUpdate();\r\n const spec = await ProcessSpec.call(\r\n this,\r\n specUrl,\r\n this.generateMissingTags === 'true',\r\n this.sortTags === 'true',\r\n this.getAttribute('sort-endpoints-by'),\r\n this.getAttribute('api-key-name'),\r\n this.getAttribute('api-key-location'),\r\n this.getAttribute('api-key-value'),\r\n this.getAttribute('server-url'),\r\n );\r\n this.loading = false;\r\n this.afterSpecParsedAndValidated(spec);\r\n } catch (err) {\r\n this.loading = false;\r\n this.loadFailed = true;\r\n this.resolvedSpec = null;\r\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\r\n }\r\n }\r\n\r\n // Public Method - to update security-scheme of type http\r\n setHttpUserNameAndPassword(securitySchemeId, username, password) {\r\n return applyApiKey.call(this, securitySchemeId, username, password);\r\n }\r\n\r\n // Public Method - to update security-scheme of type apiKey or OAuth\r\n setApiKey(securitySchemeId, apiKeyValue) {\r\n return applyApiKey.call(this, securitySchemeId, '', '', apiKeyValue);\r\n }\r\n\r\n // Public Method\r\n removeAllSecurityKeys() {\r\n return onClearAllApiKeys.call(this);\r\n }\r\n\r\n // Public Method\r\n setApiServer(apiServerUrl) {\r\n // return apiServerUrl;\r\n return setApiServer.call(this, apiServerUrl);\r\n }\r\n\r\n async afterSpecParsedAndValidated(spec) {\r\n this.resolvedSpec = spec;\r\n this.selectedServer = undefined;\r\n if (this.defaultApiServerUrl) {\r\n if (this.defaultApiServerUrl === this.serverUrl) {\r\n this.selectedServer = {\r\n url: this.serverUrl,\r\n computedUrl: this.serverUrl,\r\n };\r\n } else if (this.resolvedSpec.servers) {\r\n this.selectedServer = this.resolvedSpec.servers.find((v) => (v.url === this.defaultApiServerUrl));\r\n }\r\n }\r\n if (!this.selectedServer) {\r\n if (this.resolvedSpec.servers) {\r\n this.selectedServer = this.resolvedSpec.servers[0]; // eslint-disable-line prefer-destructuring\r\n }\r\n }\r\n this.requestUpdate();\r\n // eslint-disable-next-line no-await-in-loop\r\n while (!await this.updateComplete);\r\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\r\n this.dispatchEvent(specLoadedEvent);\r\n }\r\n\r\n // Called by anchor tags created using markdown\r\n handleHref(e) {\r\n if (e.target.tagName.toLowerCase() === 'a') {\r\n if (e.target.getAttribute('href').startsWith('#')) {\r\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\r\n if (gotoEl) {\r\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n }\r\n }\r\n }\r\n }\r\n}\r\nif (!customElements.get('rapi-doc-mini')) customElements.define('rapi-doc-mini', RapiDocMini);\r\n","import { html } from 'lit';\r\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions\r\nimport { marked } from 'marked';\r\n\r\n// Templates\r\nimport overviewTemplate from '~/templates/overview-template';\r\nimport headerTemplate from '~/templates/header-template';\r\nimport { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';\r\nimport '~/components/json-tree';\r\nimport '~/components/schema-tree';\r\nimport SetTheme from '~/utils/theme';\r\nimport { isValidHexColor } from '~/utils/color-utils';\r\n\r\n/* eslint-disable indent */\r\n// Json Schema Nav Template\r\nfunction jsonSchemaNavTemplate() {\r\n return html`\r\n \r\n `;\r\n}\r\n\r\n// Json Schema Body Template\r\nfunction jsonSchemaBodyTemplate() {\r\n return html`\r\n ${this.showInfo === 'true' ? overviewTemplate.call(this) : ''}\r\n
    \r\n ${this.resolvedSpec.schemaAndExamples.map((jSchemaBody) => {\r\n const examplesObj = generateExample(jSchemaBody.schema, 'json', jSchemaBody.examples, jSchemaBody.example, true, false, 'json', true);\r\n jSchemaBody.selectedExample = examplesObj[0]?.exampleId;\r\n return html`\r\n
    \r\n
    \r\n
    ${jSchemaBody.name}
    \r\n ${unsafeHTML(marked(jSchemaBody.description || ''))}\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n ${examplesObj.length > 1\r\n ? html``\r\n : html`
    ${examplesObj[0].exampleSummary}
    `\r\n }\r\n ${examplesObj.map((v) => html`\r\n `)\r\n }\r\n
    \r\n
    \r\n
    `;\r\n })\r\n }\r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n\r\n// Json Schema Root Template\r\nexport default function jsonSchemaViewerTemplate(isMini = false) {\r\n// export default function jsonSchemaViewerTemplate(isMini = false, showExpandCollapse = true, showTags = true, pathsExpanded = false) {\r\n if (!this.resolvedSpec) {\r\n return '';\r\n }\r\n const newTheme = {\r\n bg1: isValidHexColor(this.bgColor) ? this.bgColor : '',\r\n fg1: isValidHexColor(this.textColor) ? this.textColor : '',\r\n headerColor: isValidHexColor(this.headerColor) ? this.headerColor : '',\r\n primaryColor: isValidHexColor(this.primaryColor) ? this.primaryColor : '',\r\n navBgColor: isValidHexColor(this.navBgColor) ? this.navBgColor : '',\r\n navTextColor: isValidHexColor(this.navTextColor) ? this.navTextColor : '',\r\n navHoverBgColor: isValidHexColor(this.navHoverBgColor) ? this.navHoverBgColor : '',\r\n navHoverTextColor: isValidHexColor(this.navHoverTextColor) ? this.navHoverTextColor : '',\r\n navAccentColor: isValidHexColor(this.navAccentColor) ? this.navAccentColor : '',\r\n navAccenttextColor: isValidHexColor(this.navAccentTextColor) ? this.navAccentTextColor : '',\r\n };\r\n /* eslint-disable indent */\r\n if (this.resolvedSpec.specLoadError) {\r\n if (isMini) {\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n
    ${this.resolvedSpec.info.description}
    \r\n `;\r\n }\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n \r\n ${headerTemplate.call(this)}\r\n

    Header

    \r\n
    \r\n \r\n
    \r\n

    ${this.resolvedSpec.info.title}

    \r\n
    ${this.resolvedSpec.info.description}
    \r\n
    \r\n
    \r\n `;\r\n }\r\n if (this.resolvedSpec.isSpecLoading) {\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n `;\r\n }\r\n\r\n return html`\r\n ${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}\r\n\r\n \r\n ${this.showHeader === 'false' ? '' : headerTemplate.call(this)}\r\n \r\n
    \r\n\r\n \r\n ${jsonSchemaNavTemplate.call(this)}\r\n\r\n \r\n
    \r\n \r\n
    \r\n ${this.loading === true\r\n ? html`
    `\r\n : html`\r\n ${this.loadFailed === true\r\n ? html`
    Unable to load the Spec
    `\r\n : html`\r\n
    { this.handleHref(e); }}\">\r\n ${jsonSchemaBodyTemplate.call(this)}\r\n
    \r\n `\r\n }`\r\n }\r\n
    \r\n \r\n
    \r\n
    \r\n `;\r\n}\r\n/* eslint-enable indent */\r\n","import { css, LitElement } from 'lit';\r\nimport { marked } from 'marked';\r\nimport Prism from 'prismjs';\r\nimport 'prismjs/components/prism-css';\r\nimport 'prismjs/components/prism-yaml';\r\nimport 'prismjs/components/prism-go';\r\nimport 'prismjs/components/prism-java';\r\nimport 'prismjs/components/prism-json';\r\nimport 'prismjs/components/prism-bash';\r\nimport 'prismjs/components/prism-python';\r\nimport 'prismjs/components/prism-http';\r\nimport 'prismjs/components/prism-csharp';\r\n\r\n// Styles\r\nimport FontStyles from '~/styles/font-styles';\r\nimport InputStyles from '~/styles/input-styles';\r\nimport FlexStyles from '~/styles/flex-styles';\r\nimport TableStyles from '~/styles/table-styles';\r\nimport PrismStyles from '~/styles/prism-styles';\r\nimport TabStyles from '~/styles/tab-styles';\r\nimport NavStyles from '~/styles/nav-styles';\r\nimport InfoStyles from '~/styles/info-styles';\r\n\r\nimport EndpointStyles from '~/styles/endpoint-styles';\r\nimport ProcessSpec from '~/utils/spec-parser';\r\nimport jsonSchemaViewerTemplate from '~/templates/json-schema-viewer-template';\r\n\r\nexport default class JsonSchemaViewer extends LitElement {\r\n constructor() {\r\n super();\r\n this.isMini = false;\r\n this.updateRoute = 'false';\r\n this.renderStyle = 'focused';\r\n this.showHeader = 'true';\r\n this.allowAdvancedSearch = 'false';\r\n this.selectedExampleForEachSchema = {};\r\n }\r\n\r\n static get properties() {\r\n return {\r\n // Spec\r\n specUrl: { type: String, attribute: 'spec-url' },\r\n\r\n // Schema Styles\r\n schemaStyle: { type: String, attribute: 'schema-style' },\r\n schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },\r\n schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },\r\n allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },\r\n\r\n // Hide/show Sections\r\n showHeader: { type: String, attribute: 'show-header' },\r\n showSideNav: { type: String, attribute: 'show-side-nav' },\r\n showInfo: { type: String, attribute: 'show-info' },\r\n\r\n // Allow or restrict features\r\n allowSpecUrlLoad: { type: String, attribute: 'allow-spec-url-load' },\r\n allowSpecFileLoad: { type: String, attribute: 'allow-spec-file-load' },\r\n allowSpecFileDownload: { type: String, attribute: 'allow-spec-file-download' },\r\n allowSearch: { type: String, attribute: 'allow-search' },\r\n\r\n // Main Colors and Font\r\n theme: { type: String },\r\n bgColor: { type: String, attribute: 'bg-color' },\r\n textColor: { type: String, attribute: 'text-color' },\r\n primaryColor: { type: String, attribute: 'primary-color' },\r\n fontSize: { type: String, attribute: 'font-size' },\r\n regularFont: { type: String, attribute: 'regular-font' },\r\n monoFont: { type: String, attribute: 'mono-font' },\r\n loadFonts: { type: String, attribute: 'load-fonts' },\r\n\r\n // Internal Properties\r\n loading: { type: Boolean }, // indicates spec is being loaded\r\n };\r\n }\r\n\r\n static get styles() {\r\n return [\r\n FontStyles,\r\n InputStyles,\r\n FlexStyles,\r\n TableStyles,\r\n EndpointStyles,\r\n PrismStyles,\r\n TabStyles,\r\n NavStyles,\r\n InfoStyles,\r\n css`\r\n :host {\r\n display:flex;\r\n flex-direction: column;\r\n min-width:360px;\r\n width:100%;\r\n height:100%;\r\n margin:0;\r\n padding:0;\r\n overflow: hidden;\r\n letter-spacing:normal;\r\n color:var(--fg);\r\n background-color:var(--bg);\r\n font-family:var(--font-regular);\r\n }\r\n .body {\r\n display:flex;\r\n height:100%;\r\n width:100%;\r\n overflow:hidden;\r\n }\r\n .nav-bar {\r\n width: 230px;\r\n display:flex;\r\n }\r\n\r\n .main-content { \r\n margin:0;\r\n padding: 16px; \r\n display:block;\r\n flex:1;\r\n height:100%;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--border-color) transparent;\r\n }\r\n .main-content-inner--view-mode {\r\n padding: 0 8px;\r\n }\r\n .main-content::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n .main-content::-webkit-scrollbar-track {\r\n background:transparent;\r\n }\r\n .main-content::-webkit-scrollbar-thumb {\r\n background-color: var(--border-color);\r\n }\r\n .main-header {\r\n background-color:var(--header-bg);\r\n color:var(--header-fg);\r\n width:100%;\r\n }\r\n .header-title {\r\n font-size:calc(var(--font-size-regular) + 8px); \r\n padding:0 8px;\r\n }\r\n input.header-input{\r\n background:var(--header-color-darker);\r\n color:var(--header-fg);\r\n border:1px solid var(--header-color-border);\r\n flex:1; \r\n padding-right:24px;\r\n border-radius:3px;\r\n }\r\n input.header-input::placeholder {\r\n opacity:0.4;\r\n }\r\n .loader {\r\n margin: 16px auto 16px auto; \r\n border: 4px solid var(--bg3);\r\n border-radius: 50%;\r\n border-top: 4px solid var(--primary-color);\r\n width: 36px;\r\n height: 36px;\r\n animation: spin 2s linear infinite;\r\n }\r\n @media only screen and (min-width: 768px) {\r\n .only-large-screen{\r\n display:block;\r\n }\r\n .only-large-screen-flex{\r\n display:flex;\r\n }\r\n }`,\r\n ];\r\n }\r\n\r\n // Startup\r\n connectedCallback() {\r\n super.connectedCallback();\r\n const parent = this.parentElement;\r\n if (parent) {\r\n if (parent.offsetWidth === 0 && parent.style.width === '') {\r\n parent.style.width = '100vw';\r\n }\r\n if (parent.offsetHeight === 0 && parent.style.height === '') {\r\n parent.style.height = '100vh';\r\n }\r\n if (parent.tagName === 'BODY') {\r\n if (!parent.style.marginTop) { parent.style.marginTop = '0'; }\r\n if (!parent.style.marginRight) { parent.style.marginRight = '0'; }\r\n if (!parent.style.marginBottom) { parent.style.marginBottom = '0'; }\r\n if (!parent.style.marginLeft) { parent.style.marginLeft = '0'; }\r\n }\r\n }\r\n\r\n if (this.loadFonts !== 'false') {\r\n const fontDescriptor = {\r\n family: 'Open Sans',\r\n style: 'normal',\r\n weight: '300',\r\n unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',\r\n };\r\n const fontWeight300 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontDescriptor.weight = '600';\r\n const fontWeight600 = new FontFace(\r\n 'Open Sans',\r\n \"url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')\",\r\n fontDescriptor,\r\n );\r\n fontWeight300.load().then((font) => { document.fonts.add(font); });\r\n fontWeight600.load().then((font) => { document.fonts.add(font); });\r\n }\r\n\r\n this.renderStyle = 'focused';\r\n this.pathsExpanded = this.pathsExpanded === 'true';\r\n\r\n if (!this.showInfo || !'true, false,'.includes(`${this.showInfo},`)) { this.showInfo = 'true'; }\r\n if (!this.showSideNav || !'true false'.includes(this.showSideNav)) { this.showSideNav = 'true'; }\r\n if (!this.showHeader || !'true, false,'.includes(`${this.showHeader},`)) { this.showHeader = 'true'; }\r\n\r\n if (!this.schemaStyle || !'tree, table,'.includes(`${this.schemaStyle},`)) { this.schemaStyle = 'tree'; }\r\n if (!this.theme || !'light, dark,'.includes(`${this.theme},`)) {\r\n this.theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) ? 'light' : 'dark';\r\n }\r\n if (!this.allowSearch || !'true, false,'.includes(`${this.allowSearch},`)) { this.allowSearch = 'true'; }\r\n if (!this.schemaExpandLevel || this.schemaExpandLevel < 1) { this.schemaExpandLevel = 99999; }\r\n if (!this.schemaDescriptionExpanded || !'true, false,'.includes(`${this.schemaDescriptionExpanded},`)) { this.schemaDescriptionExpanded = 'false'; }\r\n if (!this.fontSize || !'default, large, largest,'.includes(`${this.fontSize},`)) { this.fontSize = 'default'; }\r\n if (!this.matchType || !'includes regex'.includes(this.matchType)) { this.matchType = 'includes'; }\r\n if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) { this.allowSchemaDescriptionExpandToggle = 'true'; }\r\n\r\n marked.setOptions({\r\n highlight: (code, lang) => {\r\n if (lang === 'curl') lang = 'bash';\r\n if (Prism.languages[lang]) {\r\n return Prism.highlight(code, Prism.languages[lang], lang);\r\n }\r\n return code;\r\n },\r\n });\r\n }\r\n\r\n render() {\r\n return jsonSchemaViewerTemplate.call(this, true, false, false, this.pathsExpanded);\r\n }\r\n\r\n attributeChangedCallback(name, oldVal, newVal) {\r\n if (name === 'spec-url') {\r\n if (oldVal !== newVal) {\r\n // put it at the end of event-loop to load all the attributes\r\n window.setTimeout(async () => {\r\n await this.loadSpec(newVal);\r\n }, 0);\r\n }\r\n }\r\n super.attributeChangedCallback(name, oldVal, newVal);\r\n }\r\n\r\n onSpecUrlChange() {\r\n this.setAttribute('spec-url', this.shadowRoot.getElementById('spec-url').value);\r\n }\r\n\r\n onSearchChange(e) {\r\n // Todo: Filter Search\r\n this.matchPaths = e.target.value;\r\n }\r\n\r\n // Public Method\r\n async loadSpec(specUrl) {\r\n if (!specUrl) {\r\n return;\r\n }\r\n try {\r\n this.resolvedSpec = {\r\n specLoadError: false,\r\n isSpecLoading: true,\r\n tags: [],\r\n };\r\n this.loading = true;\r\n this.loadFailed = false;\r\n this.requestUpdate();\r\n const spec = await ProcessSpec.call(\r\n this,\r\n specUrl,\r\n this.generateMissingTags === 'true',\r\n this.sortTags === 'true',\r\n this.getAttribute('sort-endpoints-by'),\r\n );\r\n this.loading = false;\r\n this.afterSpecParsedAndValidated(spec);\r\n } catch (err) {\r\n this.loading = false;\r\n this.loadFailed = true;\r\n this.resolvedSpec = null;\r\n console.error(`RapiDoc: Unable to resolve the API spec.. ${err.message}`); // eslint-disable-line no-console\r\n }\r\n }\r\n\r\n async afterSpecParsedAndValidated(spec) {\r\n this.resolvedSpec = spec;\r\n const specLoadedEvent = new CustomEvent('spec-loaded', { detail: spec });\r\n this.dispatchEvent(specLoadedEvent);\r\n }\r\n\r\n // Called by anchor tags created using markdown\r\n handleHref(e) {\r\n if (e.target.tagName.toLowerCase() === 'a') {\r\n if (e.target.getAttribute('href').startsWith('#')) {\r\n const gotoEl = this.shadowRoot.getElementById(e.target.getAttribute('href').replace('#', ''));\r\n if (gotoEl) {\r\n gotoEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Example Dropdown @change Handler\r\n onSelectExample(e) {\r\n const exampleContainerEl = e.target.closest('.json-schema-example-panel');\r\n const exampleEls = [...exampleContainerEl.querySelectorAll('.example')];\r\n exampleEls.forEach((v) => {\r\n v.style.display = v.dataset.example === e.target.value ? 'flex' : 'none';\r\n });\r\n }\r\n\r\n async scrollToEventTarget(event) {\r\n const navEl = event.currentTarget;\r\n if (!navEl.dataset.contentId) {\r\n return;\r\n }\r\n const contentEl = this.shadowRoot.getElementById(navEl.dataset.contentId);\r\n if (contentEl) {\r\n contentEl.scrollIntoView({ behavior: 'auto', block: 'start' });\r\n }\r\n }\r\n}\r\nif (!customElements.get('json-schema-viewer')) customElements.define('json-schema-viewer', JsonSchemaViewer);\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/dist/rapidoc-min.js.map.gz b/dist/rapidoc-min.js.map.gz index a3a32466..816b32c3 100644 Binary files a/dist/rapidoc-min.js.map.gz and b/dist/rapidoc-min.js.map.gz differ diff --git a/dist/rapidoc.js b/dist/rapidoc.js index 1b901cb8..c8c0121d 100644 --- a/dist/rapidoc.js +++ b/dist/rapidoc.js @@ -12019,7 +12019,7 @@ module.exports = { /***/ }), -/***/ 6698: +/***/ 2915: /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { "use strict"; @@ -15080,54 +15080,27 @@ var prism_csharp = __webpack_require__(9016); grid-template-columns: 20px 1fr; } + .m-markdown .callout-icon { + display: inline-block; + flex-shrink: 0; + grid-row: 1; + } + .m-markdown .info-blockquote { background: #f8f7fc; border: 1px solid #ccced8; } - .m-markdown .info-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/info.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .warning-blockquote { background: #fff2d4; border: 1px solid #ffb100; } - .m-markdown .warning-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/warning.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .danger-blockquote { background: #fdefef; border: 1px solid #dc5a41; } - .m-markdown .danger-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/danger.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - blockquote p{ grid-column: 2 / -1; margin: 0; @@ -15273,7 +15246,6 @@ var prism_csharp = __webpack_require__(9016); /* Button */ .m-btn { display: flex; - flex-direction: column; align-items: center; border-radius: var(--border-radius); font-weight: 400; @@ -15289,6 +15261,10 @@ var prism_csharp = __webpack_require__(9016); text-transform: uppercase; letter-spacing: 0.5px; } +.m-btn-image { + flex-direction: row; + column-gap: 10px; +} .m-btn-primary { background-color: var(--primary-color); color: var(--primary-color-invert); @@ -16289,15 +16265,14 @@ pre[class*="language-"] { ;// CONCATENATED MODULE: ./src/styles/custom-styles.js -/* -This file is reserved for any custom css that developers want to add to -customize their theme. Simply add your css to this file and yarn build. +/* +This file is reserved for any custom css that developers want to add to +customize their theme. Simply add your css to this file and yarn build. */ /* harmony default export */ const custom_styles = (i` .code-container { - padding-inline: 32px; - padding-top: 16px; + tab-size: 4; } .code-container > code { font-size: 14px; @@ -16386,6 +16361,7 @@ customize their theme. Simply add your css to this file and yarn build. .right-box-container { margin-top: 16px; + padding-inline: 16px; } .right-box-label { @@ -16400,6 +16376,18 @@ customize their theme. Simply add your css to this file and yarn build. height: 44px; } +.right-box-content { + border: 1px solid rgb(204, 206, 216); + border-radius: 4px; + padding-block: 24px; + margin-top: 24px; +} + +.right-box-select { + padding-inline: 16px; + width: 100%; +} + .server-template { position: relative; } @@ -16689,27 +16677,27 @@ function advancedSearch(searchVal, allSpecTags, searchOptions = []) { return pathsMatched; } -/* -export function prettyXml(sourceXmlString) { - const xmlDoc = new DOMParser().parseFromString(sourceXmlString, 'text/xml'); - const xsltDoc = new DOMParser().parseFromString([ - // describes how we want to modify the XML - indent everything - ` - - - - - - - - - `, - ].join('\n'), 'application/xml'); - const xsltProcessor = new XSLTProcessor(); - xsltProcessor.importStylesheet(xsltDoc); - const resultDoc = xsltProcessor.transformToDocument(xmlDoc); - return new XMLSerializer().serializeToString(resultDoc); -} +/* +export function prettyXml(sourceXmlString) { + const xmlDoc = new DOMParser().parseFromString(sourceXmlString, 'text/xml'); + const xsltDoc = new DOMParser().parseFromString([ + // describes how we want to modify the XML - indent everything + ` + + + + + + + + + `, + ].join('\n'), 'application/xml'); + const xsltProcessor = new XSLTProcessor(); + xsltProcessor.importStylesheet(xsltDoc); + const resultDoc = xsltProcessor.transformToDocument(xmlDoc); + return new XMLSerializer().serializeToString(resultDoc); +} */ function downloadResource(url, fileName) { @@ -16813,7 +16801,10 @@ async function ProcessSpec(specUrl, spec, generateMissingTags = false, sortTags // Security Scheme const securitySchemes = []; + let security = []; if ((_jsonParsedSpec$compo = jsonParsedSpec.components) !== null && _jsonParsedSpec$compo !== void 0 && _jsonParsedSpec$compo.securitySchemes) { + var _jsonParsedSpec$compo2; + if (jsonParsedSpec.security) security = jsonParsedSpec.security;else security = [(_jsonParsedSpec$compo2 = jsonParsedSpec.components) === null || _jsonParsedSpec$compo2 === void 0 ? void 0 : _jsonParsedSpec$compo2.securitySchemes]; const securitySchemeSet = new Set(); Object.entries(jsonParsedSpec.components.securitySchemes).forEach(kv => { if (!securitySchemeSet.has(kv[0])) { @@ -16918,7 +16909,8 @@ async function ProcessSpec(specUrl, spec, generateMissingTags = false, sortTags components, externalDocs: jsonParsedSpec.externalDocs, securitySchemes, - servers + servers, + security }; return parsedSpec; } @@ -17162,6 +17154,13 @@ const directive_t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,EL //# sourceMappingURL=unsafe-html.js.map +;// CONCATENATED MODULE: ./src/utils/security-utils.js +function isSecuritySchemeIdValid(security, securitySchemeId) { + if (!security) return true; + return security.some(securityObject => { + return securityObject.hasOwnProperty(securitySchemeId) && Array.isArray(securityObject[securitySchemeId]) && securityObject[securitySchemeId].length === 0; + }); +} // EXTERNAL MODULE: ./node_modules/httpsnippet/src/index.js var src = __webpack_require__(212); var src_default = /*#__PURE__*/__webpack_require__.n(src); @@ -17293,17 +17292,17 @@ function nestExampleIfPresent(example) { } : example; } -/** - * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes) - * [{ - * exampleVal : 'value to be rendered on the input control (text-box)', - * exampleList : [ - * value : '', - * printableValue: '', - * summary : '', - * description : '' - * ] - * }] +/** + * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes) + * [{ + * exampleVal : 'value to be rendered on the input control (text-box)', + * exampleList : [ + * value : '', + * printableValue: '', + * summary : '', + * description : '' + * ] + * }] * */ function normalizeExamples(examples, dataType = 'string') { if (!examples) { @@ -17471,29 +17470,29 @@ function getSampleValueByType(schemaObj) { return '?'; } -/* -json2xml- TestCase - { - 'prop1' : 'one', - 'prop2' : 'two', - 'prop3' : [ 'a', 'b', 'c' ], - 'prop4' : { - 'ob1' : 'val-1', - 'ob2' : 'val-2' - } - } - - simple - - <0>a - <1>b - <2>c - - - val-1 - val-2 - - +/* +json2xml- TestCase + { + 'prop1' : 'one', + 'prop2' : 'two', + 'prop3' : [ 'a', 'b', 'c' ], + 'prop4' : { + 'ob1' : 'val-1', + 'ob2' : 'val-2' + } + } + + simple + + <0>a + <1>b + <2>c + + + val-1 + val-2 + + */ function json2xml(obj, level = 1) { const indent = ' '.repeat(level); @@ -17631,38 +17630,38 @@ function schemaToSampleObj(schema, config = {}) { } } if (schema.oneOf.length > 0) { - /* - oneOf: - - type: object - properties: - option1_PropA: - type: string - option1_PropB: - type: string - - type: object - properties: - option2_PropX: - type: string - properties: - prop1: - type: string - prop2: - type: string - minLength: 10 - The aboove Schem should generate the following 2 examples - Example-1 - { - prop1: 'string', - prop2: 'AAAAAAAAAA', <-- min-length 10 - option1_PropA: 'string', - option1_PropB: 'string' - } - Example-2 - { - prop1: 'string', - prop2: 'AAAAAAAAAA', <-- min-length 10 - option2_PropX: 'string' - } + /* + oneOf: + - type: object + properties: + option1_PropA: + type: string + option1_PropB: + type: string + - type: object + properties: + option2_PropX: + type: string + properties: + prop1: + type: string + prop2: + type: string + minLength: 10 + The aboove Schem should generate the following 2 examples + Example-1 + { + prop1: 'string', + prop2: 'AAAAAAAAAA', <-- min-length 10 + option1_PropA: 'string', + option1_PropB: 'string' + } + Example-2 + { + prop1: 'string', + prop2: 'AAAAAAAAAA', <-- min-length 10 + option2_PropX: 'string' + } */ let i = 0; // Merge all examples of each oneOf-schema @@ -17811,7 +17810,7 @@ function generateMarkdownForArrayAndObjectDescription(schema, level = 0) { let markdown = (schema.description || schema.title) && (schema.minItems || schema.maxItems) ? '' : ''; if (schema.title) { if (schema.description) { - markdown = `${markdown} ${schema.title}: ${schema.description}
    `; + markdown = `${markdown} ${schema.description}
    `; } else { markdown = `${markdown} ${schema.title}
    `; } @@ -17836,13 +17835,13 @@ function generateMarkdownForArrayAndObjectDescription(schema, level = 0) { } return markdown; } -/** - * For changing OpenAPI-Schema to an Object Notation, - * This Object would further be an input to UI Components to generate an Object-Tree - * @param {object} schema - Schema object from OpenAPI spec - * @param {object} obj - recursivly pass this object to generate object notation - * @param {number} level - recursion level - * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion +/** + * For changing OpenAPI-Schema to an Object Notation, + * This Object would further be an input to UI Components to generate an Object-Tree + * @param {object} schema - Schema object from OpenAPI spec + * @param {object} obj - recursivly pass this object to generate object notation + * @param {number} level - recursion level + * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion */ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { if (!schema) { @@ -17873,7 +17872,8 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { } }); obj = objWithAllProps; - } else if (schema.anyOf || schema.oneOf) { + } + if (schema.anyOf || schema.oneOf) { obj['::description'] = schema.description || ''; // 1. First iterate the regular properties if (schema.type === 'object' || schema.properties) { @@ -18023,7 +18023,7 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { obj['::array-type'] = schema.items.items.type; } obj['::props'] = schemaInObjectNotation(schema.items, {}, level + 1); - } else { + } else if (!schema.allOf) { const typeObj = getTypeInfo(schema); if (typeObj !== null && typeObj !== void 0 && typeObj.html) { return `${typeObj.html}`; @@ -18218,6 +18218,7 @@ function getSchemaFromParam(param) { /* provided dependency */ var update_code_example_console = __webpack_require__(5108); + function buildFetchURL(requestPanelEl) { let fetchUrl = this.path; const queryString = []; @@ -18527,6 +18528,7 @@ function buildFetchHeaders(requestPanelEl) { var _this$closest; let acceptValue = ''; let contentTypeValue = ''; + const reqCookieHeader = []; const reqHeaders = new Headers(); const headers = []; const requestBodyContainerEl = requestPanelEl.querySelector('.request-body-container'); @@ -18580,21 +18582,59 @@ function buildFetchHeaders(requestPanelEl) { }); } - // Add Authentication Header if provided - this.resolvedSpec.securitySchemes.forEach(key => { - reqHeaders.append(key.name, key.value); - headers.push({ - name: key.name, - value: key.value + // Add Authentication Header if provided and necessary + let securitySchemes = this.security ? this.security : this.resolvedSpec.security; + securitySchemes.forEach((scheme, id) => { + if (this.selectedAuthScheme !== id) return; + Object.keys(scheme).map(key => { + const schemeKey = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === key); + if (!isSecuritySchemeIdValid(this.security, schemeKey.securitySchemeId)) return; + if (schemeKey.in !== 'cookie') { + reqHeaders.append(schemeKey.name, schemeKey.value); + headers.push({ + name: schemeKey.name, + value: schemeKey.value + }); + } + if (schemeKey.in === 'cookie') { + reqCookieHeader.push({ + name: schemeKey.name, + value: schemeKey.value + }); + } }); + + // add cookie header + if (reqCookieHeader.length > 0) { + const cookie = reqCookieHeader.map(el => `${el.name}=${el.value}`); + headers.push({ + name: 'Cookie', + value: cookie.join('; path=/') + }); + } }); return { reqHeaders, - headers + headers, + reqCookieHeader + }; +} +function buildFetchCookies(requestPanelEl) { + const cookies = []; + const cookieParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='cookie']")]; + cookieParamEls.forEach(el => { + if (!el.value) return; + cookies.push({ + name: el.dataset.pname, + value: el.value + }); + }); + return { + cookies }; } function decodeCurlyBrackets(url) { - url = url.replace(/\/?%7B/gm, '{').replace(/\/?%7D/gm, '}'); + url = url.replace(/%7B/gm, '{').replace(/%7D/gm, '}'); return url; } function updateCodeExample(tryBtnEl) { @@ -18609,14 +18649,19 @@ function updateCodeExample(tryBtnEl) { } = buildFetchOptions.call(this, requestPanelEl); const { reqHeaders, - headers + headers, + reqCookieHeader } = buildFetchHeaders.call(this, requestPanelEl); + const { + cookies + } = buildFetchCookies.call(this, requestPanelEl); const snippet = new (src_default())({ method: this.method, url: fetchUrl, queryString, headers, - postData + postData, + cookies }); snippet.requests[0].url = decodeCurlyBrackets(snippet.requests[0].url); snippet.requests[0].fullUrl = decodeCurlyBrackets(snippet.requests[0].fullUrl); @@ -18628,7 +18673,8 @@ function updateCodeExample(tryBtnEl) { return { fetchUrl, fetchOptions, - reqHeaders + reqHeaders, + reqCookie: cookies.concat(reqCookieHeader) }; } ;// CONCATENATED MODULE: ./src/templates/security-scheme-template.js @@ -18639,6 +18685,7 @@ function updateCodeExample(tryBtnEl) { // eslint-disable-line import/extensions + const codeVerifier = '731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890'; const codeChallenge = '4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc'; // Base64 encoded SHA-256 @@ -18805,16 +18852,16 @@ async function onWindowMessageEvent(msgEvent, winObj, tokenUrl, clientId, client // code_challenge generator for PKCE flow // TODO: Implement dynamic generation of code-challenge based on code-verifier -/* -async function generateCodeChallenge() { - const encoder = new TextEncoder(); - const data = encoder.encode(codeVerifier); - const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array - // const utf8Decoder = new TextDecoder(); - // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash)); - const b64EncodedSha256 = base64encode(sha256Hash); - return b64EncodedSha256; -} +/* +async function generateCodeChallenge() { + const encoder = new TextEncoder(); + const data = encoder.encode(codeVerifier); + const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array + // const utf8Decoder = new TextDecoder(); + // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash)); + const b64EncodedSha256 = base64encode(sha256Hash); + return b64EncodedSha256; +} */ async function onInvokeOAuthFlow(securitySchemeId, flowType, authUrl, tokenUrl, e) { @@ -19005,94 +19052,139 @@ function handleApiKeyChange(e, securitySchemeId, apiKey) { const requestPanelEl = this.getRequestPanel(e); updateCodeExample.call(this, requestPanelEl); } +function handleSecuritySchemeChange(e) { + const newSelectedAuthScheme = parseInt(e.target.value); + this.selectedAuthScheme = newSelectedAuthScheme; +} +function getSchemeTypes(scheme) { + let authTypes = ''; + const keys = Object.keys(scheme); + const keyCount = keys.length; + const v = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === keys[0]); + if (v.type === 'apiKey') { + authTypes += v.in.charAt(0).toUpperCase() + v.in.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else if (v.type === 'http') { + authTypes += v.scheme.charAt(0).toUpperCase() + v.scheme.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else if (v.type) { + authTypes += v.type.charAt(0).toUpperCase() + v.type.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else authTypes += 'Authentication'; + return authTypes; +} +function selectSecuritySchemeTemplate() { + return lit_html_x` +
    + +
    `; +} function securitySchemeTemplate() { var _this$resolvedSpec$se4; if (!this.resolvedSpec) { return ''; } + if (this.security && this.security.length === 0) return ''; // If security is explicitly defined as [], it indicates that an authentation header is not required const providedApiKeys = (_this$resolvedSpec$se4 = this.resolvedSpec.securitySchemes) === null || _this$resolvedSpec$se4 === void 0 ? void 0 : _this$resolvedSpec$se4.filter(v => v.finalKeyValue); if (!providedApiKeys) { return; } return lit_html_x` -
    -
    Header Auth
    - ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0 ? lit_html_x` -
    - ${this.resolvedSpec.securitySchemes.map(v => lit_html_x` -
    -
    ${v.name}
    - ${v.description ? lit_html_x` -
    - ${unsafe_html_o(marked(v.description || ''))} -
    ` : ''} - - ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer' ? lit_html_x` -
    - ${v.in !== 'cookie' ? lit_html_x` - ` : lit_html_x` cookies cannot be set from here`} -
    ` : ''} - ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic' ? lit_html_x` -
    - Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    Authentication
    +
    + ${selectSecuritySchemeTemplate.call(this)} +
    + ${this.resolvedSpec.security.map((scheme, id) => { + return lit_html_x` + ${id === this.selectedAuthScheme ? lit_html_x`
    + ${Object.keys(scheme).map(key => { + const v = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === key); + if (!isSecuritySchemeIdValid(this.security, v.securitySchemeId)) return; + return lit_html_x` +
    +
    ${v.name}
    + ${v.description ? lit_html_x` +
    + ${unsafe_html_o(marked(v.description || ''))} +
    ` : ''} + + ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer' ? lit_html_x` +
    + +
    ` : ''} + ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic' ? lit_html_x` +
    + Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    + { + const requestPanelEl = this.getRequestPanel(e); + updateCodeExample.call(this, requestPanelEl); + }} + > + { + const requestPanelEl = this.getRequestPanel(e); + updateCodeExample.call(this, requestPanelEl); + }} + > + +
    ` : ''}
    -
    - { - const requestPanelEl = this.getRequestPanel(e); - updateCodeExample.call(this, requestPanelEl); - }} - > - { - const requestPanelEl = this.getRequestPanel(e); - updateCodeExample.call(this, requestPanelEl); - }} - > - -
    ` : ''} -
    - ${v.type.toLowerCase() === 'oauth2' ? lit_html_x` -
    - ${Object.keys(v.flows).map(f => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))} -
    - ` : ''} - `)} -
    ` : ''} - - - -
    + ${v.type.toLowerCase() === 'oauth2' ? lit_html_x` +
    + ${Object.keys(v.flows).map(f => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))} +
    + ` : ''} + `; + })} +
    ` : ''} + `; + })} +
    + +
    ` : ''} `; } function pathSecurityTemplate(pathSecurity) { @@ -19671,12 +19763,13 @@ if (!customElements.get('json-tree')) customElements.define('json-tree', JsonTre } .xxx-of-key { - font-size: calc(var(--font-size-small) - 2px); + font-family: var(--font-mono); + font-size: 12px; font-weight:bold; - background-color:var(--primary-color); - border-radius:2px; + background-color:#f8f7fc; + border-radius:4px; line-height:calc(var(--font-size-small) + 6px); - padding:0px 5px; + padding: 0.2em 0.4em; margin-bottom:1px; display:inline-block; } @@ -21306,6 +21399,7 @@ class ApiRequest extends lit_element_s { this.activeResponseTab = 'response'; // allowed values: response, headers, curl this.selectedRequestBodyType = ''; this.selectedRequestBodyExample = ''; + this.selectedAuthScheme = 0; this.activeParameterSchemaTabs = {}; this.showCurlBeforeTry = true; this.selectedLanguage = 'shell'; @@ -21455,6 +21549,9 @@ class ApiRequest extends lit_element_s { }, // internal tracking of selected request-body example + selectedAuthScheme: { + type: Number + }, selectedLanguage: { type: String }, @@ -22319,6 +22416,7 @@ class ApiRequest extends lit_element_s { } } return lit_html_x` +
    ${this.codeExampleTemplate('flex')} @@ -22435,7 +22533,8 @@ class ApiRequest extends lit_element_s { const { fetchUrl, fetchOptions, - reqHeaders + reqHeaders, + reqCookie } = updateCodeExample.call(this, tryBtnEl); const encodedUrl = `/api/proxy/${encodeURIComponent(fetchUrl)}`; this.responseUrl = ''; @@ -22473,6 +22572,11 @@ class ApiRequest extends lit_element_s { credentials: tempRequest.credentials, body: tempRequest.body }; + + //fetch uses the cookies in the browser, so we add the needed cookies for the request + reqCookie.forEach(cookie => { + document.cookie = `${cookie.name}=${cookie.value}; path=/`; + }); const fetchRequest = new Request(tempRequest.url, updatedFetchOptions); let fetchResponse; let responseClone; @@ -22589,6 +22693,11 @@ class ApiRequest extends lit_element_s { } } this.requestUpdate(); + + //now we remove the cookies added + reqCookie.forEach(cookie => { + document.cookie = `${cookie.name}=; path=/`; + }); } getRequestPanel(e) { return e.target.closest('.request-panel'); @@ -22783,15 +22892,20 @@ class SchemaTable extends lit_element_s { border-radius:2px; border: 1px solid transparent; display: inline-block; - margin-left: -16px; - color:var(--primary-color); + color:var(--vtex-pink); cursor:pointer; font-size: calc(var(--font-size-small) + 4px); font-family: var(--font-mono); background-clip: border-box; } .obj-toggle:hover { - border-color: var(--primary-color); + border-color: var(--vtex-pink); + } + .obj-toggle.expanded::after { + content: '-'; + } + .obj-toggle.collapsed::after { + content: '+'; } .tr.expanded + .object-body { display:block; @@ -22872,11 +22986,17 @@ class SchemaTable extends lit_element_s { let isOneOfLabel = false; if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) { keyLabel = key.replace('::', '').replace('~', ' '); + description = "Click + to expand or - to hide each valid schema."; isOneOfLabel = true; } else if (key.startsWith('::OPTION')) { const parts = key.split('~'); - keyLabel = parts[1]; // eslint-disable-line prefer-destructuring - keyDescr = parts[2]; // eslint-disable-line prefer-destructuring + if (parts[2]) { + keyLabel = parts[2]; + keyDescr = ''; + } else { + keyLabel = parts[1]; + keyDescr = parts[2]; + } } else { keyLabel = key; } @@ -22901,9 +23021,7 @@ class SchemaTable extends lit_element_s {
    ${keyLabel || keyDescr ? lit_html_x` - - ${schemaLevel < this.schemaExpandLevel ? '-' : '+'} - ` : ''} + ` : ''} ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? lit_html_x`${keyLabel}${keyDescr}` : keyLabel.endsWith('*') ? lit_html_x`${data['::deprecated'] ? '❌' : ''} ${keyLabel.substring(0, keyLabel.length - 1)}*` : lit_html_x`${data['::deprecated'] ? '❌' : ''} ${keyLabel === '::props' ? '' : keyLabel}`} ${data['::type'] === 'xxx-of' && dataType === 'array' ? lit_html_x`ARRAY` : ''}
    @@ -22983,26 +23101,21 @@ class SchemaTable extends lit_element_s { handleAllEvents(e) { if (e.target.classList.contains('obj-toggle')) { this.toggleObjectExpand(e); - } else if (e.target.classList.contains('schema-multiline-toggle')) { - this.schemaDescriptionExpanded = this.schemaDescriptionExpanded === 'true' ? 'false' : 'true'; - } else if (e.target.classList.contains('descr-expand-toggle')) { - const trEl = e.target.closest('.tr'); - if (trEl) { - trEl.classList.toggle('expanded-descr'); - trEl.style.maxHeight = trEl.scrollHeight; - } } } toggleObjectExpand(e) { - const rowEl = e.target.closest('.tr'); + const toggleEl = e.target; + const rowEl = toggleEl.closest('.tr'); if (rowEl.classList.contains('expanded')) { rowEl.classList.add('collapsed'); rowEl.classList.remove('expanded'); - e.target.innerText = '+'; + toggleEl.classList.add('collapsed'); + toggleEl.classList.remove('expanded'); } else { rowEl.classList.remove('collapsed'); rowEl.classList.add('expanded'); - e.target.innerText = '-'; + toggleEl.classList.add('expanded'); + toggleEl.classList.remove('collapsed'); } } } @@ -23699,6 +23812,16 @@ function processPathDescription(description) { return replacedMarkdown; } ;// CONCATENATED MODULE: ./src/utils/renderBlockquote.js +const calloutColors = { + info: '#8C929D', + warning: '#FFB100', + danger: '#DC5A41' +}; +function calloutIcon(type) { + const fill = calloutColors[type] || calloutColors.info; + const glyph = type === 'info' ? '' : ''; + return `${glyph}`; +} function renderBlockquote(text) { const infoMarker = 'ℹ️'; const bookMarker = '📘'; @@ -23706,23 +23829,184 @@ function renderBlockquote(text) { const dangerMarker = '❗'; if (text.startsWith(`

    ${infoMarker}`)) { // Apply custom styling for the info blockquote - return `

    ${text.replace(infoMarker, '').trim()}
    `; + return `
    ${calloutIcon('info')}${text.replace(infoMarker, '').trim()}
    `; } if (text.startsWith(`

    ${bookMarker}`)) { // Apply custom styling for the info blockquote - return `

    ${text.replace(bookMarker, '').trim()}
    `; + return `
    ${calloutIcon('info')}${text.replace(bookMarker, '').trim()}
    `; } if (text.startsWith(`

    ${warningMarker} `)) { // Apply custom styling for the warning blockquote - return `

    ${text.replace(warningMarker, '').trim()}
    `; + return `
    ${calloutIcon('warning')}${text.replace(warningMarker, '').trim()}
    `; } if (text.startsWith(`

    ${dangerMarker} `)) { // Apply custom styling for the danger blockquote - return `

    ${text.replace(dangerMarker, '').trim()}
    `; + return `
    ${calloutIcon('danger')}${text.replace(dangerMarker, '').trim()}
    `; } // Default rendering for regular blockquotes - return `
    ${text}
    `; + return `
    ${calloutIcon('info')}${text}
    `; +} +;// CONCATENATED MODULE: ./src/components/assets/postman-icon.js +/* eslint-disable max-len */ + + +/* eslint-disable indent */ +function postmanIcon(dimensions) { + var _dimensions$width, _dimensions$height; + const width = (_dimensions$width = dimensions === null || dimensions === void 0 ? void 0 : dimensions.width) !== null && _dimensions$width !== void 0 ? _dimensions$width : 16; + const height = (_dimensions$height = dimensions === null || dimensions === void 0 ? void 0 : dimensions.height) !== null && _dimensions$height !== void 0 ? _dimensions$height : 16; + return lit_html_x` +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + `; +} +;// CONCATENATED MODULE: ./src/components/assets/openapi-icon.js +/* eslint-disable no-tabs */ +/* eslint-disable max-len */ + + +/* eslint-disable indent */ +function openapiIcon(dimensions) { + var _dimensions$width, _dimensions$height; + const width = (_dimensions$width = dimensions === null || dimensions === void 0 ? void 0 : dimensions.width) !== null && _dimensions$width !== void 0 ? _dimensions$width : 16; + const height = (_dimensions$height = dimensions === null || dimensions === void 0 ? void 0 : dimensions.height) !== null && _dimensions$height !== void 0 ? _dimensions$height : 16; + return lit_html_x` +
    + + + + + + + + + + + + +
    + `; } ;// CONCATENATED MODULE: ./src/templates/expanded-endpoint-template.js @@ -23739,6 +24023,8 @@ function renderBlockquote(text) { + + /* eslint-disable indent */ function headingRenderer(tagElementId) { const renderer = new marked.Renderer(); @@ -23782,18 +24068,40 @@ function expandedEndpointBodyTemplate(path, tagName = '') { ${path.xBadges.map(v => lit_html_x`${v.label}`)}
    ` : ''} -
    +
    ${this.renderStyle === 'focused' && tagName !== 'General ⦂' ? lit_html_x`

    ${this.resolvedSpec.info.title} › ${tagName}

    ` : ''} - ${this.specUrl && this.allowSpecFileDownload ? lit_html_x`
    - - + -
    ` : ''} + }}'> + ${openapiIcon()} + View OpenAPI spec + +
    ` : ''} + ${this.postmanUrl ? lit_html_x`
    + + +
    ` : ''}

    ${path.shortSummary || `${path.method.toUpperCase()} ${path.path}`}

    ${path.isWebhook ? lit_html_x` WEBHOOK ` : lit_html_x` @@ -23843,6 +24151,7 @@ function expandedEndpointBodyTemplate(path, tagName = '') { file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle" spec-url="${this.specUrl}" + postman-url="${this.postmanUrl}" allow-spec-file-download="${this.allowSpecFileDownload}" > @@ -23972,6 +24281,8 @@ function componentsTemplate() { + + /* eslint-disable indent */ function overview_template_headingRenderer() { const renderer = new marked.Renderer(); @@ -23986,15 +24297,36 @@ function overviewTemplate() {
    ${(_this$resolvedSpec = this.resolvedSpec) !== null && _this$resolvedSpec !== void 0 && _this$resolvedSpec.info ? lit_html_x` - ${this.specUrl && this.allowSpecFileDownload === 'true' ? lit_html_x` -
    - - + -
    ` : ''} + }}'> + ${openapiIcon()} + View OpenAPI spec + + ` : ''} + ${this.postmanUrl ? lit_html_x`
    + + +
    ` : ''} +
    ${this.resolvedSpec.info.title} ${!this.resolvedSpec.info.version ? '' : lit_html_x` @@ -24334,6 +24666,9 @@ function focusedEndpointTemplate() { } if (selectedPathObj) { // In focused mode we must expand the nav-bar tag element if it is collapsed + if (selectedPathObj.servers && selectedPathObj.servers.length > 0) { + setApiServer.call(this, selectedPathObj.servers[0].url); + } const newNavEl = this.shadowRoot.getElementById(`link-${focusElId}`); expandCollapseNavBarTag(newNavEl, 'expand'); focusedTemplate = wrapFocusedTemplate.call(this, expandedEndpointBodyTemplate.call(this, selectedPathObj, selectedTagObj.name || '', selectedTagObj.description || '')); @@ -24504,7 +24839,7 @@ function endpointBodyTemplate(path) {
    - ${path.description ? lit_html_x`
    ${unsafe_html_o(path.description)}
    ` : ''} + ${path.description ? lit_html_x`
    ${unsafe_html_o(marked(path.description))}
    ` : ''} ${pathSecurityTemplate.call(this, path.security)} ${codeSampleTabPanel} @@ -24605,7 +24940,7 @@ function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpan return true; }).map(path => lit_html_x`
    - + ${endpointHeadTemplate.call(this, path, pathsExpanded)} ${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
    `)} @@ -25082,12 +25417,12 @@ function setTheme(baseTheme, theme = {}) { const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : 'brown'; const headerColor = theme.headerColor ? theme.headerColor : color_utils.color.brightness(bg1, -180); - /* - const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10); - const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5); - const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1; - const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor; - const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor; + /* + const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10); + const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5); + const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1; + const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor; + const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor; */ const navBgColor = theme.navBgColor ? theme.navBgColor : color_utils.color.brightness(bg1, -200); const navTextColor = theme.navTextColor ? theme.navTextColor : color_utils.color.opacity(color_utils.color.invert(navBgColor), '0.65'); @@ -25436,15 +25771,15 @@ function mainBodyTemplate(isMini = false, showExpandCollapse = true, showTags = class RapiDoc extends lit_element_s { constructor() { super(); - /* const intersectionObserverOptions = { - root: this.getRootNode().host, - rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom - threshold: 0, - }; - this.showSummaryWhenCollapsed = true; - // Will activate intersection observer only after spec load and hash analyze - // to scroll to the proper element without being reverted by observer behavior - this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions); + /* const intersectionObserverOptions = { + root: this.getRootNode().host, + rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom + threshold: 0, + }; + this.showSummaryWhenCollapsed = true; + // Will activate intersection observer only after spec load and hash analyze + // to scroll to the proper element without being reverted by observer behavior + this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions); */ this.isIntersectionObserverActive = false; } @@ -25492,6 +25827,11 @@ class RapiDoc extends lit_element_s { type: String, attribute: false }, + // Postman collection + postmanUrl: { + type: String, + attribute: 'postman-url' + }, // UI Layouts layout: { type: String @@ -26020,11 +26360,11 @@ class RapiDoc extends lit_element_s { super.connectedCallback(); const parent = this.parentElement; if (parent) { - /* if (parent.offsetWidth === 0 && parent.style.width === '') { - parent.style.width = '100vw'; - } - if (parent.offsetHeight === 0 && parent.style.height === '') { - parent.style.height = '100vh'; + /* if (parent.offsetWidth === 0 && parent.style.width === '') { + parent.style.width = '100vw'; + } + if (parent.offsetHeight === 0 && parent.style.height === '') { + parent.style.height = '100vh'; } */ if (parent.tagName === 'BODY') { if (!parent.style.marginTop) { @@ -26121,7 +26461,7 @@ class RapiDoc extends lit_element_s { this.updateRoute = 'true'; } if (!this.routePrefix) { - this.routePrefix = '#'; + this.routePrefix = window.location.href.indexOf('#') > -1 ? '#' : '?endpoint='; } if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; @@ -26203,8 +26543,8 @@ class RapiDoc extends lit_element_s { // Cleanup disconnectedCallback() { - /* if (this.intersectionObserver) { - this.intersectionObserver.disconnect(); + /* if (this.intersectionObserver) { + this.intersectionObserver.disconnect(); } */ super.disconnectedCallback(); } @@ -26215,24 +26555,24 @@ class RapiDoc extends lit_element_s { } render() { // return render(mainBodyTemplate(this), this.shadowRoot, { eventContext: this }); - /* const cssLinkEl = document.querySelector(`link[href*="${this.cssFile}"]`); - // adding custom style for RapiDoc - if (cssLinkEl) { - this.shadowRoot.appendChild(cssLinkEl.cloneNode()); + /* const cssLinkEl = document.querySelector(`link[href*="${this.cssFile}"]`); + // adding custom style for RapiDoc + if (cssLinkEl) { + this.shadowRoot.appendChild(cssLinkEl.cloneNode()); } */ return mainBodyTemplate.call(this); } - /* observeExpandedContent() { - // Main Container - const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me'); - observeOverviewEls.forEach((targetEl) => { - this.intersectionObserver.observe(targetEl); - }); + /* observeExpandedContent() { + // Main Container + const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me'); + observeOverviewEls.forEach((targetEl) => { + this.intersectionObserver.observe(targetEl); + }); } */ attributeChangedCallback(name, oldVal, newVal) { - if (name === 'spec-url') { + if (name === 'spec-url' || name === 'spec') { if (oldVal !== newVal) { // put it at the end of event-loop to load all the attributes window.setTimeout(async () => { @@ -26446,8 +26786,8 @@ class RapiDoc extends lit_element_s { } } - /** - * Return the URL from where is served the RapiDoc component, removing any hash and route prefix + /** + * Return the URL from where is served the RapiDoc component, removing any hash and route prefix */ getComponentBaseURL() { const { @@ -26459,20 +26799,28 @@ class RapiDoc extends lit_element_s { if (!cleanRouterPrefix) { return href.split('#')[0]; } - const indexOfRoutePrefix = href.lastIndexOf(cleanRouterPrefix); - if (indexOfRoutePrefix === -1) { + const splitRoute = href.split(cleanRouterPrefix); + if (splitRoute.length <= 0) { return href; } - return href.slice(0, indexOfRoutePrefix); + return splitRoute[0]; } - /** - * From the URL return the ID of the element whether it is in the hash or if used a router prefix without a hash + /** + * Returns the element id encoded in the URL's hash or router prefix, or + * an empty string when the prefix isn't present (so callers don't get the + * full href and pass it to scrollToPath, which would mis-focus the doc). */ getElementIDFromURL() { + const { + href + } = window.location; const baseURL = this.getComponentBaseURL(); - const elementId = window.location.href.replace(baseURL + this.routePrefix, ''); - return elementId; + const prefix = `${baseURL}${this.routePrefix}`; + if (!href.startsWith(prefix) || href === baseURL) { + return ''; + } + return href.slice(prefix.length); } replaceHistoryState(hashId) { const baseURL = this.getComponentBaseURL(); @@ -26585,16 +26933,16 @@ class RapiDoc extends lit_element_s { } } - /** - * Called by - * - onClick of Navigation Bar - * - onClick of Advanced Search items - * - * Functionality: - * 1. First deactivate IntersectionObserver - * 2. Scroll to the element - * 3. Activate IntersectionObserver (after little delay) - * + /** + * Called by + * - onClick of Navigation Bar + * - onClick of Advanced Search items + * + * Functionality: + * 1. First deactivate IntersectionObserver + * 2. Scroll to the element + * 3. Activate IntersectionObserver (after little delay) + * */ async scrollToEventTarget(event, scrollNavItemToView = true) { if (!(event.type === 'click' || event.type === 'keyup' && event.keyCode === 13)) { @@ -27193,9 +27541,9 @@ class OauthReceiver extends HTMLElement { window.addEventListener('storage', e => this.receiveStorage(e), true); } - /** - * Read OAuth2 parameters and sends them off - * to the window opener through `window.postMessage`. + /** + * Read OAuth2 parameters and sends them off + * to the window opener through `window.postMessage`. */ receiveAuthParms() { let authData = {}; @@ -70113,7 +70461,7 @@ module.exports = JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$s /******/ /******/ /* webpack/runtime/getFullHash */ /******/ (() => { -/******/ __webpack_require__.h = () => ("e5ec666a776024491683") +/******/ __webpack_require__.h = () => ("d358a8b4ef7493681e85") /******/ })(); /******/ /******/ /* webpack/runtime/global */ @@ -71132,7 +71480,7 @@ module.exports = JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$s /******/ // module cache are used so entry inlining is disabled /******/ // startup /******/ // Load entry module and return exports -/******/ var __webpack_exports__ = __webpack_require__(6698); +/******/ var __webpack_exports__ = __webpack_require__(2915); /******/ /******/ })() ; \ No newline at end of file diff --git a/dist/report.html b/dist/report.html index 936ab5d4..fcb6a929 100644 --- a/dist/report.html +++ b/dist/report.html @@ -3,7 +3,7 @@ - rapidoc [26 May 2023 at 17:05] + Webpack Bundle Analyzer [13 Jul 2026 at 16:14] diff --git a/docs/rapidoc-min.js b/docs/rapidoc-min.js index 7844093c..dde80993 100644 --- a/docs/rapidoc-min.js +++ b/docs/rapidoc-min.js @@ -1,5 +1,5 @@ /*! RapiDoc 9.3.5-beta | Author - Mrinmoy Majumdar | License information can be found in rapidoc-min.js.LICENSE.txt */ -(()=>{var e,t,r={6043:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(9185);function i(e,t,r,o,l,c,p,d){let u=null===t?e:e[t];if(u&&"object"==typeof u&&!ArrayBuffer.isView(u))if(n.isAllowed$Ref(u))s(e,t,r,o,l,c,p,d);else{let e=Object.keys(u).sort(((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length));for(let t of e){let e=a.join(r,t),h=a.join(o,t),f=u[t];n.isAllowed$Ref(f)?s(u,t,r,h,l,c,p,d):i(u,t,e,h,l,c,p,d)}}}function s(e,t,r,s,l,c,p,d){let u=null===t?e:e[t],h=o.resolve(r,u.$ref),f=p._resolve(h,s,d);if(null===f)return;let m=a.parse(s).length,g=o.stripHash(f.path),y=o.getHash(f.path),v=g!==p._root$Ref.path,b=n.isExtended$Ref(u);l+=f.indirections;let x=function(e,t,r){for(let n=0;n{if(e.file!==t.file)return e.file{"use strict";const n=r(1969),a=r(9566),{ono:o}=r(8862),i=r(9185);function s(e,t,r,o,i,p,d,u){let h,f={value:e,circular:!1},m=u.dereference.excludedPathMatcher;if(("ignore"===u.dereference.circular||!i.has(e))&&e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!m(r)){if(o.add(e),i.add(e),n.isAllowed$Ref(e,u))h=l(e,t,r,o,i,p,d,u),f.circular=h.circular,f.value=h.value;else for(const g of Object.keys(e)){let y=a.join(t,g),v=a.join(r,g);if(m(v))continue;let b=e[g],x=!1;n.isAllowed$Ref(b,u)?(h=l(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)):o.has(b)?x=c(y,d,u):(h=s(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)),f.circular=f.circular||x}o.delete(e)}return f}function l(e,t,r,a,o,l,p,d){let u=i.resolve(t,e.$ref);const h=l.get(u);if(h){const t=Object.keys(e);if(t.length>1){const r={};for(let n of t)"$ref"===n||n in h.value||(r[n]=e[n]);return{circular:h.circular,value:Object.assign({},h.value,r)}}return h}let f=p._resolve(u,t,d);if(null===f)return{circular:!1,value:null};let m=f.circular,g=m||a.has(f.value);g&&c(t,p,d);let y=n.dereference(e,f.value);if(!g){let e=s(y,f.path,r,a,o,l,p,d);g=e.circular,y=e.value}g&&!m&&"ignore"===d.dereference.circular&&(y=e),m&&(y.$ref=r);const v={circular:g,value:y};return 1===Object.keys(e).length&&l.set(u,v),v}function c(e,t,r){if(t.circular=!0,!r.dereference.circular)throw o.reference(`Circular $ref pointer found at ${e}`);return!0}e.exports=function(e,t){let r=s(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}},321:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(1922),o=r(4185),i=r(5410),s=r(6885),l=r(6043),c=r(3416),p=r(9185),{JSONParserError:d,InvalidPointerError:u,MissingPointerError:h,ResolverError:f,ParserError:m,UnmatchedParserError:g,UnmatchedResolverError:y,isHandledError:v,JSONParserErrorGroup:b}=r(4002),x=r(472),{ono:w}=r(8862);function $(){this.schema=null,this.$refs=new a}function S(e){if(b.getParserErrors(e).length>0)throw new b(e)}e.exports=$,e.exports.default=$,e.exports.JSONParserError=d,e.exports.InvalidPointerError=u,e.exports.MissingPointerError=h,e.exports.ResolverError=f,e.exports.ParserError=m,e.exports.UnmatchedParserError=g,e.exports.UnmatchedResolverError=y,$.parse=function(e,t,r,n){let a=new this;return a.parse.apply(a,arguments)},$.prototype.parse=async function(e,t,r,s){let l,c=i(arguments);if(!c.path&&!c.schema){let e=w(`Expected a file path, URL, or object. Got ${c.path||c.schema}`);return x(c.callback,Promise.reject(e))}this.schema=null,this.$refs=new a;let d="http";if(p.isFileSystemPath(c.path)&&(c.path=p.fromFileSystemPath(c.path),d="file"),c.path=p.resolve(p.cwd(),c.path),c.schema&&"object"==typeof c.schema){let e=this.$refs._add(c.path);e.value=c.schema,e.pathType=d,l=Promise.resolve(c.schema)}else l=o(c.path,this.$refs,c.options);let u=this;try{let e=await l;if(null===e||"object"!=typeof e||n.isBuffer(e)){if(c.options.continueOnError)return u.schema=null,x(c.callback,Promise.resolve(u.schema));throw w.syntax(`"${u.$refs._root$Ref.path||e}" is not a valid JSON Schema`)}return u.schema=e,x(c.callback,Promise.resolve(u.schema))}catch(e){return c.options.continueOnError&&v(e)?(this.$refs._$refs[p.stripHash(c.path)]&&this.$refs._$refs[p.stripHash(c.path)].addError(e),x(c.callback,Promise.resolve(null))):x(c.callback,Promise.reject(e))}},$.resolve=function(e,t,r,n){let a=new this;return a.resolve.apply(a,arguments)},$.prototype.resolve=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.parse(o.path,o.schema,o.options),await s(a,o.options),S(a),x(o.callback,Promise.resolve(a.$refs))}catch(e){return x(o.callback,Promise.reject(e))}},$.bundle=function(e,t,r,n){let a=new this;return a.bundle.apply(a,arguments)},$.prototype.bundle=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),l(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}},$.dereference=function(e,t,r,n){let a=new this;return a.dereference.apply(a,arguments)},$.prototype.dereference=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),c(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}}},5410:(e,t,r)=>{"use strict";const n=r(9021);e.exports=function(e){let t,r,a,o;"function"==typeof(e=Array.prototype.slice.call(e))[e.length-1]&&(o=e.pop());"string"==typeof e[0]?(t=e[0],"object"==typeof e[2]?(r=e[1],a=e[2]):(r=void 0,a=e[1])):(t="",r=e[0],a=e[1]);a instanceof n||(a=new n(a));return{path:t,schema:r,options:a,callback:o}}},9021:(e,t,r)=>{"use strict";const n=r(386),a=r(8391),o=r(4843),i=r(9660),s=r(7743),l=r(5642);function c(e){p(this,c.defaults),p(this,e)}function p(e,t){if(d(t)){let r=Object.keys(t);for(let n=0;n!1}}},4185:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ono:a}=r(8862),o=r(9185),i=r(9961),{ResolverError:s,ParserError:l,UnmatchedParserError:c,UnmatchedResolverError:p,isHandledError:d}=r(4002);e.exports=async function(e,t,r){e=o.stripHash(e);let u=t._add(e),h={url:e,extension:o.getExtension(e)};try{const e=await function(e,t,r){return new Promise(((n,o)=>{let l=i.all(t.resolve);function c(r){!r&&t.continueOnError?o(new p(e.url)):r&&"error"in r?r.error instanceof s?o(r.error):o(new s(r,e.url)):o(a.syntax(`Unable to resolve $ref pointer "${e.url}"`))}l=i.filter(l,"canRead",e),i.sort(l),i.run(l,"read",e,r).then(n,c)}))}(h,r,t);u.pathType=e.plugin.name,h.data=e.result;const o=await function(e,t,r){return new Promise(((o,s)=>{let p=i.all(t.parse),d=i.filter(p,"canParse",e),u=d.length>0?d:p;function h(t){var r;!t.plugin.allowEmpty&&(void 0===(r=t.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||n.isBuffer(r)&&0===r.length)?s(a.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`)):o(t)}function f(r){!r&&t.continueOnError?s(new c(e.url)):r&&"error"in r?r.error instanceof l?s(r.error):s(new l(r.error.message,e.url)):s(a.syntax(`Unable to parse ${e.url}`))}i.sort(u),i.run(u,"parse",e,r).then(h,f)}))}(h,r,t);return u.value=o.result,o.result}catch(e){throw d(e)&&(u.value=e),e}}},9660:(e,t,r)=>{"use strict";var n=r(8764).Buffer;let a=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;e.exports={order:400,allowEmpty:!0,canParse:e=>n.isBuffer(e.data)&&a.test(e.url),parse:e=>n.isBuffer(e.data)?e.data:n.from(e.data)}},386:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);e.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;if(0!==t.trim().length)try{return JSON.parse(t)}catch(t){throw new a(t.message,e.url)}}}},4843:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);let o=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;e.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||n.isBuffer(e.data))&&o.test(e.url),parse(e){if("string"==typeof e.data)return e.data;if(n.isBuffer(e.data))return e.data.toString(this.encoding);throw new a("data is not text",e.url)}}},8391:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002),o=r(3320),{JSON_SCHEMA:i}=r(3320);e.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;try{return o.load(t,{schema:i})}catch(t){throw new a(t.message,e.url)}}}},9566:(e,t,r)=>{"use strict";e.exports=h;const n=r(1969),a=r(9185),{JSONParserError:o,InvalidPointerError:i,MissingPointerError:s,isHandledError:l}=r(4002),c=/\//g,p=/~/g,d=/~1/g,u=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function f(e,t){if(n.isAllowed$Ref(e.value,t)){let r=a.resolve(e.path,e.value.$ref);if(r!==e.path){let a=e.$ref.$refs._resolve(r,e.path,t);return null!==a&&(e.indirections+=a.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,a.value),!1):(e.$ref=a.$ref,e.path=a.path,e.value=a.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new o(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function g(e){if(l(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=g(e);for(let e=0;e{"use strict";e.exports=p;const n=r(9566),{InvalidPointerError:a,isHandledError:o,normalizeError:i}=r(4002),{safePointerToPath:s,stripHash:l,getHash:c}=r(9185);function p(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}p.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map((({footprint:e})=>e));Array.isArray(e.errors)?this.errors.push(...e.errors.map(i).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(i(e))},p.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},p.prototype.get=function(e,t){return this.resolve(e,t).value},p.prototype.resolve=function(e,t,r,i){let p=new n(this,e,r);try{return p.resolve(this.value,t,i)}catch(e){if(!t||!t.continueOnError||!o(e))throw e;return null===e.path&&(e.path=s(c(i))),e instanceof a&&(e.source=decodeURI(l(i))),this.addError(e),null}},p.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},p.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},p.isExternal$Ref=function(e){return p.is$Ref(e)&&"#"!==e.$ref[0]},p.isAllowed$Ref=function(e,t){if(p.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},p.isExtended$Ref=function(e){return p.is$Ref(e)&&Object.keys(e).length>1},p.dereference=function(e,t){if(t&&"object"==typeof t&&p.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},1922:(e,t,r)=>{"use strict";const{ono:n}=r(8862),a=r(1969),o=r(9185);function i(){this.circular=!1,this._$refs={},this._root$Ref=null}function s(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((r=>-1!==t.indexOf(e[r].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?o.toFileSystemPath(t,!0):t})))}e.exports=i,i.prototype.paths=function(e){return s(this._$refs,arguments).map((e=>e.decoded))},i.prototype.values=function(e){let t=this._$refs;return s(t,arguments).reduce(((e,r)=>(e[r.decoded]=t[r.encoded].value,e)),{})},i.prototype.toJSON=i.prototype.values,i.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},i.prototype.get=function(e,t){return this._resolve(e,"",t).value},i.prototype.set=function(e,t){let r=o.resolve(this._root$Ref.path,e),a=o.stripHash(r),i=this._$refs[a];if(!i)throw n(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);i.set(r,t)},i.prototype._add=function(e){let t=o.stripHash(e),r=new a;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r},i.prototype._resolve=function(e,t,r){let a=o.resolve(this._root$Ref.path,e),i=o.stripHash(a),s=this._$refs[i];if(!s)throw n(`Error resolving $ref pointer "${e}". \n"${i}" not found.`);return s.resolve(a,r,e,t)},i.prototype._get$Ref=function(e){e=o.resolve(this._root$Ref.path,e);let t=o.stripHash(e);return this._$refs[t]}},6885:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(4185),i=r(9185),{isHandledError:s}=r(4002);function l(e,t,r,o,i){i=i||new Set;let s=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!i.has(e))if(i.add(e),n.isExternal$Ref(e))s.push(c(e,t,r,o));else for(let p of Object.keys(e)){let d=a.join(t,p),u=e[p];n.isExternal$Ref(u)?s.push(c(u,d,r,o)):s=s.concat(l(u,d,r,o,i))}return s}async function c(e,t,r,n){let a=i.resolve(t,e.$ref),c=i.stripHash(a);if(e=r._$refs[c])return Promise.resolve(e.value);try{let e=l(await o(a,r,n),c+"#",r,n);return Promise.all(e)}catch(e){if(!n.continueOnError||!s(e))throw e;return r._$refs[c]&&(e.source=decodeURI(i.stripHash(t)),e.path=i.safePointerToPath(i.getHash(t))),[]}}e.exports=function(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=l(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(e){return Promise.reject(e)}}},7743:(e,t,r)=>{"use strict";const n=r(3471),{ono:a}=r(8862),o=r(9185),{ResolverError:i}=r(4002);e.exports={order:100,canRead:e=>o.isFileSystemPath(e.url),read:e=>new Promise(((t,r)=>{let s;try{s=o.toFileSystemPath(e.url)}catch(t){r(new i(a.uri(t,`Malformed URI: ${e.url}`),e.url))}try{n.readFile(s,((e,n)=>{e?r(new i(a(e,`Error opening file "${s}"`),s)):t(n)}))}catch(e){r(new i(a(e,`Error opening file "${s}"`),s))}}))}},5642:(e,t,r)=>{"use strict";var n=r(4155),a=r(8764).Buffer;const o=r(8501),i=r(9267),{ono:s}=r(8862),l=r(9185),{ResolverError:c}=r(4002);function p(e,t,r){return new Promise(((n,d)=>{e=l.parse(e),(r=r||[]).push(e.href),function(e,t){return new Promise(((r,n)=>{let s=("https:"===e.protocol?i:o).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",n),s.once("response",(e=>{e.body=a.alloc(0),e.on("data",(t=>{e.body=a.concat([e.body,a.from(t)])})),e.on("error",n),e.on("end",(()=>{r(e)}))}))}))}(e,t).then((o=>{if(o.statusCode>=400)throw s({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)d(new c(s({status:o.statusCode},`Error downloading ${r[0]}. \nToo many redirects: \n ${r.join(" \n ")}`)));else{if(!o.headers.location)throw s({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);p(l.resolve(e,o.headers.location),t,r).then(n,d)}else n(o.body||a.alloc(0))})).catch((t=>{d(new c(s(t,`Error downloading ${e.href}`),e.href))}))}))}e.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>l.isHttp(e.url),read(e){let t=l.parse(e.url);return n.browser&&!t.protocol&&(t.protocol=l.parse(location.href).protocol),p(t,this)}}},4002:(e,t,r)=>{"use strict";const{Ono:n}=r(8862),{stripHash:a,toFileSystemPath:o}=r(9185),i=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};l(i);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${o(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};l(s);l(t.ParserError=class extends i{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});l(t.UnmatchedParserError=class extends i{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});l(t.ResolverError=class extends i{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});l(t.UnmatchedResolverError=class extends i{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});l(t.MissingPointerError=class extends i{constructor(e,t){super(`Token "${e}" does not exist.`,a(t)),this.code="EMISSINGPOINTER"}});function l(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}l(t.InvalidPointerError=class extends i{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,a(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof i||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},9961:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if("function"==typeof o)return o.apply(e,[r,n,a]);if(!n){if(o instanceof RegExp)return o.test(r.url);if("string"==typeof o)return o===r.extension;if(Array.isArray(o))return-1!==o.indexOf(r.extension)}return o}t.all=function(e){return Object.keys(e).filter((t=>"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},t.filter=function(e,t,n){return e.filter((e=>!!r(e,t,n)))},t.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},t.run=function(e,t,n,a){let o,i,s=0;return new Promise(((l,c)=>{function p(){if(o=e[s++],!o)return c(i);try{let i=r(o,t,n,d,a);if(i&&"function"==typeof i.then)i.then(u,h);else if(void 0!==i)u(i);else if(s===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){h(e)}}function d(e,t){e?h(e):u(t)}function u(e){l({plugin:o,result:e})}function h(e){i={plugin:o,error:e},p()}p()}))}},9185:(e,t,r)=>{"use strict";var n=r(4155);let a=/^win/.test(n.platform),o=/\//g,i=/^(\w{2,}):\/\//i,s=e.exports,l=/~1/g,c=/~0/g,p=[/\?/g,"%3F",/\#/g,"%23"],d=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(8575).parse,t.resolve=r(8575).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){a&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(l,"/").replace(c,"~")))}},7929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openapi=t.openapiV31=t.openapiV3=t.openapiV2=t.openapiV1=void 0,t.openapiV1=r(8479),t.openapiV2=r(499),t.openapiV3=r(3659),t.openapiV31=r(1201),t.openapi={v1:t.openapiV1,v2:t.openapiV2,v3:t.openapiV3,v31:t.openapiV31},t.default=t.openapi,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},9181:e=>{"use strict";e.exports=["get","put","post","delete","options","head","patch"]},7325:(e,t,r)=>{"use strict";const n=r(4162),a=r(2103),o=r(5410),i=r(7323),s=r(7757),l=r(472),{ono:c}=r(8862),p=r(321),d=r(3416);function u(){p.apply(this,arguments)}e.exports=u,i.inherits(u,p),u.parse=p.parse,u.resolve=p.resolve,u.bundle=p.bundle,u.dereference=p.dereference,Object.defineProperty(u.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}}),u.prototype.parse=async function(e,t,r,n){let a=o(arguments);a.options=new s(a.options);try{let e=await p.prototype.parse.call(this,a.path,a.schema,a.options);if(e.swagger){if(void 0===e.swagger||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Swagger API definition`);if("number"==typeof e.swagger)throw c.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if("2.0"!==e.swagger)throw c.syntax(`Unrecognized Swagger version: ${e.swagger}. Expected 2.0`)}else{let t=["3.0.0","3.0.1","3.0.2","3.0.3"];if(void 0===e.openapi||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Openapi API definition`);if("number"==typeof e.openapi)throw c.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===t.indexOf(e.openapi))throw c.syntax(`Unsupported OpenAPI version: ${e.openapi}. Swagger Parser only supports versions ${t.join(", ")}`)}return l(a.callback,Promise.resolve(e))}catch(e){return l(a.callback,Promise.reject(e))}},u.validate=function(e,t,r,n){let a=new this;return a.validate.apply(a,arguments)},u.prototype.validate=async function(e,t,r,i){let p=this,u=o(arguments);u.options=new s(u.options);let h=u.options.dereference.circular;u.options.validate.schema&&(u.options.dereference.circular="ignore");try{if(await this.dereference(u.path,u.schema,u.options),u.options.dereference.circular=h,u.options.validate.schema&&(n(p.api),p.$refs.circular))if(!0===h)d(p,u.options);else if(!1===h)throw c.reference("The API contains circular references");return u.options.validate.spec&&a(p.api),l(u.callback,Promise.resolve(p.schema))}catch(e){return l(u.callback,Promise.reject(e))}}},7757:(e,t,r)=>{"use strict";const n=r(9021),a=r(4162),o=r(2103),i=r(9539);function s(e){n.call(this,s.defaults),n.apply(this,arguments)}e.exports=s,s.defaults={validate:{schema:a,spec:o}},i.inherits(s,n)},7323:(e,t,r)=>{"use strict";const n=r(9539);t.format=n.format,t.inherits=n.inherits,t.swaggerParamRegExp=/\{([^/}]+)}/g},4162:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(5077),{openapi:i}=r(7929);e.exports=function(e){let t=e.swagger?i.v2:i.v3;if(!s.validate(e,t)){let e=s.getLastError(),t="Swagger schema validation failed. \n"+l(e.details);throw a.syntax(e,{details:e.details},t)}};let s=(delete i.v2.id,delete i.v3.id,o.registerFormat("uri-reference",(e=>e.trim().length>0)),new o({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0}));function l(e,t){t=t||" ";let r="";for(let a of e)r+=n.format(`${t}${a.message} at #/${a.path.join("/")}\n`),a.inner&&(r+=l(a.inner,t+" "));return r}},2103:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(9181),i=["array","boolean","integer","number","string"],s=["array","boolean","integer","number","string","object","null",void 0];function l(e,t,r,n){for(let i of o){let o=t[i],s=r+"/"+i;if(o){let i=o.operationId;if(i){if(-1!==n.indexOf(i))throw a.syntax(`Validation failed. Duplicate operation id '${i}'`);n.push(i)}c(e,t,r,o,s);let l=Object.keys(o.responses||{});for(let e of l){d(e,o.responses[e]||{},s+"/responses/"+e)}}}}function c(e,t,r,o,l){let c=t.parameters||[],d=o.parameters||[];try{p(c)}catch(e){throw a.syntax(e,`Validation failed. ${r} has duplicate parameters`)}try{p(d)}catch(e){throw a.syntax(e,`Validation failed. ${l} has duplicate parameters`)}let f=c.reduce(((e,t)=>(e.some((e=>e.in===t.in&&e.name===t.name))||e.push(t),e)),d.slice());!function(e,t){let r=e.filter((e=>"body"===e.in)),n=e.filter((e=>"formData"===e.in));if(r.length>1)throw a.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw a.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}(f,l),function(e,t,r){let o=t.match(n.swaggerParamRegExp)||[];for(let e=0;e"path"===e.in));for(let t of e){if(!0!==t.required)throw a.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${t.name}" parameter at ${r}`);let e=o.indexOf("{"+t.name+"}");if(-1===e)throw a.syntax(`Validation failed. ${r} has a path parameter named "${t.name}", but there is no corresponding {${t.name}} in the path string`);o.splice(e,1)}if(o.length>0)throw a.syntax(`Validation failed. ${r} is missing path parameter(s) for ${o}`)}(f,r,l),function(e,t,r,n){for(let o of e){let e,l,c=n+"/parameters/"+o.name;switch(o.in){case"body":e=o.schema,l=s;break;case"formData":e=o,l=i.concat("file");break;default:e=o,l=i}if(u(e,c,l),h(e,c),"file"===e.type){let e=/multipart\/(.*\+)?form-data/,o=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some((t=>e.test(t)||o.test(t))))throw a.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}(f,e,o,l)}function p(e){for(let t=0;t599))throw a.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let e of n){u(t.headers[e],r+"/headers/"+e,i)}if(t.schema){let e=s.concat("file");if(-1===e.indexOf(t.schema.type))throw a.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);u(t.schema,r+"/schema",e)}}function u(e,t,r){if(-1===r.indexOf(e.type))throw a.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if("array"===e.type&&!e.items)throw a.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}function h(e,t){if(e.required&&Array.isArray(e.required)){let r={};!function e(t,r){if(t.properties)for(let e in t.properties)t.properties.hasOwnProperty(e)&&(r[e]=t.properties[e]);if(t.allOf)for(let n of t.allOf)e(n,r)}(e,r);for(let n of e.required)if(!r[n])throw a.syntax(`Validation failed. Property '${n}' listed as required but does not exist in '${t}'`)}}e.exports=function(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let n of t){let t=e.paths[n],a="/paths"+n;t&&0===n.indexOf("/")&&l(e,t,a,r)}let n=Object.keys(e.definitions||{});for(let t of n){h(e.definitions[t],"/definitions/"+t)}}},8862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>y,default:()=>$,ono:()=>b});const n=!1,a=!1,o=/\r?\n/,i=/\bono[ @]/;function s(e,t){let r=c(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function l(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>s({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>c(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function c(e){if(e){let t,r=e.split(o);for(let e=0;e0)return r.join("\n")}return e}const p=["function","symbol","undefined"],d=["constructor","prototype","__proto__"],u=Object.getPrototypeOf({});function h(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],a=typeof n;p.includes(a)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==u;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(d))n.delete(e);return n}const m=["name","message","stack"];function g(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=s(e,t)):l(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,m),n=e,a=t;for(let e of r)if(void 0===n[e])try{n[e]=a[e]}catch(e){}}(n,t),n.toJSON=h,a&&a(n),r&&"object"==typeof r&&Object.assign(n,r),n}const y=v;function v(e,t){function r(...r){let{originalError:n,props:a,message:o}=function(e,t){let r,n,a,o="";return"string"==typeof e[0]?a=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],a=e.slice(1)):(r=e[0],n=e[1],a=e.slice(2)),a.length>0&&(o=t.format?t.format.apply(void 0,a):a.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?" \n":"")+r.message),{originalError:r,props:n,message:o}}(r,t);return g(new e(o),n,a)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?n:"function"==typeof e.format&&e.format}}(t),r[Symbol.species]=e,r}v.toJSON=function(e){return h.call(e)},v.extend=function(e,t,r){return r||t instanceof Error?g(e,t,r):t?g(e,void 0,t):g(e)};const b=w;w.error=new y(Error),w.eval=new y(EvalError),w.range=new y(RangeError),w.reference=new y(ReferenceError),w.syntax=new y(SyntaxError),w.type=new y(TypeError),w.uri=new y(URIError);const x=w;function w(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(x))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return w.error.apply(void 0,e)}r(9539);e=r.hmd(e);const $=b;"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},5096:(e,t,r)=>{"use strict";var n=r(5108),a=r(7153),o=r(3610),i=r(7531),s=r(4022),l=r(5035),c=r(1516),p=r(7753),d=r(3978),u=r(2889);e.exports=v,v.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var a=r(t);!0!==r.$async&&(this.errors=r.errors);return a},v.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},v.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var a=0;a{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},2931:(e,t,r)=>{"use strict";var n=r(7802).MissingRef;e.exports=function e(t,r,a){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(a=r,r=void 0);var i=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||l(e)}));a&&i.then((function(e){a(null,e)}),a);return i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function l(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=o._loadingSchemas[n];a||(a=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(i,i);return a.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function i(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},7802:(e,t,r)=>{"use strict";var n=r(3610);function a(e,t,r){this.message=r||a.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(a)},a.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},1516:(e,t,r)=>{"use strict";var n=r(2889),a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,u=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(a);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(i);if(!r)return!1;var n=r[1],a=r[2],o=r[3],s=r[5];return(n<=23&&a<=59&&o<=59||23==n&&59==a&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var v=/t|\s/i;var b=/\/|:/;var x=/[^\\]\\Z/;function w(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7153:(e,t,r)=>{"use strict";var n=r(3610),a=r(2889),o=r(7802),i=r(5035),s=r(9508),l=a.ucs2length,c=r(4063),p=o.Validation;function d(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function u(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n{"use strict";var n=r(540),a=r(4063),o=r(2889),i=r(4022),s=r(9461);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof i)return f(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var a,o,s,p=c.call(this,t,r);return p&&(a=p.schema,t=p.root,s=p.baseId),a instanceof i?o=a.validate||e.call(this,a.schema,t,void 0,s):void 0!==a&&(o=f(a,this._opts.inlineRefs)?a:e.call(this,a,t,void 0,s)),o}function c(e,t){var r=n.parse(t),a=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var s=x(a),l=this._refs[s];if("string"==typeof l)return p.call(this,e,l,r);if(l instanceof i)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof i))return;if(l.validate||this._compile(l),s==x(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=y(this._getId(e.schema))}return u.call(this,r,o,e.schema,e)}function p(e,t,r){var n=c.call(this,e,t);if(n){var a=n.schema,o=n.baseId;e=n.root;var i=this._getId(a);return i&&(o=w(o,i)),u.call(this,r,o,a,e)}}e.exports=l,l.normalizeId=x,l.fullPath=y,l.url=w,l.ids=function(e){var t=x(this._getId(e)),r={"":t},i={"":y(t,!1)},l={},c=this;return s(e,{allKeys:!0},(function(e,t,s,p,d,u,h){if(""!==t){var f=c._getId(e),m=r[p],g=i[p]+"/"+d;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof f){f=m=x(m?n.resolve(m,f):f);var y=c._refs[f];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!a(e,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=x(g))if("#"==f[0]){if(l[f]&&!a(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=g}r[t]=m,i[t]=g}})),l},l.inlineRef=f,l.schema=c;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function u(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),i=1;i{"use strict";var n=r(6674),a=r(2889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=a(t),e.types=a(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var a;if("object"==typeof r){var o=Object.keys(r)[0];a=r[o],r=o,a.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:a}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=a(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},4022:(e,t,r)=>{"use strict";var n=r(2889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,a=0;a=55296&&t<=56319&&a{"use strict";function n(e,t,r,n){var a=n?" !== ":" === ",o=n?" || ":" && ",i=n?"!":"",s=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+o+"typeof "+t+a+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+o+s+"("+t+" % 1)"+o+t+a+t+(r?o+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(r?o+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var a="",i=o(e);for(var s in i.array&&i.object&&(a=i.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)a+=(a?" && ":"")+n(s,t,r,!0);return a},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!a)return o}for(var s=o,c=a.split("/"),p=0;p{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8210:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[f],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!u&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(f+" must be number or boolean");if(g){var x=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,$="exclType"+o,S="exclIsNumber"+o,E="' + "+(_="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+x+"; ",a+=" var "+w+"; var "+$+" = typeof "+(x="schemaExcl"+o)+"; if ("+$+" != 'boolean' && "+$+" != 'undefined' && "+$+" != 'number') { ";var k;b=f;(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var A=a;a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+$+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+y+"= "+n+") ? "+d+" "+v+"= "+x+" : "+d+" "+v+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+d+" "+v+"= "+n+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=f,c=e.errSchemaPath+"/"+f,n=x,u=g)}else{E=y;if((S="number"==typeof m)&&u){var _="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+d+" "+v+"= "+m+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { "}else{S&&void 0===s?(w=!0,b=f,c=e.errSchemaPath+"/"+f,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=f,c=e.errSchemaPath+"/"+f,v+="="):(w=!1,E+="="));_="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+" "+v+" "+n+" || "+d+" !== "+d+") { "}}b=b||t,(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+E+" ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";A=a;return a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { "),a}},3038:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},425:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?a+=" "+d+".length ":a+=" ucs2length("+d+") ",a+=" "+h+" "+n+") { ";var f=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var g=a;return a=m.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8204:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},2988:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var p="valid"+l.level,d=l.baseId,u=!0,h=a;if(h)for(var f,m=-1,g=h.length-1;m0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(u=!1,l.schema=f,l.schemaPath=o+"["+m+"]",l.errSchemaPath=i+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=d,s&&(n+=" if ("+p+") { ",c+="}"));return s&&(n+=u?" if (true) { ":" "+c.slice(0,-1)+" "),n}},9996:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+u+" = errors; var "+d+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=i;if(b)for(var x,w=-1,$=b.length-1;w<$;)x=b[w+=1],h.schema=x,h.schemaPath=s+"["+w+"]",h.errSchemaPath=l+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+d+" = "+d+" || "+m+"; if (!"+d+") { ",f+="}";e.compositeRule=h.compositeRule=v,n+=" "+f+" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},7812:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(a));return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},5306:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),u||(n+=" var schema"+a+" = validate.schema"+s+";"),n+="var "+d+" = equal("+p+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m="i"+a,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+u+" = errors;var "+d+";",b){var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+f+" = false; for (var "+m+" = 0; "+m+" < "+p+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=p+"["+m+"]";h.dataPathArr[g]=m;var $=e.validate(h);h.baseId=v,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,w)+" ":n+=" var "+y+" = "+w+"; "+$+" ",n+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=x,n+=" if (!"+f+") {"}else n+=" if ("+p+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},4165:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,u="data"+(s||""),h="valid"+i,f="errs__"+i,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+i+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",a="schema"+i):a=l;var g,y,v,b,x,w=this,$="definition"+i,S=w.definition,E="";if(m&&S.$data){x="keywordValidate"+i;var k=S.validateSchema;o+=" var "+$+" = RULES.custom['"+t+"'].definition; var "+x+" = "+$+".validate;"}else{if(!(b=e.useCustomRule(w,l,e.schema,e)))return;a="validate.schema"+c,x=b.code,g=S.compile,y=S.inline,v=S.macro}var A=x+".errors",_="i"+i,O="ruleErr"+i,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=A+" = null;"),o+="var "+f+" = errors;var "+h+";",m&&S.$data&&(E+="}",o+=" if ("+a+" === undefined) { "+h+" = true; } else { ",k&&(E+="}",o+=" "+h+" = "+$+".validateSchema("+a+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var T=e.util.copy(e);E="";T.level++;var j="valid"+T.level;T.schema=b.validate,T.schemaPath="";var R=e.compositeRule;e.compositeRule=T.compositeRule=!0;var C=e.validate(T).replace(/validate\.schema/g,x);e.compositeRule=T.compositeRule=R,o+=" "+C}else{(L=L||[]).push(o),o="",o+=" "+x+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+u+" ":o+=" , "+a+" , "+u+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",M=o+=" , "+I+" , "+D+" , rootData ) ";o=L.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=M+"; "):o+=P?" var "+(A="customErrors"+i)+" = null; try { "+h+" = await "+M+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+h+" = "+M+"; "}if(S.modifying&&(o+=" if ("+I+") "+u+" = "+I+"["+D+"];"),o+=""+E,S.valid)d&&(o+=" if (true) { ");else{var L;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+j:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(L=L||[]).push(o),o="",(L=L||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var N=o;o=L.pop(),!e.compositeRule&&d?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=L.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+_+"="+f+"; "+_+"{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m={},g={},y=e.opts.ownProperties;for(w in i)if("__proto__"!=w){var v=i[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+d+" = errors;";var x=e.errorPath;for(var w in n+="var missing"+a+";",g)if((b=g[w]).length){if(n+=" if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var $=b;if($)for(var S=-1,E=$.length-1;S0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+f+" = true; if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",u.schema=v,u.schemaPath=s+e.util.getProperty(w),u.errSchemaPath=l+"/"+e.util.escapeFragment(w),n+=" "+e.validate(u)+" ",u.baseId=D,n+=" } ",c&&(n+=" if ("+f+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},1740:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="i"+a,f="schema"+a;u||(n+=" var "+f+" = validate.schema"+s+";"),n+="var "+d+";",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=d+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+p+", "+f+"["+h+"])) { "+d+" = true; break; }",u&&(n+=" } "),n+=" if (!"+d+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9014:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var d,u=e.opts.$data&&i&&i.$data;u?(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",d="schema"+a):d=i;var h=e.opts.unknownFormats,f=Array.isArray(h);if(u){n+=" var "+(m="format"+a)+" = formats["+d+"]; var "+(g="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+a)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+a+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",u&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+d+" && !"+m+" ",f&&(n+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+a+" ? await "+m+"("+p+") : "+m+"("+p+")) ":n+=" "+m+"("+p+") ",n+=" : "+m+".test("+p+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(f&&h.indexOf(i)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+p+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+p+") ":" "+b+".test("+p+") ",n+=") { "}}var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=u?""+d:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=u?"' + "+d+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=u?"validate.schema"+s:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var w=n;return n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},7231:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var x;h.createErrors=!1,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+u+" = errors; var "+d+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'then'; ":x="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+f+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'else'; ":x="'else'",n+=" } "),n+=" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+x+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},6674:(e,t,r)=>{"use strict";e.exports={$ref:r(2392),allOf:r(2988),anyOf:r(9996),$comment:r(7812),const:r(5306),contains:r(2840),dependencies:r(6659),enum:r(1740),format:r(9014),if:r(7231),items:r(7482),maximum:r(8210),minimum:r(8210),maxItems:r(3038),minItems:r(3038),maxLength:r(425),minLength:r(425),maxProperties:r(8204),minProperties:r(8204),multipleOf:r(3673),not:r(8528),oneOf:r(9709),pattern:r(9614),properties:r(1175),propertyNames:r(8441),required:r(1287),uniqueItems:r(3603),validate:r(9508)}},7482:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g="i"+a,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+u+" = errors;var "+d+";",Array.isArray(i)){var x=e.schema.additionalItems;if(!1===x){n+=" "+d+" = "+p+".length <= "+i.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+d+") { ";var $=$||[];$.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=$.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=w,c&&(f+="}",n+=" else { ")}var E=i;if(E)for(var k,A=-1,_=E.length-1;A<_;)if(k=E[A+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";h.schema=k,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,h.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),h.dataPathArr[y]=A;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",f+="}")}if("object"==typeof x&&(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))){h.schema=x,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+p+".length > "+i.length+") { for (var "+g+" = "+i.length+"; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+f+" if ("+u+" == errors) {"),n}},3673:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="var division"+o+";if (",u&&(a+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),a+=" (division"+o+" = "+d+" / "+n+", ",e.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",u&&(a+=" ) "),a+=" ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8528:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l,n+=" var "+d+" = errors; ";var f,m=e.compositeRule;e.compositeRule=u.compositeRule=!0,u.createErrors=!1,u.opts.allErrors&&(f=u.opts.allErrors,u.opts.allErrors=!1),n+=" "+e.validate(u)+" ",u.createErrors=!0,f&&(u.opts.allErrors=f),e.compositeRule=u.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},9709:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+a,v="passingSchemas"+a;n+="var "+u+" = errors , "+y+" = false , "+d+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=i;if(x)for(var w,$=-1,S=x.length-1;$0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+$+"]",h.errSchemaPath=l+"/"+$,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",$&&(n+=" if ("+m+" && "+y+") { "+d+" = false; "+v+" = ["+v+", "+$+"]; } else { ",f+="}"),n+=" if ("+m+") { "+d+" = "+y+" = true; "+v+" = "+$+"; }";return e.compositeRule=h.compositeRule=b,n+=f+"if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9614:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),a+=" !"+(u?"(new RegExp("+n+"))":e.usePattern(s))+".test("+d+") ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",a+=u?""+n:""+e.util.toQuotedString(s),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=u?"' + "+n+" + '":""+e.util.escapeQuotes(s),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+e.util.toQuotedString(s),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},1175:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m="key"+a,g="idx"+a,y=u.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+a,x=Object.keys(i||{}).filter(C),w=e.schema.patternProperties||{},$=Object.keys(w).filter(C),S=e.schema.additionalProperties,E=x.length||$.length,k=!1===S,A="object"==typeof S&&Object.keys(S).length,_=e.opts.removeAdditional,O=k||A||_,P=e.opts.ownProperties,T=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=x;if(I)for(var D=-1,M=I.length-1;D0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var Q=e.util.getProperty(K),ee=(W=p+Q,Z&&void 0!==X.default);u.schema=X,u.schemaPath=s+Q,u.errSchemaPath=l+"/"+e.util.escapeFragment(K),u.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),u.dataPathArr[y]=e.util.toQuotedString(K);V=e.validate(u);if(u.baseId=T,e.util.varOccurences(V,v)<2){V=e.util.varReplace(V,v,W);var te=W}else{te=v;n+=" var "+v+" = "+W+"; "}if(ee)n+=" "+V+" ";else{if(R&&R[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+f+" = false; ";U=e.errorPath,B=l;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,K,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";H=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=B,e.errorPath=U,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+f+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+V+" } "}}c&&(n+=" if ("+f+") { ",h+="}")}}if($.length){var ae=$;if(ae)for(var oe,ie=-1,se=ae.length-1;ie0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){u.schema=X,u.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),u.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+p+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",u.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);W=p+"["+m+"]";u.dataPathArr[y]=m;V=e.validate(u);u.baseId=T,e.util.varOccurences(V,v)<2?n+=" "+e.util.varReplace(V,v,W)+" ":n+=" var "+v+" = "+W+"; "+V+" ",c&&(n+=" if (!"+f+") break; "),n+=" } ",c&&(n+=" else "+f+" = true; "),n+=" } ",c&&(n+=" if ("+f+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},8441:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(n+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l;var f="key"+a,m="idx"+a,g="i"+a,y="' + "+f+" + '",v="data"+(u.dataLevel=e.dataLevel+1),b="dataProperties"+a,x=e.opts.ownProperties,w=e.baseId;x&&(n+=" var "+b+" = undefined; "),n+=x?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+f+" = "+b+"["+m+"]; ":" for (var "+f+" in "+p+") { ",n+=" var startErrs"+a+" = errors; ";var $=f,S=e.compositeRule;e.compositeRule=u.compositeRule=!0;var E=e.validate(u);u.baseId=w,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,$)+" ":n+=" var "+v+" = "+$+"; "+E+" ",e.compositeRule=u.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(s||""),u="valid"+i;if("#"==l||"#/"==l)e.isRoot?(n=e.async,a="validate"):(n=!0===e.root.schema.$async,a="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(f),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,f);e.logger.warn(f),p&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",p&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,a=h.code}if(a){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+a+".call(this, ":o+=" "+a+"( ",o+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");p&&(o+=" var "+u+"; "),o+=" try { await "+b+"; ",p&&(o+=" "+u+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(o+=" "+u+" = false; "),o+=" } ",p&&(o+=" if ("+u+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",p&&(o+=" else { ")}return o}},1287:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!u)if(i.length0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=g)}}else f=i;if(u||f.length){var x=e.errorPath,w=u||f.length>=e.opts.loopRequired,$=e.opts.ownProperties;if(c)if(n+=" var missing"+a+"; ",w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),n+=" var "+d+" = true; ",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { "+d+" = "+p+"["+h+"["+A+"]] !== undefined ",$&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+="; if (!"+d+") break; } ",u&&(n+=" } "),n+=" if (!"+d+") { ",(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=f;if(k)for(var A=-1,_=k.length-1;A<_;){j=k[A+=1],A&&(n+=" || "),n+=" ( ( "+(D=p+(I=e.util.getProperty(j)))+" === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:I)+") ) "}n+=") { ";var O;S="' + "+(P="missing"+a)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,P,!0):x+" + "+P),(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),u&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { if ("+p+"["+h+"["+A+"]] === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",u&&(n+=" } ")}else{var T=f;if(T)for(var j,R=-1,C=T.length-1;R{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(a+=" var "+u+"; if ("+n+" === false || "+n+" === undefined) "+u+" = true; else if (typeof "+n+" != 'boolean') "+u+" = false; else { "),a+=" var i = "+d+".length , "+u+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,m=Array.isArray(f);if(!f||"object"==f||"array"==f||m&&(f.indexOf("object")>=0||f.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+u+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(m?"s":"");a+=" if ("+e.util[g](f,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+u+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",h&&(a+=" } "),a+=" if (!"+u+") { ";var y=y||[];y.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var v=a;a=y.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { ")}else p&&(a+=" if (true) { ");return a}},9508:e=>{"use strict";e.exports=function(e,t,r){var n="",a=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",a&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,p=e.dataLevel,d=e.schema[t],u=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(p||""),g="valid"+c;if(!1===e.schema){e.isTop?f=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=a?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,p=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((p=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,f=!e.opts.allErrors;var x="",w="",$=e.schema.type,S=Array.isArray($);if($&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==$.indexOf("null")&&($=$.concat("null")):"null"!=$&&($=[$,"null"],S=!0)),S&&1==$.length&&($=$[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),$){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,$);var k=e.RULES.types[$];if(E||S||!0===k||k&&!J(k)){u=e.schemaPath+".type",h=e.errSchemaPath+"/type",u=e.schemaPath+".type",h=e.errSchemaPath+"/type";var A=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[A]($,m,e.opts.strictNumbers,!0)+") { ",E){var _="dataType"+c,O="coerced"+c;n+=" var "+_+" = typeof "+m+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+_+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+_+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+O+" = "+m+"; } "),n+=" if ("+O+" !== undefined) ; ";var P=E;if(P)for(var T,j=-1,R=P.length-1;j{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,a=r(4165),o=r(1128);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var i=0;i{"use strict";var n=r(4155),a=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,s,l=r(2136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,p=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,f=r(5961),m=r(9539).inspect,g=r(9539).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:r(8091).assign,x=Object.is?Object.is:r(609);new Map;function w(){var e=r(9158);i=e.isDeepEqual,s=e.isDeepStrictEqual}var $=!1,S=e.exports=_,E={};function k(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,r,n){if(!r){var a=!1;if(0===t)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=a,o}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a{"use strict";var n=r(4155);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;re.length)&&(r=e.length),e.substring(r-t.length,r)===t}var g="",y="",v="",b="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function $(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,r){var a="",o="",i=0,s="",l=!1,c=$(e),p=c.split("\n"),d=$(t).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===p.length&&1===d.length&&p[0]!==d[0]){var w=p[0].length+d[0].length;if(w<=10){if(!("object"===u(e)&&null!==e||"object"===u(t)&&null!==t||0===e&&0===t))return"".concat(x[r],"\n\n")+"".concat(p[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r){if(w<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;p[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var S=p[p.length-1],E=d[d.length-1];S===E&&(h++<2?s="\n ".concat(S).concat(s):a=S,p.pop(),d.pop(),0!==p.length&&0!==d.length);)S=p[p.length-1],E=d[d.length-1];var k=Math.max(p.length,d.length);if(0===k){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var _=0,O=x[r]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),P=" ".concat(g,"...").concat(b," Lines skipped");for(h=0;h1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(d[h-2]),_++),o+="\n ".concat(d[h-1]),_++),i=h,a+="\n".concat(v,"-").concat(b," ").concat(d[h]),_++;else if(d.length1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(p[h]),_++;else{var j=d[h],R=p[h],C=R!==j&&(!m(R,",")||R.slice(0,-1)!==j);C&&m(j,",")&&j.slice(0,-1)===R&&(C=!1,R+=","),C?(T>1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(R),a+="\n".concat(v,"-").concat(b," ").concat(j),_+=2):(o+=a,a="",1!==T&&0!==h||(o+="\n ".concat(R),_++))}if(_>20&&h30)for(E[26]="".concat(g,"...").concat(b);E.length>27;)E.pop();r=1===E.length?i(this,d(t).call(this,"".concat(m," ").concat(E[0]))):i(this,d(t).call(this,"".concat(m,"\n\n").concat(E.join("\n"),"\n")))}else{var k=$(c),A="",_=x[o];"notDeepEqual"===o||"notEqual"===o?(k="".concat(x[o],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(A="".concat($(p)),k.length>512&&(k="".concat(k.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?k="".concat(_,"\n\n").concat(k,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),r=i(this,d(t).call(this,"".concat(k).concat(A)))}return Error.stackTraceLimit=h,r.generatedMessage=!a,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=p,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),l),r.stack,r.name="AssertionError",i(r)}var r,l,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s,l,c={};function p(e,t,r){r||(r=Error);var n=function(r){function n(r,i,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),l=a(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,i,s))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,r),n}(r);c[e]=n}function d(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,a){var o,i,l,c;if(void 0===s&&(s=r(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(!l||l<0?0:+l,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var p=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(p," ").concat(o," ").concat(d(t,"type"))}return c+=". Received type ".concat(n(a))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r(9539));var a=l.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(a)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var a="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,o-1).join(", "),a+=", and ".concat(t[o-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o=void 0!==/a/g.flags,i=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(360);function d(e){return e.call.bind(e)}var u=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=r(9539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,x=m.isRegExp,w=m.isSet,$=m.isNativeError,S=m.isBoxedPrimitive,E=m.isNumberObject,k=m.isStringObject,A=m.isBooleanObject,_=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,T=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(j).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function C(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a{"use strict";const n=window,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),i=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(a&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&i.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new s(r,e,o)},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return l(t)})(e):e;var d;const u=window,h=u.trustedTypes,f=h?h.emptyScript:"",m=u.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>t!==e&&(t==t||e==e),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y};class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=v){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{a?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),a=n.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=v){var n;const a=this.constructor._$Ep(e,r);if(void 0!==a&&!0===r.reflect){const o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:g).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,a=n._$Ev.get(e);if(void 0!==a&&this._$El!==a){const e=n.getPropertyOptions(a),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:g;this._$El=a,this[a]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||y)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:b}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const w=window,$=w.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,A="?"+k,_=`<${A}>`,O=document,P=()=>O.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,R=e=>j(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),C="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,M=/>/g,L=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,F=/"/g,U=/^(?:script|style|textarea|title)$/i,q=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),B=q(1),H=(q(2),Symbol.for("lit-noChange")),z=Symbol.for("lit-nothing"),W=new WeakMap,V=O.createTreeWalker(O,129,null,!1),Z=(e,t)=>{const r=e.length-1,n=[];let a,o=2===t?"":"",i=I;for(let t=0;t"===l[0]?(i=null!=a?a:I,c=-1):void 0===l[1]?c=-2:(c=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?L:'"'===l[3]?F:N):i===F||i===N?i=L:i===D||i===M?i=I:(i=L,a=void 0);const d=i===L&&e[t+1].startsWith("/>")?" ":"";o+=i===I?r+_:c>=0?(n.push(s),r.slice(0,c)+E+r.slice(c)+k+d):r+k+(-2===c?(n.push(void 0),t):d)}const s=o+(e[r]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(s):s,n]};class G{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let a=0,o=0;const i=e.length-1,s=this.parts,[l,c]=Z(e,t);if(this.el=G.createElement(l,r),V.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=V.nextNode())&&s.length0){n.textContent=$?$.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const a=this.strings;let o=!1;if(void 0===a)e=K(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let i,s;for(e=a[0],i=0;i{var n,a;const o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let i=o._$litPart$;if(void 0===i){const e=null!==(a=null==r?void 0:r.renderBefore)&&void 0!==a?a:null;o._$litPart$=i=new J(t.insertBefore(P(),e),e,void 0,null!=r?r:{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return H}}se.finalized=!0,se._$litElement$=!0,null===(oe=globalThis.litElementHydrateSupport)||void 0===oe||oe.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se});(null!==(ie=globalThis.litElementVersions)&&void 0!==ie?ie:globalThis.litElementVersions=[]).push("3.3.2");var ce=r(5108);function pe(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let de={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const ue=/[&<>"']/,he=new RegExp(ue.source,"g"),fe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,me=new RegExp(fe.source,"g"),ge={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=e=>ge[e];function ve(e,t){if(t){if(ue.test(e))return e.replace(he,ye)}else if(fe.test(e))return e.replace(me,ye);return e}const be=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xe(e){return e.replace(be,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const we=/(^|[^\[])\^/g;function $e(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(we,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const Se=/[^\w:]/g,Ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ke(e,t,r){if(e){let e;try{e=decodeURIComponent(xe(r)).replace(Se,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ee.test(r)&&(r=function(e,t){Ae[" "+e]||(_e.test(e)?Ae[" "+e]=e+"/":Ae[" "+e]=Re(e,"/",!0));e=Ae[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(Oe,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(Pe,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ae={},_e=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,Pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Te={exec:function(){}};function je(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Ie(e,t,r,n){const a=t.href,o=t.title?ve(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:a,title:o,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:a,title:o,text:ve(i)}}class De{constructor(e){this.options=e||de}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Re(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Re(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,a,o,i,s,l,c,p,d,u,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const y=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(o=2,u=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,u=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(d=e.split("\n",1)[0],p=d,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!a.test(p))&&!i.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=o||!p.trim())u+="\n"+p.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(a.test(c))break;if(i.test(c))break;if(n.test(c))break;u+="\n"+p}s||p.trim()||(s=!0),r+=d+"\n",e=e.substring(d.length+1),c=p.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u),n&&(a="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:u}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=u.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(i=0;i"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:je(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,a,o,i=e.align.length;for(r=0;r({text:e})));for(i=e.header.length,n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ve(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Re(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,a=0;for(;a-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(e)?r.slice(1):r.slice(1,-1)),Ie(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Ie(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let a,o,i=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(o=a.length,n[3]||n[4]){i+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){s+=o;continue}if(i-=o,i>0)continue;o=Math.min(o,o+i+s);const t=e.slice(0,r+n.index+(n[0].length-a.length)+o);if(Math.min(r,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=ve(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=ve(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=ve(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=ve(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=ve(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ve(r[0]):r[0]:ve(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Me={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Te,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Me.def=$e(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.listItemStart=$e(/^( *)(bull) */).replace("bull",Me.bullet).getRegex(),Me.list=$e(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Me._comment=/|$)/,Me.html=$e(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.paragraph=$e(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.blockquote=$e(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal={...Me},Me.gfm={...Me.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Me.gfm.table=$e(Me.gfm.table).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.gfm.paragraph=$e(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Me.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.pedantic={...Me.normal,html:$e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Me.normal._paragraph).replace("hr",Me.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}Le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Le.punctuation=$e(Le.punctuation).replace(/punctuation/g,Le._punctuation).getRegex(),Le.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Le.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Le._comment=$e(Me._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Le.emStrong.lDelim=$e(Le.emStrong.lDelim).replace(/punct/g,Le._punctuation).getRegex(),Le.emStrong.rDelimAst=$e(Le.emStrong.rDelimAst,"g").replace(/punct/g,Le._punctuation).getRegex(),Le.emStrong.rDelimUnd=$e(Le.emStrong.rDelimUnd,"g").replace(/punct/g,Le._punctuation).getRegex(),Le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Le.autolink=$e(Le.autolink).replace("scheme",Le._scheme).replace("email",Le._email).getRegex(),Le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Le.tag=$e(Le.tag).replace("comment",Le._comment).replace("attribute",Le._attribute).getRegex(),Le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Le._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Le.link=$e(Le.link).replace("label",Le._label).replace("href",Le._href).replace("title",Le._title).getRegex(),Le.reflink=$e(Le.reflink).replace("label",Le._label).replace("ref",Me._label).getRegex(),Le.nolink=$e(Le.nolink).replace("ref",Me._label).getRegex(),Le.reflinkSearch=$e(Le.reflinkSearch,"g").replace("reflink",Le.reflink).replace("nolink",Le.nolink).getRegex(),Le.normal={...Le},Le.pedantic={...Le.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",Le._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Le._label).getRegex()},Le.gfm={...Le.normal,escape:$e(Le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,a,o,i,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Fe))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Fe))){if(a=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a,Ne))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class qe{constructor(e){this.options=e||de}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'
    '+(r?e:ve(e,!0))+"
    \n":"
    "+(r?e:ve(e,!0))+"
    \n"}blockquote(e){return`
    \n${e}
    \n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`${e}\n`}return`${e}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n='",n}image(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`${r}":">",n}text(e){return e}}class Be{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class He{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class ze{constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Be,this.slugger=new He}static parse(e,t){return new ze(t).parse(e)}static parseInline(e,t){return new ze(t).parseInline(e)}parse(e,t=!0){let r,n,a,o,i,s,l,c,p,d,u,h,f,m,g,y,v,b,x,w="";const $=e.length;for(r=0;r<$;r++)if(d=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(x=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))w+=x||"";else switch(d.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(d.tokens),d.depth,xe(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),p+=this.renderer.listitem(m,v,y);w+=this.renderer.list(p,u,h);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(p=d.tokens?this.parseInline(d.tokens):d.text;r+1<$&&"text"===e[r+1].type;)d=e[++r],p+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void ce.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,a,o="";const i=e.length;for(r=0;r{"function"==typeof n&&(a=n,n=null);const o={...n},i=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+ve(n.message+"",!0)+"
    ";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ze.defaults,...o}).silent,n.async,a);if(null==r)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&ce.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),a){const o=n.highlight;let s;try{n.hooks&&(r=n.hooks.preprocess(r)),s=e(r,n)}catch(e){return i(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ze.walkTokens(s,n.walkTokens),r=t(s,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=o,e?i(e):a(null,r)};if(!o||o.length<3)return l();if(delete n.highlight,!s.length)return l();let c=0;return Ze.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ze.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(i);try{n.hooks&&(r=n.hooks.preprocess(r));const a=e(r,n);n.walkTokens&&Ze.walkTokens(a,n.walkTokens);let o=t(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return i(e)}}}function Ze(e,t,r){return Ve(Ue.lex,ze.parse)(e,t,r)}Ze.options=Ze.setOptions=function(e){var t;return Ze.defaults={...Ze.defaults,...e},t=Ze.defaults,de=t,Ze},Ze.getDefaults=pe,Ze.defaults=de,Ze.use=function(...e){const t=Ze.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Ze.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Ze.defaults.renderer||new qe;for(const r in e.renderer){const n=t[r];t[r]=(...a)=>{let o=e.renderer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.renderer=t}if(e.tokenizer){const t=Ze.defaults.tokenizer||new De;for(const r in e.tokenizer){const n=t[r];t[r]=(...a)=>{let o=e.tokenizer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.tokenizer=t}if(e.hooks){const t=Ze.defaults.hooks||new We;for(const r in e.hooks){const n=t[r];We.passThroughHooks.has(r)?t[r]=a=>{if(Ze.defaults.async)return Promise.resolve(e.hooks[r].call(t,a)).then((e=>n.call(t,e)));const o=e.hooks[r].call(t,a);return n.call(t,o)}:t[r]=(...a)=>{let o=e.hooks[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.hooks=t}if(e.walkTokens){const t=Ze.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ze.setOptions(r)}))},Ze.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ze,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ze.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ze.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ze.walkTokens(n.items,t));break;default:Ze.defaults.extensions&&Ze.defaults.extensions.childTokens&&Ze.defaults.extensions.childTokens[n.type]?Ze.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Ze.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Ze.walkTokens(n.tokens,t)))}return r},Ze.parseInline=Ve(Ue.lexInline,ze.parseInline),Ze.Parser=ze,Ze.parser=ze.parse,Ze.Renderer=qe,Ze.TextRenderer=Be,Ze.Lexer=Ue,Ze.lexer=Ue.lex,Ze.Tokenizer=De,Ze.Slugger=He,Ze.Hooks=We,Ze.parse=Ze;Ze.options,Ze.setOptions,Ze.use,Ze.walkTokens,Ze.parseInline,ze.parse,Ue.lex;var Ge=r(8325),Ke=r.n(Ge);r(7874),r(5433),r(4335),r(9980),r(9385),r(6854),r(9945),r(366),r(4277),r(5712),r(5251),r(3358),r(7046),r(2503),r(57),r(9016);const Ye=c` +(()=>{var e,t,r={6043:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(9185);function i(e,t,r,o,l,c,p,d){let u=null===t?e:e[t];if(u&&"object"==typeof u&&!ArrayBuffer.isView(u))if(n.isAllowed$Ref(u))s(e,t,r,o,l,c,p,d);else{let e=Object.keys(u).sort(((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length));for(let t of e){let e=a.join(r,t),h=a.join(o,t),f=u[t];n.isAllowed$Ref(f)?s(u,t,r,h,l,c,p,d):i(u,t,e,h,l,c,p,d)}}}function s(e,t,r,s,l,c,p,d){let u=null===t?e:e[t],h=o.resolve(r,u.$ref),f=p._resolve(h,s,d);if(null===f)return;let m=a.parse(s).length,g=o.stripHash(f.path),y=o.getHash(f.path),v=g!==p._root$Ref.path,b=n.isExtended$Ref(u);l+=f.indirections;let x=function(e,t,r){for(let n=0;n{if(e.file!==t.file)return e.file{"use strict";const n=r(1969),a=r(9566),{ono:o}=r(8862),i=r(9185);function s(e,t,r,o,i,p,d,u){let h,f={value:e,circular:!1},m=u.dereference.excludedPathMatcher;if(("ignore"===u.dereference.circular||!i.has(e))&&e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!m(r)){if(o.add(e),i.add(e),n.isAllowed$Ref(e,u))h=l(e,t,r,o,i,p,d,u),f.circular=h.circular,f.value=h.value;else for(const g of Object.keys(e)){let y=a.join(t,g),v=a.join(r,g);if(m(v))continue;let b=e[g],x=!1;n.isAllowed$Ref(b,u)?(h=l(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)):o.has(b)?x=c(y,d,u):(h=s(b,y,v,o,i,p,d,u),x=h.circular,e[g]!==h.value&&(e[g]=h.value)),f.circular=f.circular||x}o.delete(e)}return f}function l(e,t,r,a,o,l,p,d){let u=i.resolve(t,e.$ref);const h=l.get(u);if(h){const t=Object.keys(e);if(t.length>1){const r={};for(let n of t)"$ref"===n||n in h.value||(r[n]=e[n]);return{circular:h.circular,value:Object.assign({},h.value,r)}}return h}let f=p._resolve(u,t,d);if(null===f)return{circular:!1,value:null};let m=f.circular,g=m||a.has(f.value);g&&c(t,p,d);let y=n.dereference(e,f.value);if(!g){let e=s(y,f.path,r,a,o,l,p,d);g=e.circular,y=e.value}g&&!m&&"ignore"===d.dereference.circular&&(y=e),m&&(y.$ref=r);const v={circular:g,value:y};return 1===Object.keys(e).length&&l.set(u,v),v}function c(e,t,r){if(t.circular=!0,!r.dereference.circular)throw o.reference(`Circular $ref pointer found at ${e}`);return!0}e.exports=function(e,t){let r=s(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}},321:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(1922),o=r(4185),i=r(5410),s=r(6885),l=r(6043),c=r(3416),p=r(9185),{JSONParserError:d,InvalidPointerError:u,MissingPointerError:h,ResolverError:f,ParserError:m,UnmatchedParserError:g,UnmatchedResolverError:y,isHandledError:v,JSONParserErrorGroup:b}=r(4002),x=r(472),{ono:w}=r(8862);function $(){this.schema=null,this.$refs=new a}function S(e){if(b.getParserErrors(e).length>0)throw new b(e)}e.exports=$,e.exports.default=$,e.exports.JSONParserError=d,e.exports.InvalidPointerError=u,e.exports.MissingPointerError=h,e.exports.ResolverError=f,e.exports.ParserError=m,e.exports.UnmatchedParserError=g,e.exports.UnmatchedResolverError=y,$.parse=function(e,t,r,n){let a=new this;return a.parse.apply(a,arguments)},$.prototype.parse=async function(e,t,r,s){let l,c=i(arguments);if(!c.path&&!c.schema){let e=w(`Expected a file path, URL, or object. Got ${c.path||c.schema}`);return x(c.callback,Promise.reject(e))}this.schema=null,this.$refs=new a;let d="http";if(p.isFileSystemPath(c.path)&&(c.path=p.fromFileSystemPath(c.path),d="file"),c.path=p.resolve(p.cwd(),c.path),c.schema&&"object"==typeof c.schema){let e=this.$refs._add(c.path);e.value=c.schema,e.pathType=d,l=Promise.resolve(c.schema)}else l=o(c.path,this.$refs,c.options);let u=this;try{let e=await l;if(null===e||"object"!=typeof e||n.isBuffer(e)){if(c.options.continueOnError)return u.schema=null,x(c.callback,Promise.resolve(u.schema));throw w.syntax(`"${u.$refs._root$Ref.path||e}" is not a valid JSON Schema`)}return u.schema=e,x(c.callback,Promise.resolve(u.schema))}catch(e){return c.options.continueOnError&&v(e)?(this.$refs._$refs[p.stripHash(c.path)]&&this.$refs._$refs[p.stripHash(c.path)].addError(e),x(c.callback,Promise.resolve(null))):x(c.callback,Promise.reject(e))}},$.resolve=function(e,t,r,n){let a=new this;return a.resolve.apply(a,arguments)},$.prototype.resolve=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.parse(o.path,o.schema,o.options),await s(a,o.options),S(a),x(o.callback,Promise.resolve(a.$refs))}catch(e){return x(o.callback,Promise.reject(e))}},$.bundle=function(e,t,r,n){let a=new this;return a.bundle.apply(a,arguments)},$.prototype.bundle=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),l(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}},$.dereference=function(e,t,r,n){let a=new this;return a.dereference.apply(a,arguments)},$.prototype.dereference=async function(e,t,r,n){let a=this,o=i(arguments);try{return await this.resolve(o.path,o.schema,o.options),c(a,o.options),S(a),x(o.callback,Promise.resolve(a.schema))}catch(e){return x(o.callback,Promise.reject(e))}}},5410:(e,t,r)=>{"use strict";const n=r(9021);e.exports=function(e){let t,r,a,o;"function"==typeof(e=Array.prototype.slice.call(e))[e.length-1]&&(o=e.pop());"string"==typeof e[0]?(t=e[0],"object"==typeof e[2]?(r=e[1],a=e[2]):(r=void 0,a=e[1])):(t="",r=e[0],a=e[1]);a instanceof n||(a=new n(a));return{path:t,schema:r,options:a,callback:o}}},9021:(e,t,r)=>{"use strict";const n=r(386),a=r(8391),o=r(4843),i=r(9660),s=r(7743),l=r(5642);function c(e){p(this,c.defaults),p(this,e)}function p(e,t){if(d(t)){let r=Object.keys(t);for(let n=0;n!1}}},4185:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ono:a}=r(8862),o=r(9185),i=r(9961),{ResolverError:s,ParserError:l,UnmatchedParserError:c,UnmatchedResolverError:p,isHandledError:d}=r(4002);e.exports=async function(e,t,r){e=o.stripHash(e);let u=t._add(e),h={url:e,extension:o.getExtension(e)};try{const e=await function(e,t,r){return new Promise(((n,o)=>{let l=i.all(t.resolve);function c(r){!r&&t.continueOnError?o(new p(e.url)):r&&"error"in r?r.error instanceof s?o(r.error):o(new s(r,e.url)):o(a.syntax(`Unable to resolve $ref pointer "${e.url}"`))}l=i.filter(l,"canRead",e),i.sort(l),i.run(l,"read",e,r).then(n,c)}))}(h,r,t);u.pathType=e.plugin.name,h.data=e.result;const o=await function(e,t,r){return new Promise(((o,s)=>{let p=i.all(t.parse),d=i.filter(p,"canParse",e),u=d.length>0?d:p;function h(t){var r;!t.plugin.allowEmpty&&(void 0===(r=t.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||n.isBuffer(r)&&0===r.length)?s(a.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`)):o(t)}function f(r){!r&&t.continueOnError?s(new c(e.url)):r&&"error"in r?r.error instanceof l?s(r.error):s(new l(r.error.message,e.url)):s(a.syntax(`Unable to parse ${e.url}`))}i.sort(u),i.run(u,"parse",e,r).then(h,f)}))}(h,r,t);return u.value=o.result,o.result}catch(e){throw d(e)&&(u.value=e),e}}},9660:(e,t,r)=>{"use strict";var n=r(8764).Buffer;let a=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;e.exports={order:400,allowEmpty:!0,canParse:e=>n.isBuffer(e.data)&&a.test(e.url),parse:e=>n.isBuffer(e.data)?e.data:n.from(e.data)}},386:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);e.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;if(0!==t.trim().length)try{return JSON.parse(t)}catch(t){throw new a(t.message,e.url)}}}},4843:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002);let o=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;e.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||n.isBuffer(e.data))&&o.test(e.url),parse(e){if("string"==typeof e.data)return e.data;if(n.isBuffer(e.data))return e.data.toString(this.encoding);throw new a("data is not text",e.url)}}},8391:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const{ParserError:a}=r(4002),o=r(3320),{JSON_SCHEMA:i}=r(3320);e.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;try{return o.load(t,{schema:i})}catch(t){throw new a(t.message,e.url)}}}},9566:(e,t,r)=>{"use strict";e.exports=h;const n=r(1969),a=r(9185),{JSONParserError:o,InvalidPointerError:i,MissingPointerError:s,isHandledError:l}=r(4002),c=/\//g,p=/~/g,d=/~1/g,u=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function f(e,t){if(n.isAllowed$Ref(e.value,t)){let r=a.resolve(e.path,e.value.$ref);if(r!==e.path){let a=e.$ref.$refs._resolve(r,e.path,t);return null!==a&&(e.indirections+=a.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,a.value),!1):(e.$ref=a.$ref,e.path=a.path,e.value=a.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new o(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function g(e){if(l(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=g(e);for(let e=0;e{"use strict";e.exports=p;const n=r(9566),{InvalidPointerError:a,isHandledError:o,normalizeError:i}=r(4002),{safePointerToPath:s,stripHash:l,getHash:c}=r(9185);function p(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}p.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map((({footprint:e})=>e));Array.isArray(e.errors)?this.errors.push(...e.errors.map(i).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(i(e))},p.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},p.prototype.get=function(e,t){return this.resolve(e,t).value},p.prototype.resolve=function(e,t,r,i){let p=new n(this,e,r);try{return p.resolve(this.value,t,i)}catch(e){if(!t||!t.continueOnError||!o(e))throw e;return null===e.path&&(e.path=s(c(i))),e instanceof a&&(e.source=decodeURI(l(i))),this.addError(e),null}},p.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},p.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},p.isExternal$Ref=function(e){return p.is$Ref(e)&&"#"!==e.$ref[0]},p.isAllowed$Ref=function(e,t){if(p.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},p.isExtended$Ref=function(e){return p.is$Ref(e)&&Object.keys(e).length>1},p.dereference=function(e,t){if(t&&"object"==typeof t&&p.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},1922:(e,t,r)=>{"use strict";const{ono:n}=r(8862),a=r(1969),o=r(9185);function i(){this.circular=!1,this._$refs={},this._root$Ref=null}function s(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((r=>-1!==t.indexOf(e[r].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?o.toFileSystemPath(t,!0):t})))}e.exports=i,i.prototype.paths=function(e){return s(this._$refs,arguments).map((e=>e.decoded))},i.prototype.values=function(e){let t=this._$refs;return s(t,arguments).reduce(((e,r)=>(e[r.decoded]=t[r.encoded].value,e)),{})},i.prototype.toJSON=i.prototype.values,i.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},i.prototype.get=function(e,t){return this._resolve(e,"",t).value},i.prototype.set=function(e,t){let r=o.resolve(this._root$Ref.path,e),a=o.stripHash(r),i=this._$refs[a];if(!i)throw n(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);i.set(r,t)},i.prototype._add=function(e){let t=o.stripHash(e),r=new a;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r},i.prototype._resolve=function(e,t,r){let a=o.resolve(this._root$Ref.path,e),i=o.stripHash(a),s=this._$refs[i];if(!s)throw n(`Error resolving $ref pointer "${e}". \n"${i}" not found.`);return s.resolve(a,r,e,t)},i.prototype._get$Ref=function(e){e=o.resolve(this._root$Ref.path,e);let t=o.stripHash(e);return this._$refs[t]}},6885:(e,t,r)=>{"use strict";const n=r(1969),a=r(9566),o=r(4185),i=r(9185),{isHandledError:s}=r(4002);function l(e,t,r,o,i){i=i||new Set;let s=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!i.has(e))if(i.add(e),n.isExternal$Ref(e))s.push(c(e,t,r,o));else for(let p of Object.keys(e)){let d=a.join(t,p),u=e[p];n.isExternal$Ref(u)?s.push(c(u,d,r,o)):s=s.concat(l(u,d,r,o,i))}return s}async function c(e,t,r,n){let a=i.resolve(t,e.$ref),c=i.stripHash(a);if(e=r._$refs[c])return Promise.resolve(e.value);try{let e=l(await o(a,r,n),c+"#",r,n);return Promise.all(e)}catch(e){if(!n.continueOnError||!s(e))throw e;return r._$refs[c]&&(e.source=decodeURI(i.stripHash(t)),e.path=i.safePointerToPath(i.getHash(t))),[]}}e.exports=function(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=l(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(e){return Promise.reject(e)}}},7743:(e,t,r)=>{"use strict";const n=r(3471),{ono:a}=r(8862),o=r(9185),{ResolverError:i}=r(4002);e.exports={order:100,canRead:e=>o.isFileSystemPath(e.url),read:e=>new Promise(((t,r)=>{let s;try{s=o.toFileSystemPath(e.url)}catch(t){r(new i(a.uri(t,`Malformed URI: ${e.url}`),e.url))}try{n.readFile(s,((e,n)=>{e?r(new i(a(e,`Error opening file "${s}"`),s)):t(n)}))}catch(e){r(new i(a(e,`Error opening file "${s}"`),s))}}))}},5642:(e,t,r)=>{"use strict";var n=r(4155),a=r(8764).Buffer;const o=r(8501),i=r(9267),{ono:s}=r(8862),l=r(9185),{ResolverError:c}=r(4002);function p(e,t,r){return new Promise(((n,d)=>{e=l.parse(e),(r=r||[]).push(e.href),function(e,t){return new Promise(((r,n)=>{let s=("https:"===e.protocol?i:o).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",n),s.once("response",(e=>{e.body=a.alloc(0),e.on("data",(t=>{e.body=a.concat([e.body,a.from(t)])})),e.on("error",n),e.on("end",(()=>{r(e)}))}))}))}(e,t).then((o=>{if(o.statusCode>=400)throw s({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)d(new c(s({status:o.statusCode},`Error downloading ${r[0]}. \nToo many redirects: \n ${r.join(" \n ")}`)));else{if(!o.headers.location)throw s({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);p(l.resolve(e,o.headers.location),t,r).then(n,d)}else n(o.body||a.alloc(0))})).catch((t=>{d(new c(s(t,`Error downloading ${e.href}`),e.href))}))}))}e.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>l.isHttp(e.url),read(e){let t=l.parse(e.url);return n.browser&&!t.protocol&&(t.protocol=l.parse(location.href).protocol),p(t,this)}}},4002:(e,t,r)=>{"use strict";const{Ono:n}=r(8862),{stripHash:a,toFileSystemPath:o}=r(9185),i=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};l(i);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${o(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};l(s);l(t.ParserError=class extends i{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});l(t.UnmatchedParserError=class extends i{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});l(t.ResolverError=class extends i{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});l(t.UnmatchedResolverError=class extends i{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});l(t.MissingPointerError=class extends i{constructor(e,t){super(`Token "${e}" does not exist.`,a(t)),this.code="EMISSINGPOINTER"}});function l(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}l(t.InvalidPointerError=class extends i{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,a(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof i||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},9961:(e,t)=>{"use strict";function r(e,t,r,n,a){let o=e[t];if("function"==typeof o)return o.apply(e,[r,n,a]);if(!n){if(o instanceof RegExp)return o.test(r.url);if("string"==typeof o)return o===r.extension;if(Array.isArray(o))return-1!==o.indexOf(r.extension)}return o}t.all=function(e){return Object.keys(e).filter((t=>"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},t.filter=function(e,t,n){return e.filter((e=>!!r(e,t,n)))},t.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},t.run=function(e,t,n,a){let o,i,s=0;return new Promise(((l,c)=>{function p(){if(o=e[s++],!o)return c(i);try{let i=r(o,t,n,d,a);if(i&&"function"==typeof i.then)i.then(u,h);else if(void 0!==i)u(i);else if(s===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){h(e)}}function d(e,t){e?h(e):u(t)}function u(e){l({plugin:o,result:e})}function h(e){i={plugin:o,error:e},p()}p()}))}},9185:(e,t,r)=>{"use strict";var n=r(4155);let a=/^win/.test(n.platform),o=/\//g,i=/^(\w{2,}):\/\//i,s=e.exports,l=/~1/g,c=/~0/g,p=[/\?/g,"%3F",/\#/g,"%23"],d=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(8575).parse,t.resolve=r(8575).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){a&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(l,"/").replace(c,"~")))}},7929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openapi=t.openapiV31=t.openapiV3=t.openapiV2=t.openapiV1=void 0,t.openapiV1=r(8479),t.openapiV2=r(499),t.openapiV3=r(3659),t.openapiV31=r(1201),t.openapi={v1:t.openapiV1,v2:t.openapiV2,v3:t.openapiV3,v31:t.openapiV31},t.default=t.openapi,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},9181:e=>{"use strict";e.exports=["get","put","post","delete","options","head","patch"]},7325:(e,t,r)=>{"use strict";const n=r(4162),a=r(2103),o=r(5410),i=r(7323),s=r(7757),l=r(472),{ono:c}=r(8862),p=r(321),d=r(3416);function u(){p.apply(this,arguments)}e.exports=u,i.inherits(u,p),u.parse=p.parse,u.resolve=p.resolve,u.bundle=p.bundle,u.dereference=p.dereference,Object.defineProperty(u.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}}),u.prototype.parse=async function(e,t,r,n){let a=o(arguments);a.options=new s(a.options);try{let e=await p.prototype.parse.call(this,a.path,a.schema,a.options);if(e.swagger){if(void 0===e.swagger||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Swagger API definition`);if("number"==typeof e.swagger)throw c.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if("2.0"!==e.swagger)throw c.syntax(`Unrecognized Swagger version: ${e.swagger}. Expected 2.0`)}else{let t=["3.0.0","3.0.1","3.0.2","3.0.3"];if(void 0===e.openapi||void 0===e.info||void 0===e.paths)throw c.syntax(`${a.path||a.schema} is not a valid Openapi API definition`);if("number"==typeof e.openapi)throw c.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if("number"==typeof e.info.version)throw c.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===t.indexOf(e.openapi))throw c.syntax(`Unsupported OpenAPI version: ${e.openapi}. Swagger Parser only supports versions ${t.join(", ")}`)}return l(a.callback,Promise.resolve(e))}catch(e){return l(a.callback,Promise.reject(e))}},u.validate=function(e,t,r,n){let a=new this;return a.validate.apply(a,arguments)},u.prototype.validate=async function(e,t,r,i){let p=this,u=o(arguments);u.options=new s(u.options);let h=u.options.dereference.circular;u.options.validate.schema&&(u.options.dereference.circular="ignore");try{if(await this.dereference(u.path,u.schema,u.options),u.options.dereference.circular=h,u.options.validate.schema&&(n(p.api),p.$refs.circular))if(!0===h)d(p,u.options);else if(!1===h)throw c.reference("The API contains circular references");return u.options.validate.spec&&a(p.api),l(u.callback,Promise.resolve(p.schema))}catch(e){return l(u.callback,Promise.reject(e))}}},7757:(e,t,r)=>{"use strict";const n=r(9021),a=r(4162),o=r(2103),i=r(9539);function s(e){n.call(this,s.defaults),n.apply(this,arguments)}e.exports=s,s.defaults={validate:{schema:a,spec:o}},i.inherits(s,n)},7323:(e,t,r)=>{"use strict";const n=r(9539);t.format=n.format,t.inherits=n.inherits,t.swaggerParamRegExp=/\{([^/}]+)}/g},4162:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(5077),{openapi:i}=r(7929);e.exports=function(e){let t=e.swagger?i.v2:i.v3;if(!s.validate(e,t)){let e=s.getLastError(),t="Swagger schema validation failed. \n"+l(e.details);throw a.syntax(e,{details:e.details},t)}};let s=(delete i.v2.id,delete i.v3.id,o.registerFormat("uri-reference",(e=>e.trim().length>0)),new o({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0}));function l(e,t){t=t||" ";let r="";for(let a of e)r+=n.format(`${t}${a.message} at #/${a.path.join("/")}\n`),a.inner&&(r+=l(a.inner,t+" "));return r}},2103:(e,t,r)=>{"use strict";const n=r(7323),{ono:a}=r(8862),o=r(9181),i=["array","boolean","integer","number","string"],s=["array","boolean","integer","number","string","object","null",void 0];function l(e,t,r,n){for(let i of o){let o=t[i],s=r+"/"+i;if(o){let i=o.operationId;if(i){if(-1!==n.indexOf(i))throw a.syntax(`Validation failed. Duplicate operation id '${i}'`);n.push(i)}c(e,t,r,o,s);let l=Object.keys(o.responses||{});for(let e of l){d(e,o.responses[e]||{},s+"/responses/"+e)}}}}function c(e,t,r,o,l){let c=t.parameters||[],d=o.parameters||[];try{p(c)}catch(e){throw a.syntax(e,`Validation failed. ${r} has duplicate parameters`)}try{p(d)}catch(e){throw a.syntax(e,`Validation failed. ${l} has duplicate parameters`)}let f=c.reduce(((e,t)=>(e.some((e=>e.in===t.in&&e.name===t.name))||e.push(t),e)),d.slice());!function(e,t){let r=e.filter((e=>"body"===e.in)),n=e.filter((e=>"formData"===e.in));if(r.length>1)throw a.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw a.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}(f,l),function(e,t,r){let o=t.match(n.swaggerParamRegExp)||[];for(let e=0;e"path"===e.in));for(let t of e){if(!0!==t.required)throw a.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${t.name}" parameter at ${r}`);let e=o.indexOf("{"+t.name+"}");if(-1===e)throw a.syntax(`Validation failed. ${r} has a path parameter named "${t.name}", but there is no corresponding {${t.name}} in the path string`);o.splice(e,1)}if(o.length>0)throw a.syntax(`Validation failed. ${r} is missing path parameter(s) for ${o}`)}(f,r,l),function(e,t,r,n){for(let o of e){let e,l,c=n+"/parameters/"+o.name;switch(o.in){case"body":e=o.schema,l=s;break;case"formData":e=o,l=i.concat("file");break;default:e=o,l=i}if(u(e,c,l),h(e,c),"file"===e.type){let e=/multipart\/(.*\+)?form-data/,o=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some((t=>e.test(t)||o.test(t))))throw a.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}(f,e,o,l)}function p(e){for(let t=0;t599))throw a.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let e of n){u(t.headers[e],r+"/headers/"+e,i)}if(t.schema){let e=s.concat("file");if(-1===e.indexOf(t.schema.type))throw a.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);u(t.schema,r+"/schema",e)}}function u(e,t,r){if(-1===r.indexOf(e.type))throw a.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if("array"===e.type&&!e.items)throw a.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}function h(e,t){if(e.required&&Array.isArray(e.required)){let r={};!function e(t,r){if(t.properties)for(let e in t.properties)t.properties.hasOwnProperty(e)&&(r[e]=t.properties[e]);if(t.allOf)for(let n of t.allOf)e(n,r)}(e,r);for(let n of e.required)if(!r[n])throw a.syntax(`Validation failed. Property '${n}' listed as required but does not exist in '${t}'`)}}e.exports=function(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let n of t){let t=e.paths[n],a="/paths"+n;t&&0===n.indexOf("/")&&l(e,t,a,r)}let n=Object.keys(e.definitions||{});for(let t of n){h(e.definitions[t],"/definitions/"+t)}}},8862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>y,default:()=>$,ono:()=>b});const n=!1,a=!1,o=/\r?\n/,i=/\bono[ @]/;function s(e,t){let r=c(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function l(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>s({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>c(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function c(e){if(e){let t,r=e.split(o);for(let e=0;e0)return r.join("\n")}return e}const p=["function","symbol","undefined"],d=["constructor","prototype","__proto__"],u=Object.getPrototypeOf({});function h(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],a=typeof n;p.includes(a)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==u;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(d))n.delete(e);return n}const m=["name","message","stack"];function g(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=s(e,t)):l(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,m),n=e,a=t;for(let e of r)if(void 0===n[e])try{n[e]=a[e]}catch(e){}}(n,t),n.toJSON=h,a&&a(n),r&&"object"==typeof r&&Object.assign(n,r),n}const y=v;function v(e,t){function r(...r){let{originalError:n,props:a,message:o}=function(e,t){let r,n,a,o="";return"string"==typeof e[0]?a=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],a=e.slice(1)):(r=e[0],n=e[1],a=e.slice(2)),a.length>0&&(o=t.format?t.format.apply(void 0,a):a.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?" \n":"")+r.message),{originalError:r,props:n,message:o}}(r,t);return g(new e(o),n,a)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?n:"function"==typeof e.format&&e.format}}(t),r[Symbol.species]=e,r}v.toJSON=function(e){return h.call(e)},v.extend=function(e,t,r){return r||t instanceof Error?g(e,t,r):t?g(e,void 0,t):g(e)};const b=w;w.error=new y(Error),w.eval=new y(EvalError),w.range=new y(RangeError),w.reference=new y(ReferenceError),w.syntax=new y(SyntaxError),w.type=new y(TypeError),w.uri=new y(URIError);const x=w;function w(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(x))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return w.error.apply(void 0,e)}r(9539);e=r.hmd(e);const $=b;"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},5096:(e,t,r)=>{"use strict";var n=r(5108),a=r(7153),o=r(3610),i=r(7531),s=r(4022),l=r(5035),c=r(1516),p=r(7753),d=r(3978),u=r(2889);e.exports=v,v.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var a=r(t);!0!==r.$async&&(this.errors=r.errors);return a},v.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},v.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var a=0;a{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},2931:(e,t,r)=>{"use strict";var n=r(7802).MissingRef;e.exports=function e(t,r,a){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(a=r,r=void 0);var i=s(t).then((function(){var e=o._addSchema(t,void 0,r);return e.validate||l(e)}));a&&i.then((function(e){a(null,e)}),a);return i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function l(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=o._loadingSchemas[n];a||(a=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(i,i);return a.then((function(e){if(!c(n))return s(e).then((function(){c(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function i(){delete o._loadingSchemas[n]}function c(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},7802:(e,t,r)=>{"use strict";var n=r(3610);function a(e,t,r){this.message=r||a.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(a)},a.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},1516:(e,t,r)=>{"use strict";var n=r(2889),a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,p=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,u=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(a);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function y(e,t){var r=e.match(i);if(!r)return!1;var n=r[1],a=r[2],o=r[3],s=r[5];return(n<=23&&a<=59&&o<=59||23==n&&59==a&&60==o)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:p,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":u,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var v=/t|\s/i;var b=/\/|:/;var x=/[^\\]\\Z/;function w(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7153:(e,t,r)=>{"use strict";var n=r(3610),a=r(2889),o=r(7802),i=r(5035),s=r(9508),l=a.ucs2length,c=r(4063),p=o.Validation;function d(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function u(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n{"use strict";var n=r(540),a=r(4063),o=r(2889),i=r(4022),s=r(9461);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof i)return f(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var a,o,s,p=c.call(this,t,r);return p&&(a=p.schema,t=p.root,s=p.baseId),a instanceof i?o=a.validate||e.call(this,a.schema,t,void 0,s):void 0!==a&&(o=f(a,this._opts.inlineRefs)?a:e.call(this,a,t,void 0,s)),o}function c(e,t){var r=n.parse(t),a=v(r),o=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var s=x(a),l=this._refs[s];if("string"==typeof l)return p.call(this,e,l,r);if(l instanceof i)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof i))return;if(l.validate||this._compile(l),s==x(t))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=y(this._getId(e.schema))}return u.call(this,r,o,e.schema,e)}function p(e,t,r){var n=c.call(this,e,t);if(n){var a=n.schema,o=n.baseId;e=n.root;var i=this._getId(a);return i&&(o=w(o,i)),u.call(this,r,o,a,e)}}e.exports=l,l.normalizeId=x,l.fullPath=y,l.url=w,l.ids=function(e){var t=x(this._getId(e)),r={"":t},i={"":y(t,!1)},l={},c=this;return s(e,{allKeys:!0},(function(e,t,s,p,d,u,h){if(""!==t){var f=c._getId(e),m=r[p],g=i[p]+"/"+d;if(void 0!==h&&(g+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof f){f=m=x(m?n.resolve(m,f):f);var y=c._refs[f];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!a(e,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=x(g))if("#"==f[0]){if(l[f]&&!a(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=g}r[t]=m,i[t]=g}})),l},l.inlineRef=f,l.schema=c;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function u(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),i=1;i{"use strict";var n=r(6674),a=r(2889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=a(t),e.types=a(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var a;if("object"==typeof r){var o=Object.keys(r)[0];a=r[o],r=o,a.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:a}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=a(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},4022:(e,t,r)=>{"use strict";var n=r(2889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,a=0;a=55296&&t<=56319&&a{"use strict";function n(e,t,r,n){var a=n?" !== ":" === ",o=n?" || ":" && ",i=n?"!":"",s=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+o+"typeof "+t+a+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+o+s+"("+t+" % 1)"+o+t+a+t+(r?o+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(r?o+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var a="",i=o(e);for(var s in i.array&&i.object&&(a=i.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)a+=(a?" && ":"")+n(s,t,r,!0);return a},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!a)return o}for(var s=o,c=a.split("/"),p=0;p{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8210:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[f],g=e.opts.$data&&m&&m.$data,y=h?"<":">",v=h?">":"<",b=void 0;if(!u&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(f+" must be number or boolean");if(g){var x=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,$="exclType"+o,S="exclIsNumber"+o,E="' + "+(_="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+x+"; ",a+=" var "+w+"; var "+$+" = typeof "+(x="schemaExcl"+o)+"; if ("+$+" != 'boolean' && "+$+" != 'undefined' && "+$+" != 'number') { ";var k;b=f;(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var A=a;a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+$+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+y+"= "+n+") ? "+d+" "+v+"= "+x+" : "+d+" "+v+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+d+" "+v+"= "+n+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=f,c=e.errSchemaPath+"/"+f,n=x,u=g)}else{E=y;if((S="number"==typeof m)&&u){var _="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+d+" "+v+"= "+m+" : "+d+" "+v+" "+n+" ) || "+d+" !== "+d+") { "}else{S&&void 0===s?(w=!0,b=f,c=e.errSchemaPath+"/"+f,n=m,v+="="):(S&&(n=Math[h?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=f,c=e.errSchemaPath+"/"+f,v+="="):(w=!1,E+="="));_="'"+E+"'";a+=" if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+" "+v+" "+n+" || "+d+" !== "+d+") { "}}b=b||t,(k=k||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+E+" ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";A=a;return a=k.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { "),a}},3038:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+d+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},425:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?a+=" "+d+".length ":a+=" ucs2length("+d+") ",a+=" "+h+" "+n+") { ";var f=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var g=a;return a=m.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8204:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=u?"' + "+n+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var m=a;return a=f.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},2988:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var p="valid"+l.level,d=l.baseId,u=!0,h=a;if(h)for(var f,m=-1,g=h.length-1;m0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(u=!1,l.schema=f,l.schemaPath=o+"["+m+"]",l.errSchemaPath=i+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=d,s&&(n+=" if ("+p+") { ",c+="}"));return s&&(n+=u?" if (true) { ":" "+c.slice(0,-1)+" "),n}},9996:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=h.baseId;n+=" var "+u+" = errors; var "+d+" = false; ";var v=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=i;if(b)for(var x,w=-1,$=b.length-1;w<$;)x=b[w+=1],h.schema=x,h.schemaPath=s+"["+w+"]",h.errSchemaPath=l+"/"+w,n+=" "+e.validate(h)+" ",h.baseId=y,n+=" "+d+" = "+d+" || "+m+"; if (!"+d+") { ",f+="}";e.compositeRule=h.compositeRule=v,n+=" "+f+" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}},7812:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.schema[t],o=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(a));return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}},5306:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),u||(n+=" var schema"+a+" = validate.schema"+s+";"),n+="var "+d+" = equal("+p+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m="i"+a,g=h.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+u+" = errors;var "+d+";",b){var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+f+" = false; for (var "+m+" = 0; "+m+" < "+p+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=p+"["+m+"]";h.dataPathArr[g]=m;var $=e.validate(h);h.baseId=v,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,w)+" ":n+=" var "+y+" = "+w+"; "+$+" ",n+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=x,n+=" if (!"+f+") {"}else n+=" if ("+p+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},4165:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,u="data"+(s||""),h="valid"+i,f="errs__"+i,m=e.opts.$data&&l&&l.$data;m?(o+=" var schema"+i+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",a="schema"+i):a=l;var g,y,v,b,x,w=this,$="definition"+i,S=w.definition,E="";if(m&&S.$data){x="keywordValidate"+i;var k=S.validateSchema;o+=" var "+$+" = RULES.custom['"+t+"'].definition; var "+x+" = "+$+".validate;"}else{if(!(b=e.useCustomRule(w,l,e.schema,e)))return;a="validate.schema"+c,x=b.code,g=S.compile,y=S.inline,v=S.macro}var A=x+".errors",_="i"+i,O="ruleErr"+i,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(o+=A+" = null;"),o+="var "+f+" = errors;var "+h+";",m&&S.$data&&(E+="}",o+=" if ("+a+" === undefined) { "+h+" = true; } else { ",k&&(E+="}",o+=" "+h+" = "+$+".validateSchema("+a+"); if ("+h+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(v){var T=e.util.copy(e);E="";T.level++;var j="valid"+T.level;T.schema=b.validate,T.schemaPath="";var C=e.compositeRule;e.compositeRule=T.compositeRule=!0;var R=e.validate(T).replace(/validate\.schema/g,x);e.compositeRule=T.compositeRule=C,o+=" "+R}else{(M=M||[]).push(o),o="",o+=" "+x+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+u+" ":o+=" , "+a+" , "+u+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+I+" , "+D+" , rootData ) ";o=M.pop(),!1===S.errors?(o+=" "+h+" = ",P&&(o+="await "),o+=L+"; "):o+=P?" var "+(A="customErrors"+i)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+h+" = "+L+"; "}if(S.modifying&&(o+=" if ("+I+") "+u+" = "+I+"["+D+"];"),o+=""+E,S.valid)d&&(o+=" if (true) { ");else{var M;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+j:""+h):o+=" "+!S.valid+" ",o+=") { ",n=w.keyword,(M=M||[]).push(o),o="",(M=M||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var N=o;o=M.pop(),!e.compositeRule&&d?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=M.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+_+"="+f+"; "+_+"{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m={},g={},y=e.opts.ownProperties;for(w in i)if("__proto__"!=w){var v=i[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+d+" = errors;";var x=e.errorPath;for(var w in n+="var missing"+a+";",g)if((b=g[w]).length){if(n+=" if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),c){n+=" && ( ";var $=b;if($)for(var S=-1,E=$.length-1;S0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+f+" = true; if ( "+p+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",u.schema=v,u.schemaPath=s+e.util.getProperty(w),u.errSchemaPath=l+"/"+e.util.escapeFragment(w),n+=" "+e.validate(u)+" ",u.baseId=D,n+=" } ",c&&(n+=" if ("+f+") { ",h+="}"))}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},1740:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="i"+a,f="schema"+a;u||(n+=" var "+f+" = validate.schema"+s+";"),n+="var "+d+";",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=d+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+p+", "+f+"["+h+"])) { "+d+" = true; break; }",u&&(n+=" } "),n+=" if (!"+d+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},9014:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var d,u=e.opts.$data&&i&&i.$data;u?(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",d="schema"+a):d=i;var h=e.opts.unknownFormats,f=Array.isArray(h);if(u){n+=" var "+(m="format"+a)+" = formats["+d+"]; var "+(g="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+a)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+a+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",u&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+d+" && !"+m+" ",f&&(n+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+a+" ? await "+m+"("+p+") : "+m+"("+p+")) ":n+=" "+m+"("+p+") ",n+=" : "+m+".test("+p+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(f&&h.indexOf(i)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+p+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+p+") ":" "+b+".test("+p+") ",n+=") { "}}var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=u?""+d:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=u?"' + "+d+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=u?"validate.schema"+s:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var w=n;return n=x.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},7231:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e);h.level++;var f="valid"+h.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=h.baseId;if(y||v){var x;h.createErrors=!1,h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" var "+u+" = errors; var "+d+" = true; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=w,y?(n+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'then'; ":x="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+f+") { ",v&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+d+" = "+f+"; ",y&&v?n+=" var "+(x="ifClause"+a)+" = 'else'; ":x="'else'",n+=" } "),n+=" if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+x+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},6674:(e,t,r)=>{"use strict";e.exports={$ref:r(2392),allOf:r(2988),anyOf:r(9996),$comment:r(7812),const:r(5306),contains:r(2840),dependencies:r(6659),enum:r(1740),format:r(9014),if:r(7231),items:r(7482),maximum:r(8210),minimum:r(8210),maxItems:r(3038),minItems:r(3038),maxLength:r(425),minLength:r(425),maxProperties:r(8204),minProperties:r(8204),multipleOf:r(3673),not:r(8528),oneOf:r(9709),pattern:r(9614),properties:r(1175),propertyNames:r(8441),required:r(1287),uniqueItems:r(3603),validate:r(9508)}},7482:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g="i"+a,y=h.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+u+" = errors;var "+d+";",Array.isArray(i)){var x=e.schema.additionalItems;if(!1===x){n+=" "+d+" = "+p+".length <= "+i.length+"; ";var w=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+d+") { ";var $=$||[];$.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=$.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=w,c&&(f+="}",n+=" else { ")}var E=i;if(E)for(var k,A=-1,_=E.length-1;A<_;)if(k=E[A+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+p+".length > "+A+") { ";var O=p+"["+A+"]";h.schema=k,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,h.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),h.dataPathArr[y]=A;var P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",n+=" } ",c&&(n+=" if ("+m+") { ",f+="}")}if("object"==typeof x&&(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))){h.schema=x,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+p+".length > "+i.length+") { for (var "+g+" = "+i.length+"; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=s,h.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+p+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);O=p+"["+g+"]";h.dataPathArr[y]=g;P=e.validate(h);h.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,O)+" ":n+=" var "+v+" = "+O+"; "+P+" ",c&&(n+=" if (!"+m+") break; "),n+=" }"}return c&&(n+=" "+f+" if ("+u+" == errors) {"),n}},3673:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;if(u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!u&&"number"!=typeof s)throw new Error(t+" must be number");a+="var division"+o+";if (",u&&(a+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),a+=" (division"+o+" = "+d+" / "+n+", ",e.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",u&&(a+=" ) "),a+=" ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=u?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},8528:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l,n+=" var "+d+" = errors; ";var f,m=e.compositeRule;e.compositeRule=u.compositeRule=!0,u.createErrors=!1,u.opts.allErrors&&(f=u.opts.allErrors,u.opts.allErrors=!1),n+=" "+e.validate(u)+" ",u.createErrors=!0,f&&(u.opts.allErrors=f),e.compositeRule=u.compositeRule=m,n+=" if ("+h+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},9709:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u="errs__"+a,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,g=h.baseId,y="prevValid"+a,v="passingSchemas"+a;n+="var "+u+" = errors , "+y+" = false , "+d+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=i;if(x)for(var w,$=-1,S=x.length-1;$0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(h.schema=w,h.schemaPath=s+"["+$+"]",h.errSchemaPath=l+"/"+$,n+=" "+e.validate(h)+" ",h.baseId=g):n+=" var "+m+" = true; ",$&&(n+=" if ("+m+" && "+y+") { "+d+" = false; "+v+" = ["+v+", "+$+"]; } else { ",f+="}"),n+=" if ("+m+") { "+d+" = "+y+" = true; "+v+" = "+$+"; }";return e.compositeRule=h.compositeRule=b,n+=f+"if (!"+d+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},9614:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u=e.opts.$data&&s&&s.$data;u?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,a+="if ( ",u&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),a+=" !"+(u?"(new RegExp("+n+"))":e.usePattern(s))+".test("+d+") ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",a+=u?""+n:""+e.util.toQuotedString(s),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=u?"' + "+n+" + '":""+e.util.escapeQuotes(s),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=u?"validate.schema"+l:""+e.util.toQuotedString(s),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var f=a;return a=h.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+f+"]); ":a+=" validate.errors = ["+f+"]; return false; ":a+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",p&&(a+=" else { "),a}},1175:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e),h="";u.level++;var f="valid"+u.level,m="key"+a,g="idx"+a,y=u.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+a,x=Object.keys(i||{}).filter(R),w=e.schema.patternProperties||{},$=Object.keys(w).filter(R),S=e.schema.additionalProperties,E=x.length||$.length,k=!1===S,A="object"==typeof S&&Object.keys(S).length,_=e.opts.removeAdditional,O=k||A||_,P=e.opts.ownProperties,T=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=x;if(I)for(var D=-1,L=I.length-1;D0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var Q=e.util.getProperty(G),ee=(W=p+Q,V&&void 0!==X.default);u.schema=X,u.schemaPath=s+Q,u.errSchemaPath=l+"/"+e.util.escapeFragment(G),u.errorPath=e.util.getPath(e.errorPath,G,e.opts.jsonPointers),u.dataPathArr[y]=e.util.toQuotedString(G);Z=e.validate(u);if(u.baseId=T,e.util.varOccurences(Z,v)<2){Z=e.util.varReplace(Z,v,W);var te=W}else{te=v;n+=" var "+v+" = "+W+"; "}if(ee)n+=" "+Z+" ";else{if(C&&C[G]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=") { "+f+" = false; ";U=e.errorPath,B=l;var re,ne=e.util.escapeQuotes(G);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,G,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";H=n;n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=B,e.errorPath=U,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=") { "+f+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(G)+"') "),n+=" ) { ");n+=" "+Z+" } "}}c&&(n+=" if ("+f+") { ",h+="}")}}if($.length){var ae=$;if(ae)for(var oe,ie=-1,se=ae.length-1;ie0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){u.schema=X,u.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),u.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=P?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+p+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",u.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);W=p+"["+m+"]";u.dataPathArr[y]=m;Z=e.validate(u);u.baseId=T,e.util.varOccurences(Z,v)<2?n+=" "+e.util.varReplace(Z,v,W)+" ":n+=" var "+v+" = "+W+"; "+Z+" ",c&&(n+=" if (!"+f+") break; "),n+=" } ",c&&(n+=" else "+f+" = true; "),n+=" } ",c&&(n+=" if ("+f+") { ",h+="}")}}}return c&&(n+=" "+h+" if ("+d+" == errors) {"),n}},8441:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="errs__"+a,u=e.util.copy(e);u.level++;var h="valid"+u.level;if(n+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){u.schema=i,u.schemaPath=s,u.errSchemaPath=l;var f="key"+a,m="idx"+a,g="i"+a,y="' + "+f+" + '",v="data"+(u.dataLevel=e.dataLevel+1),b="dataProperties"+a,x=e.opts.ownProperties,w=e.baseId;x&&(n+=" var "+b+" = undefined; "),n+=x?" "+b+" = "+b+" || Object.keys("+p+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+f+" = "+b+"["+m+"]; ":" for (var "+f+" in "+p+") { ",n+=" var startErrs"+a+" = errors; ";var $=f,S=e.compositeRule;e.compositeRule=u.compositeRule=!0;var E=e.validate(u);u.baseId=w,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,$)+" ":n+=" var "+v+" = "+$+"; "+E+" ",e.compositeRule=u.compositeRule=S,n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(s||""),u="valid"+i;if("#"==l||"#/"==l)e.isRoot?(n=e.async,a="validate"):(n=!0===e.root.schema.$async,a="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(f),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,f);e.logger.warn(f),p&&(o+=" if (true) { ")}}else if(h.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=l,o+=" "+e.validate(g).replace(/validate\.schema/g,h.code)+" ",p&&(o+=" if ("+y+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,a=h.code}if(a){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+a+".call(this, ":o+=" "+a+"( ",o+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");p&&(o+=" var "+u+"; "),o+=" try { await "+b+"; ",p&&(o+=" "+u+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(o+=" "+u+" = false; "),o+=" } ",p&&(o+=" if ("+u+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",p&&(o+=" else { ")}return o}},1287:e=>{"use strict";e.exports=function(e,t,r){var n=" ",a=e.level,o=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(o||""),d="valid"+a,u=e.opts.$data&&i&&i.$data;u&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!u)if(i.length0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=g)}}else f=i;if(u||f.length){var x=e.errorPath,w=u||f.length>=e.opts.loopRequired,$=e.opts.ownProperties;if(c)if(n+=" var missing"+a+"; ",w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),n+=" var "+d+" = true; ",u&&(n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { "+d+" = "+p+"["+h+"["+A+"]] !== undefined ",$&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+="; if (!"+d+") break; } ",u&&(n+=" } "),n+=" if (!"+d+") { ",(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=f;if(k)for(var A=-1,_=k.length-1;A<_;){j=k[A+=1],A&&(n+=" || "),n+=" ( ( "+(D=p+(I=e.util.getProperty(j)))+" === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(j)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:I)+") ) "}n+=") { ";var O;S="' + "+(P="missing"+a)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,P,!0):x+" + "+P),(O=O||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";E=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){u||(n+=" var "+h+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+a+"["+(A="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,P,e.opts.jsonPointers)),u&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+A+" = 0; "+A+" < "+h+".length; "+A+"++) { if ("+p+"["+h+"["+A+"]] === undefined ",$&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+h+"["+A+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",u&&(n+=" } ")}else{var T=f;if(T)for(var j,C=-1,R=T.length-1;C{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(i||""),u="valid"+o,h=e.opts.$data&&s&&s.$data;if(h?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(a+=" var "+u+"; if ("+n+" === false || "+n+" === undefined) "+u+" = true; else if (typeof "+n+" != 'boolean') "+u+" = false; else { "),a+=" var i = "+d+".length , "+u+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,m=Array.isArray(f);if(!f||"object"==f||"array"==f||m&&(f.indexOf("object")>=0||f.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+u+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var g="checkDataType"+(m?"s":"");a+=" if ("+e.util[g](f,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+u+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",h&&(a+=" } "),a+=" if (!"+u+") { ";var y=y||[];y.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+l:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var v=a;a=y.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",p&&(a+=" else { ")}else p&&(a+=" if (true) { ");return a}},9508:e=>{"use strict";e.exports=function(e,t,r){var n="",a=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",a&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var c=e.level,p=e.dataLevel,d=e.schema[t],u=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(p||""),g="valid"+c;if(!1===e.schema){e.isTop?f=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Y.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=a?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;c=e.level=0,p=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{c=e.level,m="data"+((p=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,f=!e.opts.allErrors;var x="",w="",$=e.schema.type,S=Array.isArray($);if($&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==$.indexOf("null")&&($=$.concat("null")):"null"!=$&&($=[$,"null"],S=!0)),S&&1==$.length&&($=$[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),$){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,$);var k=e.RULES.types[$];if(E||S||!0===k||k&&!J(k)){u=e.schemaPath+".type",h=e.errSchemaPath+"/type",u=e.schemaPath+".type",h=e.errSchemaPath+"/type";var A=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[A]($,m,e.opts.strictNumbers,!0)+") { ",E){var _="dataType"+c,O="coerced"+c;n+=" var "+_+" = typeof "+m+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+_+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+_+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+O+" = "+m+"; } "),n+=" if ("+O+" !== undefined) ; ";var P=E;if(P)for(var T,j=-1,C=P.length-1;j{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,a=r(4165),o=r(1128);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var i=0;i{"use strict";var n=r(4155),a=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,s,l=r(2136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,p=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,f=r(5961),m=r(9539).inspect,g=r(9539).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:r(8091).assign,x=Object.is?Object.is:r(609);new Map;function w(){var e=r(9158);i=e.isDeepEqual,s=e.isDeepStrictEqual}var $=!1,S=e.exports=_,E={};function k(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,r,n){if(!r){var a=!1;if(0===t)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=a,o}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),a=1;a{"use strict";var n=r(4155);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;re.length)&&(r=e.length),e.substring(r-t.length,r)===t}var g="",y="",v="",b="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function $(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,r){var a="",o="",i=0,s="",l=!1,c=$(e),p=c.split("\n"),d=$(t).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===p.length&&1===d.length&&p[0]!==d[0]){var w=p[0].length+d[0].length;if(w<=10){if(!("object"===u(e)&&null!==e||"object"===u(t)&&null!==t||0===e&&0===t))return"".concat(x[r],"\n\n")+"".concat(p[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r){if(w<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;p[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var S=p[p.length-1],E=d[d.length-1];S===E&&(h++<2?s="\n ".concat(S).concat(s):a=S,p.pop(),d.pop(),0!==p.length&&0!==d.length);)S=p[p.length-1],E=d[d.length-1];var k=Math.max(p.length,d.length);if(0===k){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(x.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var _=0,O=x[r]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),P=" ".concat(g,"...").concat(b," Lines skipped");for(h=0;h1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(d[h-2]),_++),o+="\n ".concat(d[h-1]),_++),i=h,a+="\n".concat(v,"-").concat(b," ").concat(d[h]),_++;else if(d.length1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(p[h]),_++;else{var j=d[h],C=p[h],R=C!==j&&(!m(C,",")||C.slice(0,-1)!==j);R&&m(j,",")&&j.slice(0,-1)===C&&(R=!1,C+=","),R?(T>1&&h>2&&(T>4?(o+="\n".concat(g,"...").concat(b),l=!0):T>3&&(o+="\n ".concat(p[h-2]),_++),o+="\n ".concat(p[h-1]),_++),i=h,o+="\n".concat(y,"+").concat(b," ").concat(C),a+="\n".concat(v,"-").concat(b," ").concat(j),_+=2):(o+=a,a="",1!==T&&0!==h||(o+="\n ".concat(C),_++))}if(_>20&&h30)for(E[26]="".concat(g,"...").concat(b);E.length>27;)E.pop();r=1===E.length?i(this,d(t).call(this,"".concat(m," ").concat(E[0]))):i(this,d(t).call(this,"".concat(m,"\n\n").concat(E.join("\n"),"\n")))}else{var k=$(c),A="",_=x[o];"notDeepEqual"===o||"notEqual"===o?(k="".concat(x[o],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(A="".concat($(p)),k.length>512&&(k="".concat(k.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?k="".concat(_,"\n\n").concat(k,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),r=i(this,d(t).call(this,"".concat(k).concat(A)))}return Error.stackTraceLimit=h,r.generatedMessage=!a,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=p,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),l),r.stack,r.name="AssertionError",i(r)}var r,l,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s,l,c={};function p(e,t,r){r||(r=Error);var n=function(r){function n(r,i,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),l=a(this,o(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,i,s))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,r),n}(r);c[e]=n}function d(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,a){var o,i,l,c;if(void 0===s&&(s=r(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(!l||l<0?0:+l,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(d(t,"type"));else{var p=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(p," ").concat(o," ").concat(d(t,"type"))}return c+=". Received type ".concat(n(a))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r(9539));var a=l.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(a)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var a;return a=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var a="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,o-1).join(", "),a+=", and ".concat(t[o-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o=void 0!==/a/g.flags,i=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(360);function d(e){return e.call.bind(e)}var u=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=r(9539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,x=m.isRegExp,w=m.isSet,$=m.isNativeError,S=m.isBoxedPrimitive,E=m.isNumberObject,k=m.isStringObject,A=m.isBooleanObject,_=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,T=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function C(e){return Object.keys(e).filter(j).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a{"use strict";const n=window,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),i=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(a&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=i.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&i.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new s(r,e,o)},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return l(t)})(e):e;var d;const u=window,h=u.trustedTypes,f=h?h.emptyScript:"",m=u.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>t!==e&&(t==t||e==e),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y};class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=v){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{a?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),a=n.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=v){var n;const a=this.constructor._$Ep(e,r);if(void 0!==a&&!0===r.reflect){const o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:g).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,a=n._$Ev.get(e);if(void 0!==a&&this._$El!==a){const e=n.getPropertyOptions(a),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:g;this._$El=a,this[a]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||y)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:b}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const w=window,$=w.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,A="?"+k,_=`<${A}>`,O=document,P=()=>O.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,C=e=>j(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),R="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,L=/>/g,M=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,F=/"/g,U=/^(?:script|style|textarea|title)$/i,q=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),B=q(1),H=(q(2),Symbol.for("lit-noChange")),z=Symbol.for("lit-nothing"),W=new WeakMap,Z=O.createTreeWalker(O,129,null,!1),V=(e,t)=>{const r=e.length-1,n=[];let a,o=2===t?"":"",i=I;for(let t=0;t"===l[0]?(i=null!=a?a:I,c=-1):void 0===l[1]?c=-2:(c=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?M:'"'===l[3]?F:N):i===F||i===N?i=M:i===D||i===L?i=I:(i=M,a=void 0);const d=i===M&&e[t+1].startsWith("/>")?" ":"";o+=i===I?r+_:c>=0?(n.push(s),r.slice(0,c)+E+r.slice(c)+k+d):r+k+(-2===c?(n.push(void 0),t):d)}const s=o+(e[r]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(s):s,n]};class K{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let a=0,o=0;const i=e.length-1,s=this.parts,[l,c]=V(e,t);if(this.el=K.createElement(l,r),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Z.nextNode())&&s.length0){n.textContent=$?$.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const a=this.strings;let o=!1;if(void 0===a)e=G(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let i,s;for(e=a[0],i=0;i{var n,a;const o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let i=o._$litPart$;if(void 0===i){const e=null!==(a=null==r?void 0:r.renderBefore)&&void 0!==a?a:null;o._$litPart$=i=new J(t.insertBefore(P(),e),e,void 0,null!=r?r:{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return H}}se.finalized=!0,se._$litElement$=!0,null===(oe=globalThis.litElementHydrateSupport)||void 0===oe||oe.call(globalThis,{LitElement:se});const le=globalThis.litElementPolyfillSupport;null==le||le({LitElement:se});(null!==(ie=globalThis.litElementVersions)&&void 0!==ie?ie:globalThis.litElementVersions=[]).push("3.3.2");var ce=r(5108);function pe(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let de={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const ue=/[&<>"']/,he=new RegExp(ue.source,"g"),fe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,me=new RegExp(fe.source,"g"),ge={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=e=>ge[e];function ve(e,t){if(t){if(ue.test(e))return e.replace(he,ye)}else if(fe.test(e))return e.replace(me,ye);return e}const be=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xe(e){return e.replace(be,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const we=/(^|[^\[])\^/g;function $e(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(we,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const Se=/[^\w:]/g,Ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ke(e,t,r){if(e){let e;try{e=decodeURIComponent(xe(r)).replace(Se,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ee.test(r)&&(r=function(e,t){Ae[" "+e]||(_e.test(e)?Ae[" "+e]=e+"/":Ae[" "+e]=Ce(e,"/",!0));e=Ae[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(Oe,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(Pe,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ae={},_e=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,Pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Te={exec:function(){}};function je(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Ie(e,t,r,n){const a=t.href,o=t.title?ve(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:a,title:o,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:a,title:o,text:ve(i)}}class De{constructor(e){this.options=e||de}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Ce(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Ce(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,a,o,i,s,l,c,p,d,u,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const y=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(o=2,u=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,u=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(d=e.split("\n",1)[0],p=d,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!a.test(p))&&!i.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=o||!p.trim())u+="\n"+p.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(a.test(c))break;if(i.test(c))break;if(n.test(c))break;u+="\n"+p}s||p.trim()||(s=!0),r+=d+"\n",e=e.substring(d.length+1),c=p.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u),n&&(a="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:u}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=u.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(i=0;i"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:je(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,a,o,i=e.align.length;for(r=0;r({text:e})));for(i=e.header.length,n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ve(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Ce(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,a=0;for(;a-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(e)?r.slice(1):r.slice(1,-1)),Ie(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Ie(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let a,o,i=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(o=a.length,n[3]||n[4]){i+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){s+=o;continue}if(i-=o,i>0)continue;o=Math.min(o,o+i+s);const t=e.slice(0,r+n.index+(n[0].length-a.length)+o);if(Math.min(r,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=ve(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=ve(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=ve(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=ve(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=ve(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ve(r[0]):r[0]:ve(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Le={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Te,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Le.def=$e(Le.def).replace("label",Le._label).replace("title",Le._title).getRegex(),Le.bullet=/(?:[*+-]|\d{1,9}[.)])/,Le.listItemStart=$e(/^( *)(bull) */).replace("bull",Le.bullet).getRegex(),Le.list=$e(Le.list).replace(/bull/g,Le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Le.def.source+")").getRegex(),Le._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Le._comment=/|$)/,Le.html=$e(Le.html,"i").replace("comment",Le._comment).replace("tag",Le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Le.paragraph=$e(Le._paragraph).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.blockquote=$e(Le.blockquote).replace("paragraph",Le.paragraph).getRegex(),Le.normal={...Le},Le.gfm={...Le.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Le.gfm.table=$e(Le.gfm.table).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.gfm.paragraph=$e(Le._paragraph).replace("hr",Le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Le.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Le._tag).getRegex(),Le.pedantic={...Le.normal,html:$e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Le._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Le.normal._paragraph).replace("hr",Le.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}Me._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Me.punctuation=$e(Me.punctuation).replace(/punctuation/g,Me._punctuation).getRegex(),Me.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Me.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Me._comment=$e(Le._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Me.emStrong.lDelim=$e(Me.emStrong.lDelim).replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimAst=$e(Me.emStrong.rDelimAst,"g").replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimUnd=$e(Me.emStrong.rDelimUnd,"g").replace(/punct/g,Me._punctuation).getRegex(),Me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Me._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Me.autolink=$e(Me.autolink).replace("scheme",Me._scheme).replace("email",Me._email).getRegex(),Me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Me.tag=$e(Me.tag).replace("comment",Me._comment).replace("attribute",Me._attribute).getRegex(),Me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Me._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Me.link=$e(Me.link).replace("label",Me._label).replace("href",Me._href).replace("title",Me._title).getRegex(),Me.reflink=$e(Me.reflink).replace("label",Me._label).replace("ref",Le._label).getRegex(),Me.nolink=$e(Me.nolink).replace("ref",Le._label).getRegex(),Me.reflinkSearch=$e(Me.reflinkSearch,"g").replace("reflink",Me.reflink).replace("nolink",Me.nolink).getRegex(),Me.normal={...Me},Me.pedantic={...Me.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",Me._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Me._label).getRegex()},Me.gfm={...Me.normal,escape:$e(Me.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,a,o,i,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+Re("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+Re("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Fe))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Fe))){if(a=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a,Ne))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){ce.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class qe{constructor(e){this.options=e||de}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'
    '+(r?e:ve(e,!0))+"
    \n":"
    "+(r?e:ve(e,!0))+"
    \n"}blockquote(e){return`
    \n${e}
    \n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`${e}\n`}return`${e}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n='
    ",n}image(e,t,r){if(null===(e=ke(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`${r}":">",n}text(e){return e}}class Be{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class He{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class ze{constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Be,this.slugger=new He}static parse(e,t){return new ze(t).parse(e)}static parseInline(e,t){return new ze(t).parseInline(e)}parse(e,t=!0){let r,n,a,o,i,s,l,c,p,d,u,h,f,m,g,y,v,b,x,w="";const $=e.length;for(r=0;r<$;r++)if(d=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(x=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))w+=x||"";else switch(d.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(d.tokens),d.depth,xe(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),p+=this.renderer.listitem(m,v,y);w+=this.renderer.list(p,u,h);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(p=d.tokens?this.parseInline(d.tokens):d.text;r+1<$&&"text"===e[r+1].type;)d=e[++r],p+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void ce.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,a,o="";const i=e.length;for(r=0;r{"function"==typeof n&&(a=n,n=null);const o={...n},i=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+ve(n.message+"",!0)+"
    ";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ve.defaults,...o}).silent,n.async,a);if(null==r)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&ce.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),a){const o=n.highlight;let s;try{n.hooks&&(r=n.hooks.preprocess(r)),s=e(r,n)}catch(e){return i(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ve.walkTokens(s,n.walkTokens),r=t(s,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=o,e?i(e):a(null,r)};if(!o||o.length<3)return l();if(delete n.highlight,!s.length)return l();let c=0;return Ve.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ve.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(i);try{n.hooks&&(r=n.hooks.preprocess(r));const a=e(r,n);n.walkTokens&&Ve.walkTokens(a,n.walkTokens);let o=t(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(e){return i(e)}}}function Ve(e,t,r){return Ze(Ue.lex,ze.parse)(e,t,r)}Ve.options=Ve.setOptions=function(e){var t;return Ve.defaults={...Ve.defaults,...e},t=Ve.defaults,de=t,Ve},Ve.getDefaults=pe,Ve.defaults=de,Ve.use=function(...e){const t=Ve.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Ve.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Ve.defaults.renderer||new qe;for(const r in e.renderer){const n=t[r];t[r]=(...a)=>{let o=e.renderer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.renderer=t}if(e.tokenizer){const t=Ve.defaults.tokenizer||new De;for(const r in e.tokenizer){const n=t[r];t[r]=(...a)=>{let o=e.tokenizer[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.tokenizer=t}if(e.hooks){const t=Ve.defaults.hooks||new We;for(const r in e.hooks){const n=t[r];We.passThroughHooks.has(r)?t[r]=a=>{if(Ve.defaults.async)return Promise.resolve(e.hooks[r].call(t,a)).then((e=>n.call(t,e)));const o=e.hooks[r].call(t,a);return n.call(t,o)}:t[r]=(...a)=>{let o=e.hooks[r].apply(t,a);return!1===o&&(o=n.apply(t,a)),o}}r.hooks=t}if(e.walkTokens){const t=Ve.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ve.setOptions(r)}))},Ve.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ve,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ve.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ve.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ve.walkTokens(n.items,t));break;default:Ve.defaults.extensions&&Ve.defaults.extensions.childTokens&&Ve.defaults.extensions.childTokens[n.type]?Ve.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Ve.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Ve.walkTokens(n.tokens,t)))}return r},Ve.parseInline=Ze(Ue.lexInline,ze.parseInline),Ve.Parser=ze,Ve.parser=ze.parse,Ve.Renderer=qe,Ve.TextRenderer=Be,Ve.Lexer=Ue,Ve.lexer=Ue.lex,Ve.Tokenizer=De,Ve.Slugger=He,Ve.Hooks=We,Ve.parse=Ve;Ve.options,Ve.setOptions,Ve.use,Ve.walkTokens,Ve.parseInline,ze.parse,Ue.lex;var Ke=r(8325),Ge=r.n(Ke);r(7874),r(5433),r(4335),r(9980),r(9385),r(6854),r(9945),r(366),r(4277),r(5712),r(5251),r(3358),r(7046),r(2503),r(57),r(9016);const Ye=c` .hover-bg:hover{ background: var(--bg3); } @@ -86,54 +86,27 @@ grid-template-columns: 20px 1fr; } + .m-markdown .callout-icon { + display: inline-block; + flex-shrink: 0; + grid-row: 1; + } + .m-markdown .info-blockquote { background: #f8f7fc; border: 1px solid #ccced8; } - .m-markdown .info-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/info.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .warning-blockquote { background: #fff2d4; border: 1px solid #ffb100; } - .m-markdown .warning-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/warning.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .danger-blockquote { background: #fdefef; border: 1px solid #dc5a41; } - .m-markdown .danger-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/danger.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - blockquote p{ grid-column: 2 / -1; margin: 0; @@ -274,7 +247,6 @@ /* Button */ .m-btn { display: flex; - flex-direction: column; align-items: center; border-radius: var(--border-radius); font-weight: 400; @@ -290,6 +262,10 @@ text-transform: uppercase; letter-spacing: 0.5px; } +.m-btn-image { + flex-direction: row; + column-gap: 10px; +} .m-btn-primary { background-color: var(--primary-color); color: var(--primary-color-invert); @@ -1267,8 +1243,7 @@ pre[class*="language-"] { } `,ot=c` .code-container { - padding-inline: 32px; - padding-top: 16px; + tab-size: 4; } .code-container > code { font-size: 14px; @@ -1357,6 +1332,7 @@ pre[class*="language-"] { .right-box-container { margin-top: 16px; + padding-inline: 16px; } .right-box-label { @@ -1371,6 +1347,18 @@ pre[class*="language-"] { height: 44px; } +.right-box-content { + border: 1px solid rgb(204, 206, 216); + border-radius: 4px; + padding-block: 24px; + margin-top: 24px; +} + +.right-box-select { + padding-inline: 16px; + width: 100%; +} + .server-template { position: relative; } @@ -1531,7 +1519,7 @@ pre[class*="language-"] { transition: visibility 0.3s linear,opacity 0.3s linear; } -`;var it=r(5108);const st=/[\s#:?&={}]/g,lt="_rapidoc_api_key";function ct(e){return new Promise((t=>setTimeout(t,e)))}function pt(e,t){const r=t.target.closest("button"),n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerHTML='\n \n \n ',setTimeout((()=>{r.innerHTML='\n \n \n \n '}),5e3)}catch(e){it.error("Unable to copy",e)}document.body.removeChild(n)}function dt(e,t,r="includes"){if("includes"===r){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}return new RegExp(`^${e}$`,"i").test(`${t.method} ${t.path}`)}function ut(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var n;if(t.add(r),e[r].properties)ut(e[r].properties,t);else if(null!==(n=e[r].items)&&void 0!==n&&n.properties){var a;ut(null===(a=e[r].items)||void 0===a?void 0:a.properties,t)}})),t):t}function ht(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function ft(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}var mt=r(9682),gt=r.n(mt),yt=r(5108);async function vt(e,t,r=!1,n=!1,a="",o="",i="",s="",l=""){var c,p;let d,u;try{var h,f;if(this.requestUpdate(),t)u=JSON.parse(t);else{const t=await gt().dereference(e);u=await gt().parse(t)}if(null!==(h=u)&&void 0!==h&&h.jsonSchemaViewer&&null!==(f=u)&&void 0!==f&&f.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:u.resolvedSpec}}));const e=Object.entries(u.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(st,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:u.resolvedSpec.info,schemaAndExamples:e}}if(!u||!(u.components||u.info||u.servers||u.tags||u.paths))return yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",u),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:"Unable to load the Spec",version:" "},tags:[]};d=u,this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:d}}))}catch(e){yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const m=function(e,t,r=!1,n=!1){const a=["get","put","post","delete","patch","head","options"],o=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(st,"-")}`,name:e.name,description:e.description||"",headers:e.description?bt(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],i=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",i[t]=r;for(const t in i){const n=i[t].parameters,s={servers:i[t].servers||[],parameters:i[t].parameters||[]},l="webhook"===i[t]._type;a.forEach((a=>{if(i[t][a]){const i=e.paths[t][a],c=i.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substr(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var d,u;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=o.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(st,"-")}`,name:r,description:(null===(d=p)||void 0===d?void 0:d.description)||"",headers:null!==(u=p)&&void 0!==u&&u.description?bt(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},o.push(c));let h=(i.summary||i.description||`${a.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let f=[];if(f=n?i.parameters?n.filter((e=>{if(!i.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(i.parameters):n.slice(0):i.parameters?i.parameters.slice(0):[],i.callbacks)for(const[e,t]of Object.entries(i.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];i.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:i.summary||"",description:i.description||"",externalDocs:i.externalDocs,shortSummary:h,method:a,path:t,operationId:i.operationId,elementId:`${a}-${t.replace(st,"-")}`,servers:i.servers?s.servers.concat(i.servers):s.servers,parameters:f,requestBody:i.requestBody,responses:i.responses,callbacks:i.callbacks,deprecated:i.deprecated,security:i.security,xBadges:i["x-badges"]||void 0,xCodeSamples:i["x-codeSamples"]||i["x-code-samples"]||""})}))}}))}const s=o.filter((e=>e.paths&&e.paths.length>0));return s.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>a.indexOf(e.method).toString().localeCompare(a.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),n?s.sort(((e,t)=>e.name.localeCompare(t.name))):s}(d,a,r,n),g=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(st,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,o=r;switch(r){case"schemas":o="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":o="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":o="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":o="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":o="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":o="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":o="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":o="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":o="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:o=r,a=r}const i={show:!0,name:o,description:a,subComponents:n};t.push(i)}return t||[]}(d),y=null!==(c=d.info)&&void 0!==c&&c.description?bt(d.info.description):[],v=[];if(null!==(p=d.components)&&void 0!==p&&p.securitySchemes){const e=new Set;Object.entries(d.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),v.push(r)}}))}o&&i&&s&&v.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:o,in:i,value:s,finalKeyValue:s}),v.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let b=[];d.servers&&Array.isArray(d.servers)?(d.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),l&&d.servers.push({url:l,computedUrl:l})):l?d.servers=[{url:l,computedUrl:l}]:window.location.origin.startsWith("http")?d.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:d.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],b=d.servers;return{specLoadError:!1,isSpecLoading:!1,info:d.info,infoDescriptionHeaders:y,tags:m,components:g,externalDocs:d.externalDocs,securitySchemes:v,servers:b}}function bt(e){const t=Ze.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const xt=2,wt=e=>(...t)=>({_$litDirective$:e,values:t});class $t{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class St extends $t{constructor(e){if(super(e),this.et=z,e.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||null==e)return this.ft=void 0,this.et=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}St.directiveName="unsafeHTML",St.resultType=1;const Et=wt(St);var kt=r(212),At=r.n(kt);function _t(e){if(void 0===e)return"";if(null===e)return"null";if(""===e)return"∅";if("boolean"==typeof e||"number"==typeof e)return`${e}`;if(Array.isArray(e))return e.map((e=>null===e?"null":""===e?"∅":e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||"")).join(", ");if("object"==typeof e){const t=Object.keys(e);return`{ ${t[0]}:${e[t[0]]}${t.length>1?",":""} ... }`}return e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||""}function Ot(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else e.type?(t=Array.isArray(e.type)?e.type.join(2===e.length?" or ":"┃"):e.type,(e.format||e.enum||e.const)&&(t=t.replace("string",e.enum?"enum":e.const?"const":e.format)),e.nullable&&(t+="┃null")):t=e.const?"const":0===Object.keys(e).length?"any":"{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",examples:e.examples||e.example,default:_t(e.default),description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"!==n.type&&"any"!==n.type||(n.description=n.description||""),n.allowedValues=e.const?e.const:Array.isArray(e.enum)?e.enum.map((e=>_t(e))).join("┃"):"","array"===t&&e.items){var a,o;const t=null===(a=e.items)||void 0===a?void 0:a.type,r=_t(e.items.default);n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=e.items.const?e.const:Array.isArray(null===(o=e.items)||void 0===o?void 0:o.enum)?e.items.enum.map((e=>_t(e))).join("┃"):""}return t.match(/integer|number/g)&&(void 0===e.minimum&&void 0===e.exclusiveMinimum||(r+=void 0!==e.minimum?`Min ${e.minimum}`:`More than ${e.exclusiveMinimum}`),void 0===e.maximum&&void 0===e.exclusiveMaximum||(r+=void 0!==e.maximum?`${r?"┃":""}Max ${e.maximum}`:`${r?"┃":""}Less than ${e.exclusiveMaximum}`),void 0!==e.multipleOf&&(r+=`${r?"┃":""} multiple of ${e.multipleOf}`)),t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`${r?"┃":""}${e.minLength} to ${e.maxLength} chars`:void 0!==e.minLength?r+=`${r?"┃":""}Min ${e.minLength} chars`:void 0!==e.maxLength&&(r+=`Max ${r?"┃":""}${e.maxLength} chars`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function Pt(e){return"boolean"==typeof e||"number"==typeof e?{Example:{value:`${e}`}}:""===e?{Example:{value:""}}:e?{Example:{value:e}}:e}function Tt(e,t="string"){if(!e)return{exampleVal:"",exampleList:[]};if(e.constructor===Object){const t=Object.values(e).filter((e=>!1!==e["x-example-show-value"])).map((e=>({value:"boolean"==typeof e.value||"number"==typeof e.value?`${e.value}`:e.value||"",printableValue:_t(e.value),summary:e.summary||"",description:e.description||""})));return{exampleVal:t.length>0?t[0].value:"",exampleList:t}}if(Array.isArray(e)||(e=e?[e]:[]),0===e.length)return{exampleVal:"",exampleList:[]};if("array"===t){const[t]=e,r=e.map((e=>({value:e,printableValue:_t(e)})));return{exampleVal:t,exampleList:r}}const r=e[0].toString(),n=e.map((e=>({value:e.toString(),printableValue:_t(e)})));return{exampleVal:r,exampleList:n}}function jt(e){const t=e.examples?e.examples[0]:null===e.example?null:e.example||void 0;if(""===t)return"";if(null===t)return null;if(0===t)return 0;if(!1===t)return!1;if(t instanceof Date)switch(e.format.toLowerCase()){case"date":return t.toISOString().split("T")[0];case"time":return t.toISOString().split("T")[1];default:return t.toISOString()}if(t)return t;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;if(!1===e.const||0===e.const||null===e.const||""===e.const)return e.const;if(e.const)return e.const;const r=Array.isArray(e.type)?e.type[0]:e.type;if(!r)return"?";if(r.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),a=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(r.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=a?t:a%t==0?a:Math.ceil(a/t)*t:a}if(r.match(/^boolean/g))return!1;if(r.match(/^null/g))return null;if(r.match(/^string/g)){if(e.enum)return e.enum[0];if(e.const)return e.const;if(e.pattern)return e.pattern;if(!e.format){const t=Number.isNaN(e.minLength)?void 0:Number(e.minLength),r=Number.isNaN(e.maxLength)?void 0:Number(e.maxLength),n=t||(r>6?6:r||void 0);return n?"A".repeat(n):"string"}{const t=`${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);switch(e.format.toLowerCase()){case"url":case"uri":return"http://example.com";case"date":return new Date(0).toISOString().split("T")[0];case"time":return new Date(0).toISOString().split("T")[1];case"date-time":return new Date(0).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return[t.substr(0,8),t.substr(8,4),`4000-8${t.substr(13,3)}`,t.substr(16,12)].join("-");default:return""}}}return"?"}function Rt(e,t=1){const r=" ".repeat(t);let n="";if(1===t&&"object"!=typeof e)return`\n${r}${e.toString()}`;for(const a in e){const o=e[a]["::XML_TAG"]||a;let i="";i=Array.isArray(e[a])?o[0]["::XML_TAG"]||`${a}`:o,a.startsWith("::")||(n=Array.isArray(e[a])||"object"==typeof e[a]?`${n}\n${r}<${i}>${Rt(e[a],t+1)}\n${r}`:`${n}\n${r}<${i}>${e[a].toString()}`)}return n}function Ct(e,t){var r,n;if("object"==typeof t&&null!==t){var a,o;if(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description),null!==(r=e.xml)&&void 0!==r&&r.name)t["::XML_TAG"]=null===(a=e.xml)||void 0===a?void 0:a.name;if(null!==(n=e.xml)&&void 0!==n&&n.wrapped)t["::XML_WRAP"]=null===(o=e.xml)||void 0===o?void 0:o.wrapped.toString()}}function It(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"],delete e["::XML_TAG"],delete e["::XML_WRAP"];for(const t in e)It(e[t])}}function Dt(e,t,r){for(const n in t)t[n][r]=e}function Mt(e,t,r){let n=0;const a={};for(const o in e){for(const i in r)if(a[`example-${n}`]={...e[o]},a[`example-${n}`][t]=r[i],n++,n>=10)break;if(n>=10)break}return a}function Lt(e,t={}){let r={};if(e){if(e.allOf){var n,a;const o={};if(!(1!==e.allOf.length||null!==(n=e.allOf[0])&&void 0!==n&&n.properties||null!==(a=e.allOf[0])&&void 0!==a&&a.items)){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){return jt(e.allOf[0])}return}e.allOf.forEach((e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Lt(e,t);Object.assign(o,r)}else if("array"===e.type||e.items){const r=[Lt(e,t)];Object.assign(o,r)}else{if(!e.type)return"";{const t=`prop${Object.keys(o).length}`;o[t]=jt(e)}}})),r=o}else if(e.oneOf){const n={};if(e.properties)for(const r in e.properties){var o;e.properties[r].properties||null!==(o=e.properties[r].properties)&&void 0!==o&&o.items?n[r]=Lt(e.properties[r],t):n[r]=jt(e.properties[r])}if(e.oneOf.length>0){let a=0;for(const o in e.oneOf){const i=Lt(e.oneOf[o],t);for(const t in i){let s;if(Object.keys(n).length>0){if(null===i[t]||"object"!=typeof i[t])continue;s=Object.assign(i[t],n)}else s=i[t];r[`example-${a}`]=s,Ct(e.oneOf[o],r[`example-${a}`]),a++}}}}else if(e.anyOf){let n;if("object"===e.type||e.properties){n={"example-0":{}};for(const r in e.properties){if(e.example){n=e;break}e.properties[r].deprecated&&!t.includeDeprecated||(e.properties[r].readOnly&&!t.includeReadOnly||e.properties[r].writeOnly&&!t.includeWriteOnly||(n=Mt(n,r,Lt(e.properties[r],t))))}}let a=0;for(const o in e.anyOf){const i=Lt(e.anyOf[o],t);for(const t in i){if(void 0!==n)for(const e in n)r[`example-${a}`]={...n[e],...i[t]};else r[`example-${a}`]=i[t];Ct(e.anyOf[o],r[`example-${a}`]),a++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},Ct(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(const n in e.properties){var i,s,l,c,p,d,u;if(null===(i=e.properties[n])||void 0===i||!i.deprecated||t.includeDeprecated)if(null===(s=e.properties[n])||void 0===s||!s.readOnly||t.includeReadOnly)if(null===(l=e.properties[n])||void 0===l||!l.writeOnly||t.includeWriteOnly)if("array"===(null===(c=e.properties[n])||void 0===c?void 0:c.type)||null!==(p=e.properties[n])&&void 0!==p&&p.items)if(e.properties[n].example)Dt(e.properties[n].example,r,n);else if(null!==(d=e.properties[n])&&void 0!==d&&null!==(u=d.items)&&void 0!==u&&u.example)Dt([e.properties[n].items.example],r,n);else{const a=Lt(e.properties[n].items,t);if(t.useXmlTagForProp){var h,f;const t=(null===(h=e.properties[n].xml)||void 0===h?void 0:h.name)||n;if(null!==(f=e.properties[n].xml)&&void 0!==f&&f.wrapped){r=Mt(r,t,JSON.parse(`{ "${t}" : { "${t}" : ${JSON.stringify(a["example-0"])} } }`))}else r=Mt(r,t,a)}else{const e=[];for(const t in a)e[t]=[a[t]];r=Mt(r,n,e)}}else r=Mt(r,n,Lt(e.properties[n],t))}else{if("array"!==e.type&&!e.items)return{"example-0":jt(e)};var m;if(e.items||e.example)if(e.example)r["example-0"]=e.example;else if(null!==(m=e.items)&&void 0!==m&&m.example)r["example-0"]=[e.items.example];else{const n=Lt(e.items,t);let a=0;for(const t in n)r[`example-${a}`]=[n[t]],Ct(e.items,r[`example-${a}`]),a++}else r["example-0"]=[]}return r}}function Nt(e,t=0){var r;let n=(e.description||e.title)&&(e.minItems||e.maxItems)?'':"";if(e.title?n=e.description?`${n} ${e.title}: ${e.description}
    `:`${n} ${e.title}
    `:e.description&&(n=`${n} ${e.description}
    `),e.minItems&&(n=`${n} Min Items: ${e.minItems}`),e.maxItems&&(n=`${n} Max Items: ${e.maxItems}`),t>0&&null!==(r=e.items)&&void 0!==r&&r.description){let t="";e.items.minProperties&&(t=`Min Properties: ${e.items.minProperties}`),e.items.maxProperties&&(t=`${t} Max Properties: ${e.items.maxProperties}`),n=`${n} ⮕ ${t} [ ${e.items.description} ] `}return n}function Ft(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${Ot(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",o=Ft(e,{},r+1,a);Object.assign(n,o)}else if("array"===e.type||e.items){const t=Ft(e,{},r+1);Object.assign(n,t)}else{if(!e.type)return"";{const t=`prop${Object.keys(n).length}`,r=Ot(e);n[t]=`${r.html}`}}})),t=n}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1)}const a={},o=e.anyOf?"anyOf":"oneOf";e[o].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Ft(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=Ft(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${Ot(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="object"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),i=[],s=[];let l;var a;if(n.type.forEach((e=>{var t,r;e.match(/integer|number|string|null|boolean/g)?i.push(e):"array"===e&&"string"==typeof(null===(t=n.items)||void 0===t?void 0:t.type)&&null!==(r=n.items)&&void 0!==r&&r.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?i.push(`[${n.items.format}]`):i.push(`[${n.items.type}]`):s.push(e)})),i.length>0)if(n.type=i.join(2===i.length?" or ":"┃"),l=Ot(n),0===s.length)return`${(null===(a=l)||void 0===a?void 0:a.html)||""}`;if(s.length>0){var o;t["::type"]="object";const a={"::type":"xxx-of-option"};s.forEach(((t,o)=>{if("null"===t)a[`::OPTION~${o+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=Ot(n);a[`::OPTION~${o+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1);a[`::OPTION~${o+1}`]=t}else"array"===t&&(a[`::OPTION~${o+1}`]={"::title":e.title||"","::description":e.description||"","::type":"array","::props":Ft(e.items,{},r+1)})})),a[`::OPTION~${s.length+1}`]=(null===(o=l)||void 0===o?void 0:o.html)||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=Nt(e,r),t["::type"]="object",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="object or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ft(e.properties[n],{},r+1):t[n]=Ft(e.properties[n],{},r+1);for(const n in e.patternProperties)t[`[pattern: ${n}]`]=Ft(e.patternProperties[n],t,r+1);e.additionalProperties&&(t["[any-key]"]=Ft(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=Ot(e);return null!=t&&t.html?`${t.html}`:""}var i;t["::title"]=e.title||"",t["::description"]=Nt(e,r),t["::type"]="array",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="array or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"",null!==(i=e.items)&&void 0!==i&&i.items&&(t["::array-type"]=e.items.items.type),t["::props"]=Ft(e.items,{},r+1)}return t}}function Ut(e,t,r="",n="",a=!0,o=!0,i="json",s=!1){const l=[];if(r)for(const e in r){let n="",a="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)n="string"==typeof r[e].value?r[e].value:JSON.stringify(r[e].value,void 0,2),a="text";else if(n=r[e].value,"string"==typeof r[e].value)try{const t=r[e].value;n=JSON.parse(t),a="json"}catch(t){a="text",n=r[e].value}}else n=r[e].value,a="text";l.push({exampleId:e,exampleSummary:r[e].summary||e,exampleDescription:r[e].description||"",exampleType:t,exampleValue:n,exampleFormat:a})}else if(n){let e="",r="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)e="string"==typeof n?n:JSON.stringify(n,void 0,2),r="text";else if("object"==typeof n)e=n,r="json";else if("string"==typeof n)try{e=JSON.parse(n),r="json"}catch(t){r="text",e=n}}else e=n,r="text";l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e,exampleFormat:r})}if(0===l.length||!0===s)if(e)if(e.example)l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e.example,exampleFormat:null!=t&&t.toLowerCase().includes("json")&&"object"==typeof e.example?"json":"text"});else if(null!=t&&t.toLowerCase().includes("json")||null!=t&&t.toLowerCase().includes("text")||null!=t&&t.toLowerCase().includes("*/*")||null!=t&&t.toLowerCase().includes("xml")){let r="",n="",s="",d="";var c,p;if(null!=t&&t.toLowerCase().includes("xml"))r=null!==(c=e.xml)&&void 0!==c&&c.name?`<${e.xml.name} ${e.xml.namespace?`xmlns="${e.xml.namespace}"`:""}>`:"",n=null!==(p=e.xml)&&void 0!==p&&p.name?``:"",s="text";else s=i;const u=Lt(e,{includeReadOnly:a,includeWriteOnly:o,deprecated:!0,useXmlTagForProp:null==t?void 0:t.toLowerCase().includes("xml")});let h=0;for(const e in u){if(!u[e])continue;const a=u[e]["::TITLE"]||"Example "+ ++h,o=u[e]["::DESCRIPTION"]||"";null!=t&&t.toLowerCase().includes("xml")?d=`\n${r}${Rt(u[e],1)}\n${n}`:(It(u[e]),d="text"===i?JSON.stringify(u[e],null,2):u[e]),l.push({exampleId:e,exampleSummary:a,exampleDescription:o,exampleType:t,exampleFormat:s,exampleValue:d})}}else null!=t&&t.toLowerCase().includes("jose")?l.push({exampleId:"Example",exampleSummary:"Base64 Encoded",exampleDescription:"",exampleType:t,exampleValue:e.pattern||"bXJpbg==",exampleFormat:"text"}):l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});else l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});return l}function qt(e){return"application/json"===e?"json":"application/xml"===e?"xml":null}function Bt(e){if(e.schema)return[e.schema,null,null];if(e.content)for(const t of Object.keys(e.content))if(e.content[t].schema)return[e.content[t].schema,qt(t),e.content[t]];return[null,null,null]}var Ht=r(5108);function zt(e){let t=this.path;const r=[],n=[...e.querySelectorAll("[data-ptype='path']")],a=[...e.querySelectorAll("[data-ptype='query']")],o=[...e.querySelectorAll("[data-ptype='query-object']")];n.map((e=>{t=t.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value))}));const i=new Map,s=[];a.length>0&&a.forEach((e=>{const t=new URLSearchParams;if("true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"false"===e.dataset.array)""!==e.value&&(r.push({name:e.dataset.pname,value:e.value}),t.append(e.dataset.pname,e.value));else{const{paramSerializeStyle:n,paramSerializeExplode:a}=e.dataset;let o=e.value&&Array.isArray(e.value)?e.value:[];o=Array.isArray(o)?o.filter((e=>""!==e)):[],o.length>0&&("spaceDelimited"===n?(r.push({name:e.dataset.pname,value:o.join(" ").replace(/^\s|\s$/g,"")}),t.append(e.dataset.pname,o.join(" ").replace(/^\s|\s$/g,""))):"pipeDelimited"===n?(r.push({name:e.dataset.pname,value:o.join("|").replace(/^\||\|$/g,"")}),t.append(e.dataset.pname,o.join("|").replace(/^\||\|$/g,""))):"true"===a?o.forEach((n=>{r.push({name:e.dataset.pname,value:n}),t.append(e.dataset.pname,n)})):(r.push({name:e.dataset.pname,value:o.join(",").replace(/^,|,$/g,"")}),t.append(e.dataset.pname,o.join(",").replace(/^,|,$/g,""))))}t.toString()&&i.set(e.dataset.pname,t)})),o.length>0&&o.map((e=>{const t=new URLSearchParams;try{let n={};const{paramSerializeStyle:a,paramSerializeExplode:o,pname:i}=e.dataset;if(n=Object.assign(n,JSON.parse(e.value.replace(/\s+/g," "))),"true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"json xml".includes(a))"json"===a?(r.push({name:e.dataset.pname,value:JSON.stringify(n)}),t.append(e.dataset.pname,JSON.stringify(n))):"xml"===a&&(r.push({name:e.dataset.pname,value:Rt(n)}),t.append(e.dataset.pname,Rt(n)));else for(const e in n){const s=`${i}[${e}]`;"object"==typeof n[e]?Array.isArray(n[e])&&("spaceDelimited"===a?(r.push({name:s,value:n[e].join(" ")}),t.append(s,n[e].join(" "))):"pipeDelimited"===a?(r.push({name:s,value:n[e].join("|")}),t.append(s,n[e].join("|"))):"true"===o?n[e].forEach((e=>{r.push({name:s,value:e}),t.append(s,e)})):(r.push({name:s,value:n[e]}),t.append(s,n[e]))):(r.push({name:s,value:n[e]}),t.append(s,n[e]))}}catch(t){Ht.log("RapiDoc: unable to parse %s into object",e.value)}t.toString()&&i.set(e.dataset.pname,t)}));let l="";return i.size&&(i.forEach(((e,t)=>{s.includes(t)?(l+=`${t}=`,l+=e.getAll(t).join(`&${t}=`),l+="&"):l+=`${e.toString()}&`})),l=l.slice(0,-1)),0!==l.length&&(t=`${t}${t.includes("?")?"&":"?"}${l}`),this.api_keys.filter((e=>"query"===e.in)).forEach((e=>{t=`${t}${t.includes("?")?"&":"?"}${e.name}=${encodeURIComponent(e.finalKeyValue)}`})),t=`${this.selectedServer.computedUrl.replace(/\/$/,"")}${t}`,{fetchUrl:t,queryString:r}}function Wt(e){const t={method:this.method.toUpperCase()},r={mimeType:""},n=e.querySelector(".request-body-container"),a=n?n.dataset.selectedRequestBodyType:"";if(n)if(a.includes("form-urlencoded")){const n=e.querySelector("[data-ptype='dynamic-form']");if(n){const e=n.value,a=new URLSearchParams;let o,i=!0;if(e)try{o=JSON.parse(e)}catch(e){i=!1,Ht.warn("RapiDoc: Invalid JSON provided",e)}else i=!1;if(i){for(const e in o)a.append(e,JSON.stringify(o[e]));t.body=a,r.params=a}}else{const n=[...e.querySelectorAll("[data-ptype='form-urlencode']")],a=new URLSearchParams,o=[];n.filter((e=>"file"!==e.type)).forEach((e=>{if("false"===e.dataset.array)e.value&&(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value}));else{const t=e.value&&Array.isArray(e.value)?e.value.join(","):"";a.append(e.dataset.pname,t),o.push({name:e.dataset.pname,value:t})}})),t.body=a,r.params=o}}else if(a.includes("form-data")){const n=new FormData,a=[];[...e.querySelectorAll("[data-ptype='form-data']")].forEach((e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(n.append(e.dataset.pname,e.files[0],e.files[0].name),a.push({name:e.dataset.pname,value:e.files[0],fileName:e.files[0].name})):e.value&&(n.append(e.dataset.pname,e.value),a.push({name:e.dataset.pname,value:e.value})):e.value&&Array.isArray(e.value)&&(n.append(e.dataset.pname,e.value.join(",")),a.push({name:e.dataset.pname,value:e.value.join(",")}))})),t.body=n,r.params=a}else if(/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(a)){const r=e.querySelector(".request-body-param-file");null!=r&&r.files[0]&&(t.body=r.files[0])}else if(a.includes("json")||a.includes("xml")||a.includes("text")){const n=e.querySelector(".request-body-param-user-input");if(null!=n&&n.value){if(t.body=n.value,a.includes("json"))try{r.text=JSON.stringify(JSON.parse(n.value))}catch(e){}r.text&&0===r.text.length&&(r.text=n.value.replace(/'/g,"'\"'\"'"))}}return n&&(r.mimeType=a),{fetchOptions:t,postData:r}}function Vt(e){var t;let r="",n="";const a=new Headers,o=[],i=e.querySelector(".request-body-container"),s=[...e.querySelectorAll("[data-ptype='header']")],l=null===(t=this.closest(".expanded-req-resp-container, .req-resp-container"))||void 0===t?void 0:t.getElementsByTagName("api-response")[0],c=null==l?void 0:l.selectedMimeType;return s.map((e=>{e.value&&("Accept"===e.dataset.pname?r=e.value:"Content-Type"===e.dataset.pname?n=e.value:(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value})))})),r?(a.append("Accept",r),o.push({name:"Accept",value:r})):c?(a.append("Accept",c),o.push({name:"Accept",value:c})):this.accept&&(a.append("Accept",this.accept),o.push({name:"Accept",value:this.accept})),n?(a.append("Content-Type",n),o.push({name:"Content-Type",value:n})):i&&(a.append("Content-Type",i.dataset.selectedRequestBodyType),o.push({name:"Content-Type",value:i.dataset.selectedRequestBodyType})),this.resolvedSpec.securitySchemes.forEach((e=>{a.append(e.name,e.value),o.push({name:e.name,value:e.value})})),{reqHeaders:a,headers:o}}function Zt(e){return e=e.replace(/\/?%7B/gm,"{").replace(/\/?%7D/gm,"}")}function Gt(e){const t=e.closest(".request-panel"),{fetchUrl:r,queryString:n}=zt.call(this,t),{fetchOptions:a,postData:o}=Wt.call(this,t),{reqHeaders:i,headers:s}=Vt.call(this,t),l=new(At())({method:this.method,url:r,queryString:n,headers:s,postData:o});l.requests[0].url=Zt(l.requests[0].url),l.requests[0].fullUrl=Zt(l.requests[0].fullUrl);const c=l.convert(this.selectedLanguage,{indent:"\t"});return this.codeExample=c,{fetchUrl:r,fetchOptions:a,reqHeaders:i}}var Kt=r(8764).Buffer,Yt=r(5108);const Jt="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",Xt="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",Qt="rapidoc";function er(e,t="",r="",n=""){var a,o;const i=null===(a=this.resolvedSpec.securitySchemes)||void 0===a?void 0:a.find((t=>t.securitySchemeId===e));if(!i)return!1;let s="";if("basic"===(null===(o=i.scheme)||void 0===o?void 0:o.toLowerCase()))t&&(s=`Basic ${Kt.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(n){var l;i.value=n,s=`${"bearer"===(null===(l=i.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${n}`}return!!s&&(i.finalKeyValue=s,this.requestUpdate(),!0)}function tr(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function rr(){return JSON.parse(localStorage.getItem(Qt))||{}}function nr(e){localStorage.setItem(Qt,JSON.stringify(e))}function ar(){const e=rr.call(this);Object.values(e).forEach((e=>{er.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function or(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const n=this.shadowRoot.getElementById(`security-scheme-${e}`);if(n){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=n.querySelector(".api-key-user").value.trim(),r=n.querySelector(".api-key-password").value.trim();er.call(this,e,t,r)}else t=n.querySelector(".api-key-input").value.trim(),er.call(this,e,"","",t);if("true"===this.persistAuth){const t=rr.call(this);t[e]=r,nr.call(this,t)}}}}function ir(e,t,r="Bearer"){const n=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));n.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function sr(e,t,r,n,a,o,i,s,l="header",c=null,p=null,d=null){const u=s?s.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,f=new Headers;h.append("grant_type",a),"authorization_code"===a&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==a&&"password"!==a&&h.append("redirect_uri",n),o&&(h.append("code",o),h.append("code_verifier",Jt)),"header"===l?f.set("Authorization",`Basic ${Kt.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==a&&(h.append("client_id",t),h.append("client_secret",r)),"password"===a&&(h.append("username",p),h.append("password",d)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:f,body:h}),r=await t.json();if(!t.ok)return u&&(u.innerHTML=`${r.error_description||r.error_description||"Unable to get access token"}`),!1;if(r.token_type&&r.access_token)return ir.call(this,i,r.access_token,r.token_type),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}async function lr(e,t,r,n,a,o,i,s,l,c){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||Yt.warn("RapiDoc: Received no data with authorization message"),e.data.error&&Yt.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?sr.call(this,r,n,a,o,i,e.data.code,l,c,s):"token"===e.data.responseType&&ir.call(this,l,e.data.access_token,e.data.token_type)))}async function cr(e,t,r,n,a){const o=a.target.closest(".oauth-flow"),i=o.querySelector(".oauth-client-id")?o.querySelector(".oauth-client-id").value.trim():"",s=o.querySelector(".oauth-client-secret")?o.querySelector(".oauth-client-secret").value.trim():"",l=o.querySelector(".api-key-user")?o.querySelector(".api-key-user").value.trim():"",c=o.querySelector(".api-key-password")?o.querySelector(".api-key-password").value.trim():"",p=o.querySelector(".oauth-send-client-secret-in")?o.querySelector(".oauth-send-client-secret-in").value.trim():"header",d=[...o.querySelectorAll(".scope-checkbox:checked")],u=o.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let g,y="",v="";if([...o.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const a=new URL(r);"authorizationCode"===t?(y="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(a.search),c=d.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",i),l.set("redirect_uri",m.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",f),u&&u.checked&&(l.set("code_challenge",Xt),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),a.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{g=window.open(a.toString()),g?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>lr.call(this,t,g,n,i,s,m.toString(),y,p,e,o)),{once:!0})):Yt.error(`RapiDoc: Unable to open ${a.toString()} in a new window`)}),10)}else if("clientCredentials"===t){y="client_credentials";const t=d.map((e=>e.value)).join(" ");sr.call(this,n,i,s,m.toString(),y,"",e,o,p,t)}else if("password"===t){y="password";const t=d.map((e=>e.value)).join(" ");sr.call(this,n,i,s,m.toString(),y,"",e,o,p,t,l,c)}}function pr(e,t,r,n,a,o=[],i="header"){let{authorizationUrl:s,tokenUrl:l,refreshUrl:c}=a;const p=a["x-pkce-only"]||!1,d=e=>e.indexOf("://")>0||0===e.indexOf("//"),u=new URL(this.selectedServer.computedUrl).origin;let h;return c&&!d(c)&&(c=`${u}/${c.replace(/^\//,"")}`),l&&!d(l)&&(l=`${u}/${l.replace(/^\//,"")}`),s&&!d(s)&&(s=`${u}/${s.replace(/^\//,"")}`),h="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,B` +`;var it=r(5108);const st=/[\s#:?&={}]/g,lt="_rapidoc_api_key";function ct(e){return new Promise((t=>setTimeout(t,e)))}function pt(e,t){const r=t.target.closest("button"),n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerHTML='\n \n \n ',setTimeout((()=>{r.innerHTML='\n \n \n \n '}),5e3)}catch(e){it.error("Unable to copy",e)}document.body.removeChild(n)}function dt(e,t,r="includes"){if("includes"===r){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}return new RegExp(`^${e}$`,"i").test(`${t.method} ${t.path}`)}function ut(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var n;if(t.add(r),e[r].properties)ut(e[r].properties,t);else if(null!==(n=e[r].items)&&void 0!==n&&n.properties){var a;ut(null===(a=e[r].items)||void 0===a?void 0:a.properties,t)}})),t):t}function ht(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function ft(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}var mt=r(9682),gt=r.n(mt),yt=r(5108);async function vt(e,t,r=!1,n=!1,a="",o="",i="",s="",l=""){var c,p;let d,u;try{var h,f;if(this.requestUpdate(),t)u=JSON.parse(t);else{const t=await gt().dereference(e);u=await gt().parse(t)}if(null!==(h=u)&&void 0!==h&&h.jsonSchemaViewer&&null!==(f=u)&&void 0!==f&&f.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:u.resolvedSpec}}));const e=Object.entries(u.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(st,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:u.resolvedSpec.info,schemaAndExamples:e}}if(!u||!(u.components||u.info||u.servers||u.tags||u.paths))return yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",u),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:"Unable to load the Spec",version:" "},tags:[]};d=u,this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:d}}))}catch(e){yt.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const m=function(e,t,r=!1,n=!1){const a=["get","put","post","delete","patch","head","options"],o=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(st,"-")}`,name:e.name,description:e.description||"",headers:e.description?bt(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],i=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",i[t]=r;for(const t in i){const n=i[t].parameters,s={servers:i[t].servers||[],parameters:i[t].parameters||[]},l="webhook"===i[t]._type;a.forEach((a=>{if(i[t][a]){const i=e.paths[t][a],c=i.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substr(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var d,u;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=o.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(st,"-")}`,name:r,description:(null===(d=p)||void 0===d?void 0:d.description)||"",headers:null!==(u=p)&&void 0!==u&&u.description?bt(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},o.push(c));let h=(i.summary||i.description||`${a.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let f=[];if(f=n?i.parameters?n.filter((e=>{if(!i.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(i.parameters):n.slice(0):i.parameters?i.parameters.slice(0):[],i.callbacks)for(const[e,t]of Object.entries(i.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];i.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:i.summary||"",description:i.description||"",externalDocs:i.externalDocs,shortSummary:h,method:a,path:t,operationId:i.operationId,elementId:`${a}-${t.replace(st,"-")}`,servers:i.servers?s.servers.concat(i.servers):s.servers,parameters:f,requestBody:i.requestBody,responses:i.responses,callbacks:i.callbacks,deprecated:i.deprecated,security:i.security,xBadges:i["x-badges"]||void 0,xCodeSamples:i["x-codeSamples"]||i["x-code-samples"]||""})}))}}))}const s=o.filter((e=>e.paths&&e.paths.length>0));return s.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>a.indexOf(e.method).toString().localeCompare(a.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),n?s.sort(((e,t)=>e.name.localeCompare(t.name))):s}(d,a,r,n),g=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(st,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,o=r;switch(r){case"schemas":o="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":o="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":o="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":o="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":o="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":o="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":o="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":o="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":o="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:o=r,a=r}const i={show:!0,name:o,description:a,subComponents:n};t.push(i)}return t||[]}(d),y=null!==(c=d.info)&&void 0!==c&&c.description?bt(d.info.description):[],v=[];let b=[];if(null!==(p=d.components)&&void 0!==p&&p.securitySchemes){var x;b=d.security?d.security:[null===(x=d.components)||void 0===x?void 0:x.securitySchemes];const e=new Set;Object.entries(d.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),v.push(r)}}))}o&&i&&s&&v.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:o,in:i,value:s,finalKeyValue:s}),v.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let w=[];d.servers&&Array.isArray(d.servers)?(d.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),l&&d.servers.push({url:l,computedUrl:l})):l?d.servers=[{url:l,computedUrl:l}]:window.location.origin.startsWith("http")?d.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:d.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],w=d.servers;return{specLoadError:!1,isSpecLoading:!1,info:d.info,infoDescriptionHeaders:y,tags:m,components:g,externalDocs:d.externalDocs,securitySchemes:v,servers:w,security:b}}function bt(e){const t=Ve.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const xt=2,wt=e=>(...t)=>({_$litDirective$:e,values:t});class $t{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class St extends $t{constructor(e){if(super(e),this.et=z,e.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||null==e)return this.ft=void 0,this.et=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}St.directiveName="unsafeHTML",St.resultType=1;const Et=wt(St);function kt(e,t){return!e||e.some((e=>e.hasOwnProperty(t)&&Array.isArray(e[t])&&0===e[t].length))}var At=r(212),_t=r.n(At);function Ot(e){if(void 0===e)return"";if(null===e)return"null";if(""===e)return"∅";if("boolean"==typeof e||"number"==typeof e)return`${e}`;if(Array.isArray(e))return e.map((e=>null===e?"null":""===e?"∅":e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||"")).join(", ");if("object"==typeof e){const t=Object.keys(e);return`{ ${t[0]}:${e[t[0]]}${t.length>1?",":""} ... }`}return e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||""}function Pt(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else e.type?(t=Array.isArray(e.type)?e.type.join(2===e.length?" or ":"┃"):e.type,(e.format||e.enum||e.const)&&(t=t.replace("string",e.enum?"enum":e.const?"const":e.format)),e.nullable&&(t+="┃null")):t=e.const?"const":0===Object.keys(e).length?"any":"{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",examples:e.examples||e.example,default:Ot(e.default),description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"!==n.type&&"any"!==n.type||(n.description=n.description||""),n.allowedValues=e.const?e.const:Array.isArray(e.enum)?e.enum.map((e=>Ot(e))).join("┃"):"","array"===t&&e.items){var a,o;const t=null===(a=e.items)||void 0===a?void 0:a.type,r=Ot(e.items.default);n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=e.items.const?e.const:Array.isArray(null===(o=e.items)||void 0===o?void 0:o.enum)?e.items.enum.map((e=>Ot(e))).join("┃"):""}return t.match(/integer|number/g)&&(void 0===e.minimum&&void 0===e.exclusiveMinimum||(r+=void 0!==e.minimum?`Min ${e.minimum}`:`More than ${e.exclusiveMinimum}`),void 0===e.maximum&&void 0===e.exclusiveMaximum||(r+=void 0!==e.maximum?`${r?"┃":""}Max ${e.maximum}`:`${r?"┃":""}Less than ${e.exclusiveMaximum}`),void 0!==e.multipleOf&&(r+=`${r?"┃":""} multiple of ${e.multipleOf}`)),t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`${r?"┃":""}${e.minLength} to ${e.maxLength} chars`:void 0!==e.minLength?r+=`${r?"┃":""}Min ${e.minLength} chars`:void 0!==e.maxLength&&(r+=`Max ${r?"┃":""}${e.maxLength} chars`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function Tt(e){return"boolean"==typeof e||"number"==typeof e?{Example:{value:`${e}`}}:""===e?{Example:{value:""}}:e?{Example:{value:e}}:e}function jt(e,t="string"){if(!e)return{exampleVal:"",exampleList:[]};if(e.constructor===Object){const t=Object.values(e).filter((e=>!1!==e["x-example-show-value"])).map((e=>({value:"boolean"==typeof e.value||"number"==typeof e.value?`${e.value}`:e.value||"",printableValue:Ot(e.value),summary:e.summary||"",description:e.description||""})));return{exampleVal:t.length>0?t[0].value:"",exampleList:t}}if(Array.isArray(e)||(e=e?[e]:[]),0===e.length)return{exampleVal:"",exampleList:[]};if("array"===t){const[t]=e,r=e.map((e=>({value:e,printableValue:Ot(e)})));return{exampleVal:t,exampleList:r}}const r=e[0].toString(),n=e.map((e=>({value:e.toString(),printableValue:Ot(e)})));return{exampleVal:r,exampleList:n}}function Ct(e){const t=e.examples?e.examples[0]:null===e.example?null:e.example||void 0;if(""===t)return"";if(null===t)return null;if(0===t)return 0;if(!1===t)return!1;if(t instanceof Date)switch(e.format.toLowerCase()){case"date":return t.toISOString().split("T")[0];case"time":return t.toISOString().split("T")[1];default:return t.toISOString()}if(t)return t;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;if(!1===e.const||0===e.const||null===e.const||""===e.const)return e.const;if(e.const)return e.const;const r=Array.isArray(e.type)?e.type[0]:e.type;if(!r)return"?";if(r.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),a=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(r.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=a?t:a%t==0?a:Math.ceil(a/t)*t:a}if(r.match(/^boolean/g))return!1;if(r.match(/^null/g))return null;if(r.match(/^string/g)){if(e.enum)return e.enum[0];if(e.const)return e.const;if(e.pattern)return e.pattern;if(!e.format){const t=Number.isNaN(e.minLength)?void 0:Number(e.minLength),r=Number.isNaN(e.maxLength)?void 0:Number(e.maxLength),n=t||(r>6?6:r||void 0);return n?"A".repeat(n):"string"}{const t=`${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);switch(e.format.toLowerCase()){case"url":case"uri":return"http://example.com";case"date":return new Date(0).toISOString().split("T")[0];case"time":return new Date(0).toISOString().split("T")[1];case"date-time":return new Date(0).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return[t.substr(0,8),t.substr(8,4),`4000-8${t.substr(13,3)}`,t.substr(16,12)].join("-");default:return""}}}return"?"}function Rt(e,t=1){const r=" ".repeat(t);let n="";if(1===t&&"object"!=typeof e)return`\n${r}${e.toString()}`;for(const a in e){const o=e[a]["::XML_TAG"]||a;let i="";i=Array.isArray(e[a])?o[0]["::XML_TAG"]||`${a}`:o,a.startsWith("::")||(n=Array.isArray(e[a])||"object"==typeof e[a]?`${n}\n${r}<${i}>${Rt(e[a],t+1)}\n${r}`:`${n}\n${r}<${i}>${e[a].toString()}`)}return n}function It(e,t){var r,n;if("object"==typeof t&&null!==t){var a,o;if(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description),null!==(r=e.xml)&&void 0!==r&&r.name)t["::XML_TAG"]=null===(a=e.xml)||void 0===a?void 0:a.name;if(null!==(n=e.xml)&&void 0!==n&&n.wrapped)t["::XML_WRAP"]=null===(o=e.xml)||void 0===o?void 0:o.wrapped.toString()}}function Dt(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"],delete e["::XML_TAG"],delete e["::XML_WRAP"];for(const t in e)Dt(e[t])}}function Lt(e,t,r){for(const n in t)t[n][r]=e}function Mt(e,t,r){let n=0;const a={};for(const o in e){for(const i in r)if(a[`example-${n}`]={...e[o]},a[`example-${n}`][t]=r[i],n++,n>=10)break;if(n>=10)break}return a}function Nt(e,t={}){let r={};if(e){if(e.allOf){var n,a;const o={};if(!(1!==e.allOf.length||null!==(n=e.allOf[0])&&void 0!==n&&n.properties||null!==(a=e.allOf[0])&&void 0!==a&&a.items)){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){return Ct(e.allOf[0])}return}e.allOf.forEach((e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Nt(e,t);Object.assign(o,r)}else if("array"===e.type||e.items){const r=[Nt(e,t)];Object.assign(o,r)}else{if(!e.type)return"";{const t=`prop${Object.keys(o).length}`;o[t]=Ct(e)}}})),r=o}else if(e.oneOf){const n={};if(e.properties)for(const r in e.properties){var o;e.properties[r].properties||null!==(o=e.properties[r].properties)&&void 0!==o&&o.items?n[r]=Nt(e.properties[r],t):n[r]=Ct(e.properties[r])}if(e.oneOf.length>0){let a=0;for(const o in e.oneOf){const i=Nt(e.oneOf[o],t);for(const t in i){let s;if(Object.keys(n).length>0){if(null===i[t]||"object"!=typeof i[t])continue;s=Object.assign(i[t],n)}else s=i[t];r[`example-${a}`]=s,It(e.oneOf[o],r[`example-${a}`]),a++}}}}else if(e.anyOf){let n;if("object"===e.type||e.properties){n={"example-0":{}};for(const r in e.properties){if(e.example){n=e;break}e.properties[r].deprecated&&!t.includeDeprecated||(e.properties[r].readOnly&&!t.includeReadOnly||e.properties[r].writeOnly&&!t.includeWriteOnly||(n=Mt(n,r,Nt(e.properties[r],t))))}}let a=0;for(const o in e.anyOf){const i=Nt(e.anyOf[o],t);for(const t in i){if(void 0!==n)for(const e in n)r[`example-${a}`]={...n[e],...i[t]};else r[`example-${a}`]=i[t];It(e.anyOf[o],r[`example-${a}`]),a++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},It(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(const n in e.properties){var i,s,l,c,p,d,u;if(null===(i=e.properties[n])||void 0===i||!i.deprecated||t.includeDeprecated)if(null===(s=e.properties[n])||void 0===s||!s.readOnly||t.includeReadOnly)if(null===(l=e.properties[n])||void 0===l||!l.writeOnly||t.includeWriteOnly)if("array"===(null===(c=e.properties[n])||void 0===c?void 0:c.type)||null!==(p=e.properties[n])&&void 0!==p&&p.items)if(e.properties[n].example)Lt(e.properties[n].example,r,n);else if(null!==(d=e.properties[n])&&void 0!==d&&null!==(u=d.items)&&void 0!==u&&u.example)Lt([e.properties[n].items.example],r,n);else{const a=Nt(e.properties[n].items,t);if(t.useXmlTagForProp){var h,f;const t=(null===(h=e.properties[n].xml)||void 0===h?void 0:h.name)||n;if(null!==(f=e.properties[n].xml)&&void 0!==f&&f.wrapped){r=Mt(r,t,JSON.parse(`{ "${t}" : { "${t}" : ${JSON.stringify(a["example-0"])} } }`))}else r=Mt(r,t,a)}else{const e=[];for(const t in a)e[t]=[a[t]];r=Mt(r,n,e)}}else r=Mt(r,n,Nt(e.properties[n],t))}else{if("array"!==e.type&&!e.items)return{"example-0":Ct(e)};var m;if(e.items||e.example)if(e.example)r["example-0"]=e.example;else if(null!==(m=e.items)&&void 0!==m&&m.example)r["example-0"]=[e.items.example];else{const n=Nt(e.items,t);let a=0;for(const t in n)r[`example-${a}`]=[n[t]],It(e.items,r[`example-${a}`]),a++}else r["example-0"]=[]}return r}}function Ft(e,t=0){var r;let n=(e.description||e.title)&&(e.minItems||e.maxItems)?'':"";if(e.title?n=e.description?`${n} ${e.description}
    `:`${n} ${e.title}
    `:e.description&&(n=`${n} ${e.description}
    `),e.minItems&&(n=`${n} Min Items: ${e.minItems}`),e.maxItems&&(n=`${n} Max Items: ${e.maxItems}`),t>0&&null!==(r=e.items)&&void 0!==r&&r.description){let t="";e.items.minProperties&&(t=`Min Properties: ${e.items.minProperties}`),e.items.maxProperties&&(t=`${t} Max Properties: ${e.items.maxProperties}`),n=`${n} ⮕ ${t} [ ${e.items.description} ] `}return n}function Ut(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${Pt(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",o=Ut(e,{},r+1,a);Object.assign(n,o)}else if("array"===e.type||e.items){const t=Ut(e,{},r+1);Object.assign(n,t)}else{if(!e.type)return"";{const t=`prop${Object.keys(n).length}`,r=Pt(e);n[t]=`${r.html}`}}})),t=n}if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1)}const a={},o=e.anyOf?"anyOf":"oneOf";e[o].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${Pt(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="object"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),i=[],s=[];let l;var a;if(n.type.forEach((e=>{var t,r;e.match(/integer|number|string|null|boolean/g)?i.push(e):"array"===e&&"string"==typeof(null===(t=n.items)||void 0===t?void 0:t.type)&&null!==(r=n.items)&&void 0!==r&&r.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?i.push(`[${n.items.format}]`):i.push(`[${n.items.type}]`):s.push(e)})),i.length>0)if(n.type=i.join(2===i.length?" or ":"┃"),l=Pt(n),0===s.length)return`${(null===(a=l)||void 0===a?void 0:a.html)||""}`;if(s.length>0){var o;t["::type"]="object";const a={"::type":"xxx-of-option"};s.forEach(((t,o)=>{if("null"===t)a[`::OPTION~${o+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=Pt(n);a[`::OPTION~${o+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1);a[`::OPTION~${o+1}`]=t}else"array"===t&&(a[`::OPTION~${o+1}`]={"::title":e.title||"","::description":e.description||"","::type":"array","::props":Ut(e.items,{},r+1)})})),a[`::OPTION~${s.length+1}`]=(null===(o=l)||void 0===o?void 0:o.html)||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=Ft(e,r),t["::type"]="object",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="object or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Ut(e.properties[n],{},r+1):t[n]=Ut(e.properties[n],{},r+1);for(const n in e.patternProperties)t[`[pattern: ${n}]`]=Ut(e.patternProperties[n],t,r+1);e.additionalProperties&&(t["[any-key]"]=Ut(e.additionalProperties,{}))}else if("array"===e.type||e.items){var i;t["::title"]=e.title||"",t["::description"]=Ft(e,r),t["::type"]="array",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="array or null"),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"",null!==(i=e.items)&&void 0!==i&&i.items&&(t["::array-type"]=e.items.items.type),t["::props"]=Ut(e.items,{},r+1)}else if(!e.allOf){const t=Pt(e);return null!=t&&t.html?`${t.html}`:""}return t}}function qt(e,t,r="",n="",a=!0,o=!0,i="json",s=!1){const l=[];if(r)for(const e in r){let n="",a="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)n="string"==typeof r[e].value?r[e].value:JSON.stringify(r[e].value,void 0,2),a="text";else if(n=r[e].value,"string"==typeof r[e].value)try{const t=r[e].value;n=JSON.parse(t),a="json"}catch(t){a="text",n=r[e].value}}else n=r[e].value,a="text";l.push({exampleId:e,exampleSummary:r[e].summary||e,exampleDescription:r[e].description||"",exampleType:t,exampleValue:n,exampleFormat:a})}else if(n){let e="",r="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===i)e="string"==typeof n?n:JSON.stringify(n,void 0,2),r="text";else if("object"==typeof n)e=n,r="json";else if("string"==typeof n)try{e=JSON.parse(n),r="json"}catch(t){r="text",e=n}}else e=n,r="text";l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e,exampleFormat:r})}if(0===l.length||!0===s)if(e)if(e.example)l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e.example,exampleFormat:null!=t&&t.toLowerCase().includes("json")&&"object"==typeof e.example?"json":"text"});else if(null!=t&&t.toLowerCase().includes("json")||null!=t&&t.toLowerCase().includes("text")||null!=t&&t.toLowerCase().includes("*/*")||null!=t&&t.toLowerCase().includes("xml")){let r="",n="",s="",d="";var c,p;if(null!=t&&t.toLowerCase().includes("xml"))r=null!==(c=e.xml)&&void 0!==c&&c.name?`<${e.xml.name} ${e.xml.namespace?`xmlns="${e.xml.namespace}"`:""}>`:"",n=null!==(p=e.xml)&&void 0!==p&&p.name?``:"",s="text";else s=i;const u=Nt(e,{includeReadOnly:a,includeWriteOnly:o,deprecated:!0,useXmlTagForProp:null==t?void 0:t.toLowerCase().includes("xml")});let h=0;for(const e in u){if(!u[e])continue;const a=u[e]["::TITLE"]||"Example "+ ++h,o=u[e]["::DESCRIPTION"]||"";null!=t&&t.toLowerCase().includes("xml")?d=`\n${r}${Rt(u[e],1)}\n${n}`:(Dt(u[e]),d="text"===i?JSON.stringify(u[e],null,2):u[e]),l.push({exampleId:e,exampleSummary:a,exampleDescription:o,exampleType:t,exampleFormat:s,exampleValue:d})}}else null!=t&&t.toLowerCase().includes("jose")?l.push({exampleId:"Example",exampleSummary:"Base64 Encoded",exampleDescription:"",exampleType:t,exampleValue:e.pattern||"bXJpbg==",exampleFormat:"text"}):l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});else l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});return l}function Bt(e){return"application/json"===e?"json":"application/xml"===e?"xml":null}function Ht(e){if(e.schema)return[e.schema,null,null];if(e.content)for(const t of Object.keys(e.content))if(e.content[t].schema)return[e.content[t].schema,Bt(t),e.content[t]];return[null,null,null]}var zt=r(5108);function Wt(e){let t=this.path;const r=[],n=[...e.querySelectorAll("[data-ptype='path']")],a=[...e.querySelectorAll("[data-ptype='query']")],o=[...e.querySelectorAll("[data-ptype='query-object']")];n.map((e=>{t=t.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value))}));const i=new Map,s=[];a.length>0&&a.forEach((e=>{const t=new URLSearchParams;if("true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"false"===e.dataset.array)""!==e.value&&(r.push({name:e.dataset.pname,value:e.value}),t.append(e.dataset.pname,e.value));else{const{paramSerializeStyle:n,paramSerializeExplode:a}=e.dataset;let o=e.value&&Array.isArray(e.value)?e.value:[];o=Array.isArray(o)?o.filter((e=>""!==e)):[],o.length>0&&("spaceDelimited"===n?(r.push({name:e.dataset.pname,value:o.join(" ").replace(/^\s|\s$/g,"")}),t.append(e.dataset.pname,o.join(" ").replace(/^\s|\s$/g,""))):"pipeDelimited"===n?(r.push({name:e.dataset.pname,value:o.join("|").replace(/^\||\|$/g,"")}),t.append(e.dataset.pname,o.join("|").replace(/^\||\|$/g,""))):"true"===a?o.forEach((n=>{r.push({name:e.dataset.pname,value:n}),t.append(e.dataset.pname,n)})):(r.push({name:e.dataset.pname,value:o.join(",").replace(/^,|,$/g,"")}),t.append(e.dataset.pname,o.join(",").replace(/^,|,$/g,""))))}t.toString()&&i.set(e.dataset.pname,t)})),o.length>0&&o.map((e=>{const t=new URLSearchParams;try{let n={};const{paramSerializeStyle:a,paramSerializeExplode:o,pname:i}=e.dataset;if(n=Object.assign(n,JSON.parse(e.value.replace(/\s+/g," "))),"true"===e.dataset.paramAllowReserved&&s.push(e.dataset.pname),"json xml".includes(a))"json"===a?(r.push({name:e.dataset.pname,value:JSON.stringify(n)}),t.append(e.dataset.pname,JSON.stringify(n))):"xml"===a&&(r.push({name:e.dataset.pname,value:Rt(n)}),t.append(e.dataset.pname,Rt(n)));else for(const e in n){const s=`${i}[${e}]`;"object"==typeof n[e]?Array.isArray(n[e])&&("spaceDelimited"===a?(r.push({name:s,value:n[e].join(" ")}),t.append(s,n[e].join(" "))):"pipeDelimited"===a?(r.push({name:s,value:n[e].join("|")}),t.append(s,n[e].join("|"))):"true"===o?n[e].forEach((e=>{r.push({name:s,value:e}),t.append(s,e)})):(r.push({name:s,value:n[e]}),t.append(s,n[e]))):(r.push({name:s,value:n[e]}),t.append(s,n[e]))}}catch(t){zt.log("RapiDoc: unable to parse %s into object",e.value)}t.toString()&&i.set(e.dataset.pname,t)}));let l="";return i.size&&(i.forEach(((e,t)=>{s.includes(t)?(l+=`${t}=`,l+=e.getAll(t).join(`&${t}=`),l+="&"):l+=`${e.toString()}&`})),l=l.slice(0,-1)),0!==l.length&&(t=`${t}${t.includes("?")?"&":"?"}${l}`),this.api_keys.filter((e=>"query"===e.in)).forEach((e=>{t=`${t}${t.includes("?")?"&":"?"}${e.name}=${encodeURIComponent(e.finalKeyValue)}`})),t=`${this.selectedServer.computedUrl.replace(/\/$/,"")}${t}`,{fetchUrl:t,queryString:r}}function Zt(e){const t={method:this.method.toUpperCase()},r={mimeType:""},n=e.querySelector(".request-body-container"),a=n?n.dataset.selectedRequestBodyType:"";if(n)if(a.includes("form-urlencoded")){const n=e.querySelector("[data-ptype='dynamic-form']");if(n){const e=n.value,a=new URLSearchParams;let o,i=!0;if(e)try{o=JSON.parse(e)}catch(e){i=!1,zt.warn("RapiDoc: Invalid JSON provided",e)}else i=!1;if(i){for(const e in o)a.append(e,JSON.stringify(o[e]));t.body=a,r.params=a}}else{const n=[...e.querySelectorAll("[data-ptype='form-urlencode']")],a=new URLSearchParams,o=[];n.filter((e=>"file"!==e.type)).forEach((e=>{if("false"===e.dataset.array)e.value&&(a.append(e.dataset.pname,e.value),o.push({name:e.dataset.pname,value:e.value}));else{const t=e.value&&Array.isArray(e.value)?e.value.join(","):"";a.append(e.dataset.pname,t),o.push({name:e.dataset.pname,value:t})}})),t.body=a,r.params=o}}else if(a.includes("form-data")){const n=new FormData,a=[];[...e.querySelectorAll("[data-ptype='form-data']")].forEach((e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(n.append(e.dataset.pname,e.files[0],e.files[0].name),a.push({name:e.dataset.pname,value:e.files[0],fileName:e.files[0].name})):e.value&&(n.append(e.dataset.pname,e.value),a.push({name:e.dataset.pname,value:e.value})):e.value&&Array.isArray(e.value)&&(n.append(e.dataset.pname,e.value.join(",")),a.push({name:e.dataset.pname,value:e.value.join(",")}))})),t.body=n,r.params=a}else if(/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(a)){const r=e.querySelector(".request-body-param-file");null!=r&&r.files[0]&&(t.body=r.files[0])}else if(a.includes("json")||a.includes("xml")||a.includes("text")){const n=e.querySelector(".request-body-param-user-input");if(null!=n&&n.value){if(t.body=n.value,a.includes("json"))try{r.text=JSON.stringify(JSON.parse(n.value))}catch(e){}r.text&&0===r.text.length&&(r.text=n.value.replace(/'/g,"'\"'\"'"))}}return n&&(r.mimeType=a),{fetchOptions:t,postData:r}}function Vt(e){var t;let r="",n="";const a=[],o=new Headers,i=[],s=e.querySelector(".request-body-container"),l=[...e.querySelectorAll("[data-ptype='header']")],c=null===(t=this.closest(".expanded-req-resp-container, .req-resp-container"))||void 0===t?void 0:t.getElementsByTagName("api-response")[0],p=null==c?void 0:c.selectedMimeType;return l.map((e=>{e.value&&("Accept"===e.dataset.pname?r=e.value:"Content-Type"===e.dataset.pname?n=e.value:(o.append(e.dataset.pname,e.value),i.push({name:e.dataset.pname,value:e.value})))})),r?(o.append("Accept",r),i.push({name:"Accept",value:r})):p?(o.append("Accept",p),i.push({name:"Accept",value:p})):this.accept&&(o.append("Accept",this.accept),i.push({name:"Accept",value:this.accept})),n?(o.append("Content-Type",n),i.push({name:"Content-Type",value:n})):s&&(o.append("Content-Type",s.dataset.selectedRequestBodyType),i.push({name:"Content-Type",value:s.dataset.selectedRequestBodyType})),(this.security?this.security:this.resolvedSpec.security).forEach(((e,t)=>{if(this.selectedAuthScheme===t&&(Object.keys(e).map((e=>{const t=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));kt(this.security,t.securitySchemeId)&&("cookie"!==t.in&&(o.append(t.name,t.value),i.push({name:t.name,value:t.value})),"cookie"===t.in&&a.push({name:t.name,value:t.value}))})),a.length>0)){const e=a.map((e=>`${e.name}=${e.value}`));i.push({name:"Cookie",value:e.join("; path=/")})}})),{reqHeaders:o,headers:i,reqCookieHeader:a}}function Kt(e){const t=[];return[...e.querySelectorAll("[data-ptype='cookie']")].forEach((e=>{e.value&&t.push({name:e.dataset.pname,value:e.value})})),{cookies:t}}function Gt(e){return e=e.replace(/%7B/gm,"{").replace(/%7D/gm,"}")}function Yt(e){const t=e.closest(".request-panel"),{fetchUrl:r,queryString:n}=Wt.call(this,t),{fetchOptions:a,postData:o}=Zt.call(this,t),{reqHeaders:i,headers:s,reqCookieHeader:l}=Vt.call(this,t),{cookies:c}=Kt.call(this,t),p=new(_t())({method:this.method,url:r,queryString:n,headers:s,postData:o,cookies:c});p.requests[0].url=Gt(p.requests[0].url),p.requests[0].fullUrl=Gt(p.requests[0].fullUrl);const d=p.convert(this.selectedLanguage,{indent:"\t"});return this.codeExample=d,{fetchUrl:r,fetchOptions:a,reqHeaders:i,reqCookie:c.concat(l)}}var Jt=r(8764).Buffer,Xt=r(5108);const Qt="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",er="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",tr="rapidoc";function rr(e,t="",r="",n=""){var a,o;const i=null===(a=this.resolvedSpec.securitySchemes)||void 0===a?void 0:a.find((t=>t.securitySchemeId===e));if(!i)return!1;let s="";if("basic"===(null===(o=i.scheme)||void 0===o?void 0:o.toLowerCase()))t&&(s=`Basic ${Jt.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(n){var l;i.value=n,s=`${"bearer"===(null===(l=i.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${n}`}return!!s&&(i.finalKeyValue=s,this.requestUpdate(),!0)}function nr(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function ar(){return JSON.parse(localStorage.getItem(tr))||{}}function or(e){localStorage.setItem(tr,JSON.stringify(e))}function ir(){const e=ar.call(this);Object.values(e).forEach((e=>{rr.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function sr(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const n=this.shadowRoot.getElementById(`security-scheme-${e}`);if(n){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=n.querySelector(".api-key-user").value.trim(),r=n.querySelector(".api-key-password").value.trim();rr.call(this,e,t,r)}else t=n.querySelector(".api-key-input").value.trim(),rr.call(this,e,"","",t);if("true"===this.persistAuth){const t=ar.call(this);t[e]=r,or.call(this,t)}}}}function lr(e,t,r="Bearer"){const n=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));n.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function cr(e,t,r,n,a,o,i,s,l="header",c=null,p=null,d=null){const u=s?s.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,f=new Headers;h.append("grant_type",a),"authorization_code"===a&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==a&&"password"!==a&&h.append("redirect_uri",n),o&&(h.append("code",o),h.append("code_verifier",Qt)),"header"===l?f.set("Authorization",`Basic ${Jt.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==a&&(h.append("client_id",t),h.append("client_secret",r)),"password"===a&&(h.append("username",p),h.append("password",d)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:f,body:h}),r=await t.json();if(!t.ok)return u&&(u.innerHTML=`${r.error_description||r.error_description||"Unable to get access token"}`),!1;if(r.token_type&&r.access_token)return lr.call(this,i,r.access_token,r.token_type),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}async function pr(e,t,r,n,a,o,i,s,l,c){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||Xt.warn("RapiDoc: Received no data with authorization message"),e.data.error&&Xt.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?cr.call(this,r,n,a,o,i,e.data.code,l,c,s):"token"===e.data.responseType&&lr.call(this,l,e.data.access_token,e.data.token_type)))}async function dr(e,t,r,n,a){const o=a.target.closest(".oauth-flow"),i=o.querySelector(".oauth-client-id")?o.querySelector(".oauth-client-id").value.trim():"",s=o.querySelector(".oauth-client-secret")?o.querySelector(".oauth-client-secret").value.trim():"",l=o.querySelector(".api-key-user")?o.querySelector(".api-key-user").value.trim():"",c=o.querySelector(".api-key-password")?o.querySelector(".api-key-password").value.trim():"",p=o.querySelector(".oauth-send-client-secret-in")?o.querySelector(".oauth-send-client-secret-in").value.trim():"header",d=[...o.querySelectorAll(".scope-checkbox:checked")],u=o.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let g,y="",v="";if([...o.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const a=new URL(r);"authorizationCode"===t?(y="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(a.search),c=d.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",i),l.set("redirect_uri",m.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",f),u&&u.checked&&(l.set("code_challenge",er),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),a.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{g=window.open(a.toString()),g?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>pr.call(this,t,g,n,i,s,m.toString(),y,p,e,o)),{once:!0})):Xt.error(`RapiDoc: Unable to open ${a.toString()} in a new window`)}),10)}else if("clientCredentials"===t){y="client_credentials";const t=d.map((e=>e.value)).join(" ");cr.call(this,n,i,s,m.toString(),y,"",e,o,p,t)}else if("password"===t){y="password";const t=d.map((e=>e.value)).join(" ");cr.call(this,n,i,s,m.toString(),y,"",e,o,p,t,l,c)}}function ur(e,t,r,n,a,o=[],i="header"){let{authorizationUrl:s,tokenUrl:l,refreshUrl:c}=a;const p=a["x-pkce-only"]||!1,d=e=>e.indexOf("://")>0||0===e.indexOf("//"),u=new URL(this.selectedServer.computedUrl).origin;let h;return c&&!d(c)&&(c=`${u}/${c.replace(/^\//,"")}`),l&&!d(l)&&(l=`${u}/${l.replace(/^\//,"")}`),s&&!d(s)&&(s=`${u}/${s.replace(/^\//,"")}`),h="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,B`
    ${h}
    ${s?B`
    Auth URL ${s}
    `:""} @@ -1581,82 +1569,95 @@ pre[class*="language-"] { `:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?B` `:""}
    `:""} - `}function dr(e){var t;const r=null===(t=this.resolvedSpec.securitySchemes)||void 0===t?void 0:t.find((t=>t.securitySchemeId===e));if(r.user="",r.password="",r.value="",r.finalKeyValue="","true"===this.persistAuth){const e=rr.call(this);delete e[r.securitySchemeId],nr.call(this,e)}this.requestUpdate()}function ur(e,t,r){""===r?dr.call(this,t):or.call(this,t);const n=this.getRequestPanel(e);Gt.call(this,n)}function hr(){var e;if(!this.resolvedSpec)return"";const t=null===(e=this.resolvedSpec.securitySchemes)||void 0===e?void 0:e.filter((e=>e.finalKeyValue));return t?B` -
    -
    Header Auth
    - + `}function hr(e){var t;const r=null===(t=this.resolvedSpec.securitySchemes)||void 0===t?void 0:t.find((t=>t.securitySchemeId===e));if(r.user="",r.password="",r.value="",r.finalKeyValue="","true"===this.persistAuth){const e=ar.call(this);delete e[r.securitySchemeId],or.call(this,e)}this.requestUpdate()}function fr(e,t,r){""===r?hr.call(this,t):sr.call(this,t);const n=this.getRequestPanel(e);Yt.call(this,n)}function mr(e){const t=parseInt(e.target.value);this.selectedAuthScheme=t}function gr(e){let t="";const r=Object.keys(e),n=r.length,a=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===r[0]));return"apiKey"===a.type?t+=a.in.charAt(0).toUpperCase()+a.in.slice(1)+(n>1?" + "+(n-1):""):"http"===a.type?t+=a.scheme.charAt(0).toUpperCase()+a.scheme.slice(1)+(n>1?" + "+(n-1):""):a.type?t+=a.type.charAt(0).toUpperCase()+a.type.slice(1)+(n>1?" + "+(n-1):""):t+="Authentication",t}function yr(){return B` +
    + +
    `}function vr(){var e;if(!this.resolvedSpec)return"";if(this.security&&0===this.security.length)return"";const t=null===(e=this.resolvedSpec.securitySchemes)||void 0===e?void 0:e.filter((e=>e.finalKeyValue));return t?B` ${this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?B` -
    - ${this.resolvedSpec.securitySchemes.map((e=>B` -
    -
    ${e.name}
    - ${e.description?B` -
    - ${Et(Ze(e.description||""))} -
    `:""} - - ${"apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?B` -
    - ${"cookie"!==e.in?B` - `:B` cookies cannot be set from here`} -
    `:""} - ${"http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?B` -
    - Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    Authentication
    +
    + ${yr.call(this)} +
    + ${this.resolvedSpec.security.map(((e,t)=>B` + ${t===this.selectedAuthScheme?B`
    + ${Object.keys(e).map((e=>{const t=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(kt(this.security,t.securitySchemeId))return B` +
    +
    ${t.name}
    + ${t.description?B` +
    + ${Et(Ve(t.description||""))} +
    `:""} + + ${"apikey"===t.type.toLowerCase()||"http"===t.type.toLowerCase()&&"bearer"===t.scheme.toLowerCase()?B` +
    + +
    `:""} + ${"http"===t.type.toLowerCase()&&"basic"===t.scheme.toLowerCase()?B` +
    + Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    + {const t=this.getRequestPanel(e);Yt.call(this,t)}} + > + {const t=this.getRequestPanel(e);Yt.call(this,t)}} + > + +
    `:""}
    -
    - {const t=this.getRequestPanel(e);Gt.call(this,t)}} - > - {const t=this.getRequestPanel(e);Gt.call(this,t)}} - > - -
    `:""} -
    - ${"oauth2"===e.type.toLowerCase()?B` -
    - ${Object.keys(e.flows).map((t=>pr.call(this,t,e["x-client-id"],e["x-client-secret"],e.securitySchemeId,e.flows[t],e["x-default-scopes"],e["x-receive-token-in"])))} -
    - `:""} - `))} -
    `:""} - - - -
    -`:void 0}function fr(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return Array.isArray(e)?0===e.length?"":(e.forEach((e=>{const r=[],n=[];0===Object.keys(e).length?t.push({securityTypes:"None",securityDefs:[]}):(Object.keys(e).forEach((t=>{let a="";const o=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===t));e[t]&&Array.isArray(e[t])&&(a=e[t].join(", ")),o&&(n.push(o.typeDisplay),r.push({...o,scopes:a}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r}))})),B`
    + ${"oauth2"===t.type.toLowerCase()?B` +
    + ${Object.keys(t.flows).map((e=>ur.call(this,e,t["x-client-id"],t["x-client-secret"],t.securitySchemeId,t.flows[e],t["x-default-scopes"],t["x-receive-token-in"])))} +
    + `:""} + `}))} +
    `:""} + `))} +
    + +
    `:""} +`:void 0}function br(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return Array.isArray(e)?0===e.length?"":(e.forEach((e=>{const r=[],n=[];0===Object.keys(e).length?t.push({securityTypes:"None",securityDefs:[]}):(Object.keys(e).forEach((t=>{let a="";const o=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===t));e[t]&&Array.isArray(e[t])&&(a=e[t].join(", ")),o&&(n.push(o.typeDisplay),r.push({...o,scopes:a}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r}))})),B`
    ${t.map(((e,t)=>B` @@ -1699,12 +1700,12 @@ pre[class*="language-"] { `:""} `))}
    - `):""}return""}function mr(){return B` + `):""}return""}function xr(){return B` -`}function gr(e){return B` +`}function wr(e){return B`
    CODE SAMPLES
    e.classList[e.dataset.tab===t?"add":"remove"]("active"))),n.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}"> @@ -1713,11 +1714,11 @@ pre[class*="language-"] {
    ${e.map(((e,t)=>{var r,n,a;return B`
    - -
    ${Ke().languages[null===(r=e.lang)||void 0===r?void 0:r.toLowerCase()]?Et(Ke().highlight(e.source,Ke().languages[null===(n=e.lang)||void 0===n?void 0:n.toLowerCase()],null===(a=e.lang)||void 0===a?void 0:a.toLowerCase())):e.source}
    + +
    ${Ge().languages[null===(r=e.lang)||void 0===r?void 0:r.toLowerCase()]?Et(Ge().highlight(e.source,Ge().languages[null===(n=e.lang)||void 0===n?void 0:n.toLowerCase()],null===(a=e.lang)||void 0===a?void 0:a.toLowerCase())):e.source}
    `}))} -
    `}function yr(e){return B` + `}function $r(e){return B`
    CALLBACKS
    ${Object.entries(e).map((e=>B`
    @@ -1783,7 +1784,7 @@ pre[class*="language-"] { `))}
    `))} - `}const vr={},br=wt(class extends $t{constructor(){super(...arguments),this.st=vr}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return H}else if(this.st===t)return H;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,r)}});var xr=r(3131),wr=r.n(xr);const $r=c` + `}const Sr={},Er=wt(class extends $t{constructor(){super(...arguments),this.st=Sr}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return H}else if(this.st===t)return H;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,r)}});var kr=r(3131),Ar=r.n(kr);const _r=c` .border-top { border-top:1px solid var(--border-color); } @@ -1804,7 +1805,7 @@ pre[class*="language-"] { .mar-top-8{ margin-top: 8px; } -`,Sr=c` +`,Or=c` .shell-token.shell-function { color: #2953B2; } @@ -1821,7 +1822,7 @@ pre[class*="language-"] { color: var(--green); } -`,Er=c` +`,Pr=c` .node-token.node-builtin { color: #4A4A4A; } @@ -1845,7 +1846,7 @@ pre[class*="language-"] { .node-token.node-property { color: var(--green); } -`,kr=c``,Ar=c``,_r=c` +`,Tr=c``,jr=c``,Cr=c` .json-token.json-boolean { color: #2953B2; } @@ -1869,7 +1870,7 @@ pre[class*="language-"] { .json-token.json-property { color: var(--green); } -`,Or=[Sr,Er,kr,Ar,c` +`,Rr=[Or,Pr,Tr,jr,c` .python-token.python-builtin { color: #4A4A4A; } @@ -1885,7 +1886,7 @@ pre[class*="language-"] { .python-token.python-string { color: var(--green); } -`,_r];customElements.get("json-tree")||customElements.define("json-tree",class extends se{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Ye,$r,Je,c` +`,Cr];customElements.get("json-tree")||customElements.define("json-tree",class extends se{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Ye,_r,Je,c` :host{ display:flex; } @@ -1953,7 +1954,7 @@ pre[class*="language-"] { }`,ot]}render(){return B`
    - +
    ${this.generateTree(this.data,!0)}
    @@ -1967,7 +1968,7 @@ pre[class*="language-"] { `))}
    ${"array"===r?"]":"}"}${t?"":","}
    - `}return"string"==typeof e||e instanceof Date?B`"${e}"${t?"":","}`:B`${e}${t?"":","}`}toggleExpand(e){const t=e.target;e.target.classList.contains("open-bracket")&&(t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{"))}});const Pr=c` + `}return"string"==typeof e||e instanceof Date?B`"${e}"${t?"":","}`:B`${e}${t?"":","}`}toggleExpand(e){const t=e.target;e.target.classList.contains("open-bracket")&&(t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{"))}});const Ir=c` *, *:before, *:after { box-sizing: border-box; } @@ -2030,12 +2031,13 @@ pre[class*="language-"] { } .xxx-of-key { - font-size: calc(var(--font-size-small) - 2px); + font-family: var(--font-mono); + font-size: 12px; font-weight:bold; - background-color:var(--primary-color); - border-radius:2px; + background-color:#f8f7fc; + border-radius:4px; line-height:calc(var(--font-size-small) + 6px); - padding:0px 5px; + padding: 0.2em 0.4em; margin-bottom:1px; display:inline-block; } @@ -2099,7 +2101,7 @@ pre[class*="language-"] { display: block; } } -`;customElements.get("schema-tree")||customElements.define("schema-tree",class extends se{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Pr,$r,c` +`;customElements.get("schema-tree")||customElements.define("schema-tree",class extends se{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Ir,_r,c` .tree { font-size:var(--font-size-small); text-align: left; @@ -2165,7 +2167,7 @@ pre[class*="language-"] { ${"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description"} `:""} - ${Et(Ze((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))} + ${Et(Ve((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))} ${this.data?B` ${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],this.data["::array-type"]||"")}`:B` Schema not found `} @@ -2181,7 +2183,7 @@ pre[class*="language-"] { `:""} ${u} -
    ${Et(Ze(a||""))}
    +
    ${Et(Ve(a||""))}
    ${Array.isArray(e)&&e[0]?B`${this.generateTree(e[0],"xxx-of-option","","::ARRAY~OF","",f,m,e[0]["::readwrite"])}`:B` @@ -2203,7 +2205,7 @@ pre[class*="language-"] {
    ${a||E||S?B`${B` - ${Et(Ze("array"===t?`${_} ${a}`:E?`${_} ${E}: ${S}`:`${_} ${S}`))} + ${Et(Ve("array"===t?`${_} ${a}`:E?`${_} ${E}: ${S}`:`${_} ${S}`))} `}`:""} ${b?B`
    Constraints: ${b}
    `:""} ${x?B`
    Default: ${x}
    `:""} @@ -2261,7 +2263,7 @@ pre[class*="language-"] { color: var(--placeholder-color); opacity:1; } - `]}});function Tr(e,t){return e.length>0&&t.length>0&&e.slice(-1)===t.charAt(0)?e.slice(0,-1)+t:e+t}function jr(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:20,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:20;return B` + `]}});function Dr(e,t){return e.length>0&&t.length>0&&e.slice(-1)===t.charAt(0)?e.slice(0,-1)+t:e+t}function Lr(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:20,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:20;return B` @@ -2374,7 +2376,7 @@ pre[class*="language-"] {
    `))} - `}});class Rr extends se{constructor(e,t){super(),this.active=!0,this.message=null!=t?t:"",this.tone=null!=e?e:"positive",this.tones={info:{borderColor:c`#7CBBEA`,bgColor:c`#DEECF7`,icon:jr},positive:{borderColor:c`#83D187`,bgColor:c`#DFF1E0`,icon:jr},warning:{borderColor:c`#F5AE70`,bgColor:c`#FFEBD7`,icon:jr},critical:{borderColor:c`#F49494`,bgColor:c`#F8E3E3`,icon:jr}}}firstUpdated(){const e=e=>{this.renderRoot.querySelectorAll(".toast-active").length>0&&"fadeOut"===e.animationName&&this.onClose()};this.renderRoot.getElementById("toast").addEventListener("animationend",e),this.renderRoot.getElementById("toast").addEventListener("webkitAnimationEnd",e)}onClose(){this.active=!1;this.dispatchEvent(new CustomEvent("closed-toast",{detail:"closed toast",bubbles:!0,composed:!0}))}render(){return B` + `}});class Mr extends se{constructor(e,t){super(),this.active=!0,this.message=null!=t?t:"",this.tone=null!=e?e:"positive",this.tones={info:{borderColor:c`#7CBBEA`,bgColor:c`#DEECF7`,icon:Lr},positive:{borderColor:c`#83D187`,bgColor:c`#DFF1E0`,icon:Lr},warning:{borderColor:c`#F5AE70`,bgColor:c`#FFEBD7`,icon:Lr},critical:{borderColor:c`#F49494`,bgColor:c`#F8E3E3`,icon:Lr}}}firstUpdated(){const e=e=>{this.renderRoot.querySelectorAll(".toast-active").length>0&&"fadeOut"===e.animationName&&this.onClose()};this.renderRoot.getElementById("toast").addEventListener("animationend",e),this.renderRoot.getElementById("toast").addEventListener("webkitAnimationEnd",e)}onClose(){this.active=!1;this.dispatchEvent(new CustomEvent("closed-toast",{detail:"closed toast",bubbles:!0,composed:!0}))}render(){return B`
    @@ -2504,13 +2506,13 @@ pre[class*="language-"] { display: none; } } - `]}}var Cr,Ir,Dr;Cr=Rr,Ir="properties",Dr={tone:{type:String},tones:{type:{}},message:{type:String},active:{type:Boolean}},(Ir=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(Ir))in Cr?Object.defineProperty(Cr,Ir,{value:Dr,enumerable:!0,configurable:!0,writable:!0}):Cr[Ir]=Dr,customElements.get("toast-component")||customElements.define("toast-component",Rr);class Mr extends se{constructor(e,t,r,n,a){super(),this.id=e,this.url=t,this.path=r,this.computedUrl=n,this.variables=a,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(Tr(this.computedUrl,this.path)),this.copied=!0,this.showToast=!0}onTextClick(){navigator.clipboard.writeText(Tr(this.computedUrl,this.path)),this.showToast=!0}onMouseOver(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}parseURL(){if(!this.variables)return this.url;let{url:e}=this;for(const[t,r]of Object.entries(this.variables)){const n=new RegExp(`{${t}}`,"g");e=e.replace(n,'{var}'.replace("{var}",r.value))}return Tr(e,this.path)}render(){return B` + `]}}var Nr,Fr,Ur;Nr=Mr,Fr="properties",Ur={tone:{type:String},tones:{type:{}},message:{type:String},active:{type:Boolean}},(Fr=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(Fr))in Nr?Object.defineProperty(Nr,Fr,{value:Ur,enumerable:!0,configurable:!0,writable:!0}):Nr[Fr]=Ur,customElements.get("toast-component")||customElements.define("toast-component",Mr);class qr extends se{constructor(e,t,r,n,a){super(),this.id=e,this.url=t,this.path=r,this.computedUrl=n,this.variables=a,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(Dr(this.computedUrl,this.path)),this.copied=!0,this.showToast=!0}onTextClick(){navigator.clipboard.writeText(Dr(this.computedUrl,this.path)),this.showToast=!0}onMouseOver(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}parseURL(){if(!this.variables)return this.url;let{url:e}=this;for(const[t,r]of Object.entries(this.variables)){const n=new RegExp(`{${t}}`,"g");e=e.replace(n,'{var}'.replace("{var}",r.value))}return Dr(e,this.path)}render(){return B`
    ${B`${Et(this.parseURL())}`}
    @@ -2624,7 +2626,7 @@ pre[class*="language-"] { border-radius: 2px; background-color: var(--border-color); } - `]}}function Lr(e){var t;const r=null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.find((t=>t.url===e));return!!r&&(this.selectedServer=r,this.requestUpdate(),this.dispatchEvent(new CustomEvent("api-server-change",{bubbles:!0,composed:!0,detail:{selectedServer:r}})),!0)}function Nr(e,t){const r=[...e.currentTarget.closest(".server-vars").querySelectorAll("input, select")];let n=t.url;r.forEach((e=>{t.variables[e.dataset.var].value=e.value;const r=new RegExp(`{${e.dataset.var}}`,"g");n=n.replace(r,e.value.trim())})),t.computedUrl=n;const a=this.getRequestPanel(e);Gt.call(this,a),this.requestUpdate()}function Fr(){return this.selectedServer&&this.selectedServer.variables?B` + `]}}function Br(e){var t;const r=null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.find((t=>t.url===e));return!!r&&(this.selectedServer=r,this.requestUpdate(),this.dispatchEvent(new CustomEvent("api-server-change",{bubbles:!0,composed:!0,detail:{selectedServer:r}})),!0)}function Hr(e,t){const r=[...e.currentTarget.closest(".server-vars").querySelectorAll("input, select")];let n=t.url;r.forEach((e=>{t.variables[e.dataset.var].value=e.value;const r=new RegExp(`{${e.dataset.var}}`,"g");n=n.replace(r,e.value.trim())})),t.computedUrl=n;const a=this.getRequestPanel(e);Yt.call(this,a),this.requestUpdate()}function zr(){return this.selectedServer&&this.selectedServer.variables?B`
    ${Object.entries(this.selectedServer.variables).map((e=>B`
    @@ -2633,7 +2635,7 @@ pre[class*="language-"] { ${e[1].enum?B` ${o.map((e=>B` `))} - `,o.forEach((e=>{let o,i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose"))e.mimeType===this.selectedRequestBodyType&&(i=Ut(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=B` + `,o.forEach((e=>{let o,i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose"))e.mimeType===this.selectedRequestBodyType&&(i=qt(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=B` ${a}
    ${1===i.length?"":B` @@ -3046,7 +3048,7 @@ pre[class*="language-"] { ${i.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>B`
    ${t.exampleSummary&&t.exampleSummary.length>80?B`
    ${t.exampleSummary}
    `:""} - ${t.exampleDescription?B`
    ${Et(Ze(t.exampleDescription||""))}
    `:""} + ${t.exampleDescription?B`
    ${Et(Ve(t.exampleDescription||""))}
    `:""}
    `))}
    - `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=Ut(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=B` + `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=qt(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=B`
    - `);(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")||this.selectedRequestBodyType.includes("jose"))&&(o=Ft(e.schema,{}),"table"===this.schemaStyle?n=B` + `);(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")||this.selectedRequestBodyType.includes("jose"))&&(o=Ut(e.schema,{}),"table"===this.schemaStyle?n=B` ${n} ${e}
    - ${this.request_body.description?B`
    ${Et(Ze(this.request_body.description))}
    `:""} + ${this.request_body.description?B`
    ${Et(Ve(this.request_body.description))}
    `:""} ${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose")?B`
    @@ -3123,7 +3125,7 @@ pre[class*="language-"] { ${t} ${r}`}
    - `}formDataParamAsObjectTemplate(e,t,r){var n;const a=Ft(t,{}),o=Ut(t,"json",t.examples,t.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);return B` + `}formDataParamAsObjectTemplate(e,t,r){var n;const a=Ut(t,{}),o=qt(t,"json",t.examples,t.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);return B`
    {e.classList.remove("active")})),i.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> @@ -3155,7 +3157,7 @@ pre[class*="language-"] { >
    `}
    - `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){var a,o;const i=e.properties[r];if(i.readOnly)continue;const s=i.examples||i.example||"",l=i.type,c=Ot(i),p="read focused".includes(this.renderStyle)?"200px":"160px",d=Tt(c.examples||c.example,c.type);n.push(B` + `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){var a,o;const i=e.properties[r];if(i.readOnly)continue;const s=i.examples||i.example||"",l=i.type,c=Pt(i),p="read focused".includes(this.renderStyle)?"200px":"160px",d=jt(c.examples||c.example,c.type);n.push(B`
    @@ -3205,7 +3207,7 @@ pre[class*="language-"] { data-pname = "${r}" data-example = "${Array.isArray(s)?s[0]:s}" data-array = "false" - @input = ${e=>{const t=this.getRequestPanel(e);Gt.call(this,t)}} + @input = ${e=>{const t=this.getRequestPanel(e);Yt.call(this,t)}} />`:""} `}`} @@ -3222,7 +3224,7 @@ pre[class*="language-"] { ${e} `}`))} @@ -3233,7 +3235,7 @@ pre[class*="language-"] { - ${Et(Ze(i.description||""))} + ${Et(Ve(i.description||""))} ${this.exampleListTemplate.call(this,r,c.type,d.exampleList)} @@ -3251,13 +3253,14 @@ pre[class*="language-"] { .textContent = "${r}" style="width:100%" > - ${e.description?B`${Et(Ze(e.description))}`:""} + ${e.description?B`${Et(Ve(e.description))}`:""} `}codeExampleTemplate(e="flex"){return B`
    - -
    ${Et(Ke().highlight(this.codeExample.trim().replace(/\\$/,""),Ke().languages[this.selectedLanguage],this.selectedLanguage))}
    + +
    ${Et(Ge().highlight(this.codeExample.trim().replace(/\\$/,""),Ge().languages[this.selectedLanguage],this.selectedLanguage))}
    - `}apiResponseTabTemplate(){let e="",t="";if(!this.responseIsBlob)if(this.responseHeaders.includes("application/x-ndjson")){e="json";const r=this.responseText.split("\n").map((t=>Ke().highlight(t,Ke().languages[e],e))).join("\n");t=B`${Et(r)}`}else this.responseHeaders.includes("json")?(e="json",t=B`${Et(Ke().highlight(this.responseText,Ke().languages[e],e))}`):this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?(e="html",t=B`${Et(Ke().highlight(this.responseText,Ke().languages[e],e))}`):(e="text",t=B`${this.responseText}`);return B` + `}apiResponseTabTemplate(){let e="",t="";if(!this.responseIsBlob)if(this.responseHeaders.includes("application/x-ndjson")){e="json";const r=this.responseText.split("\n").map((t=>Ge().highlight(t,Ge().languages[e],e))).join("\n");t=B`${Et(r)}`}else this.responseHeaders.includes("json")?(e="json",t=B`${Et(Ge().highlight(this.responseText,Ge().languages[e],e))}`):this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?(e="html",t=B`${Et(Ge().highlight(this.responseText,Ge().languages[e],e))}`):(e="text",t=B`${this.responseText}`);return B` +
    ${this.codeExampleTemplate("flex")} @@ -3276,7 +3279,7 @@ pre[class*="language-"] {
    `:B` ${this.responseText?B`
    - +
    ${t}
    `:""}`}
    @@ -3294,7 +3297,7 @@ pre[class*="language-"] {
    `:""}
    - `;if(this.resultLoad){const e=this.renderRoot.host.shadowRoot.children[0];Gt.call(this,e.target?e.target:e)}else this.updateComplete.then((()=>{const e=this.renderRoot.host.shadowRoot.children[0];Gt.call(this,e.target?e.target:e)})),this.resultLoad=!0;return B` + `;if(this.resultLoad){const e=this.renderRoot.host.shadowRoot.children[0];Yt.call(this,e.target?e.target:e)}else this.updateComplete.then((()=>{const e=this.renderRoot.host.shadowRoot.children[0];Yt.call(this,e.target?e.target:e)})),this.resultLoad=!0;return B`
    @@ -3318,7 +3321,7 @@ pre[class*="language-"] { -->
    - `}async onFillRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)}))}async onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.value=""}))}async onTryClick(e){const t=e.target?e.target:e,{fetchUrl:r,fetchOptions:n,reqHeaders:a}=Gt.call(this,t),o=`/api/proxy/${encodeURIComponent(r)}`;this.responseUrl="",this.responseHeaders=[],this.responseStatus="success",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),this.fetchCredentials&&(n.credentials=this.fetchCredentials);const i=new AbortController,{signal:s}=i;n.headers=a;const l={url:o,...n};this.dispatchEvent(new CustomEvent("before-try",{bubbles:!0,composed:!0,detail:{request:l,controller:i}}));const c={method:l.method,headers:l.headers,credentials:l.credentials,body:l.body},p=new Request(l.url,c);let d,u;try{let e,r,n;t.disabled=!0,this.responseText="",this.responseMessage="",this.requestUpdate();const a=performance.now();d=await fetch(p,{signal:s});const o=performance.now();u=d.clone(),t.disabled=!1,this.responseMessage=B`${d.statusText?`${d.statusText}:${d.status}`:d.status}
    Took ${Math.round(o-a)} milliseconds
    `,this.responseUrl=d.url;const i={};d.headers.forEach(((e,t)=>{i[t]=e,this.responseHeaders=`${this.responseHeaders}${t}: ${e}\n`}));const l=d.headers.get("content-type");if(0===(await d.clone().text()).length)this.responseText="";else if(l){if("application/x-ndjson"===l)this.responseText=await d.text();else if(l.includes("json"))if(/charset=[^"']+/.test(l)){const e=l.split("charset=")[1],t=await d.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch{n=new TextDecoder("utf-8").decode(t)}try{r=JSON.parse(n),this.responseText=JSON.stringify(r,null,2)}catch{this.responseText=n}}else r=await d.json(),this.responseText=JSON.stringify(r,null,2);else/^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$|^application\/vnd\./.test(l)?(this.responseIsBlob=!0,this.responseBlobType="download"):/^audio|^image|^video/.test(l)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await d.text(),l.includes("xml")?this.responseText=wr()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){const t=d.headers.get("content-disposition");this.respContentDisposition=t?t.split("filename=")[1].replace(/"|'/g,""):"filename",e=await d.blob(),this.responseBlobUrl=URL.createObjectURL(e)}}else n=await d.text(),this.responseText=n;this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{request:p,response:u,responseHeaders:i,responseBody:r||n||e,responseStatus:u.ok}}))}catch(e){t.disabled=!1,"AbortError"===e.name?(this.dispatchEvent(new CustomEvent("request-aborted",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage="Request Aborted",this.responseText="Request Aborted"):(this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage=`${e.message} (CORS or Network Issue)`)}this.requestUpdate()}getRequestPanel(e){return e.target.closest(".request-panel")}onAddRemoveFileInput(e,t,r){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const n=e.target.closest(".file-input-container"),a=document.createElement("div");a.setAttribute("class","input-set row");const o=document.createElement("input");o.type="file",o.style="width:200px; margin-top:2px;",o.setAttribute("data-pname",t),o.setAttribute("data-ptype",r.includes("form-urlencode")?"form-urlencode":"form-data"),o.setAttribute("data-array","false"),o.setAttribute("data-file-array","true");const i=document.createElement("button");i.setAttribute("class","file-input-remove-btn"),i.innerHTML="✕",a.appendChild(o),a.appendChild(i),n.insertBefore(a,e.target)}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.codeExample="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});customElements.get("schema-table")||customElements.define("schema-table",class extends se{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Pr,c` + `}async onFillRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)}))}async onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.value=""}))}async onTryClick(e){const t=e.target?e.target:e,{fetchUrl:r,fetchOptions:n,reqHeaders:a,reqCookie:o}=Yt.call(this,t),i=`/api/proxy/${encodeURIComponent(r)}`;this.responseUrl="",this.responseHeaders=[],this.responseStatus="success",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),this.fetchCredentials&&(n.credentials=this.fetchCredentials);const s=new AbortController,{signal:l}=s;n.headers=a;const c={url:i,...n};this.dispatchEvent(new CustomEvent("before-try",{bubbles:!0,composed:!0,detail:{request:c,controller:s}}));const p={method:c.method,headers:c.headers,credentials:c.credentials,body:c.body};o.forEach((e=>{document.cookie=`${e.name}=${e.value}; path=/`}));const d=new Request(c.url,p);let u,h;try{let e,r,n;t.disabled=!0,this.responseText="",this.responseMessage="",this.requestUpdate();const a=performance.now();u=await fetch(d,{signal:l});const o=performance.now();h=u.clone(),t.disabled=!1,this.responseMessage=B`${u.statusText?`${u.statusText}:${u.status}`:u.status}
    Took ${Math.round(o-a)} milliseconds
    `,this.responseUrl=u.url;const i={};u.headers.forEach(((e,t)=>{i[t]=e,this.responseHeaders=`${this.responseHeaders}${t}: ${e}\n`}));const s=u.headers.get("content-type");if(0===(await u.clone().text()).length)this.responseText="";else if(s){if("application/x-ndjson"===s)this.responseText=await u.text();else if(s.includes("json"))if(/charset=[^"']+/.test(s)){const e=s.split("charset=")[1],t=await u.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch{n=new TextDecoder("utf-8").decode(t)}try{r=JSON.parse(n),this.responseText=JSON.stringify(r,null,2)}catch{this.responseText=n}}else r=await u.json(),this.responseText=JSON.stringify(r,null,2);else/^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$|^application\/vnd\./.test(s)?(this.responseIsBlob=!0,this.responseBlobType="download"):/^audio|^image|^video/.test(s)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await u.text(),s.includes("xml")?this.responseText=Ar()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){const t=u.headers.get("content-disposition");this.respContentDisposition=t?t.split("filename=")[1].replace(/"|'/g,""):"filename",e=await u.blob(),this.responseBlobUrl=URL.createObjectURL(e)}}else n=await u.text(),this.responseText=n;this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{request:d,response:h,responseHeaders:i,responseBody:r||n||e,responseStatus:h.ok}}))}catch(e){t.disabled=!1,"AbortError"===e.name?(this.dispatchEvent(new CustomEvent("request-aborted",{bubbles:!0,composed:!0,detail:{err:e,request:d}})),this.responseMessage="Request Aborted",this.responseText="Request Aborted"):(this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{err:e,request:d}})),this.responseMessage=`${e.message} (CORS or Network Issue)`)}this.requestUpdate(),o.forEach((e=>{document.cookie=`${e.name}=; path=/`}))}getRequestPanel(e){return e.target.closest(".request-panel")}onAddRemoveFileInput(e,t,r){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const n=e.target.closest(".file-input-container"),a=document.createElement("div");a.setAttribute("class","input-set row");const o=document.createElement("input");o.type="file",o.style="width:200px; margin-top:2px;",o.setAttribute("data-pname",t),o.setAttribute("data-ptype",r.includes("form-urlencode")?"form-urlencode":"form-data"),o.setAttribute("data-array","false"),o.setAttribute("data-file-array","true");const i=document.createElement("button");i.setAttribute("class","file-input-remove-btn"),i.innerHTML="✕",a.appendChild(o),a.appendChild(i),n.insertBefore(a,e.target)}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.codeExample="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});customElements.get("schema-table")||customElements.define("schema-table",class extends se{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ye,Ir,c` .table { font-size: var(--font-size-small); text-align: left; @@ -3393,15 +3396,20 @@ pre[class*="language-"] { border-radius:2px; border: 1px solid transparent; display: inline-block; - margin-left: -16px; - color:var(--primary-color); + color:var(--vtex-pink); cursor:pointer; font-size: calc(var(--font-size-small) + 4px); font-family: var(--font-mono); background-clip: border-box; } .obj-toggle:hover { - border-color: var(--primary-color); + border-color: var(--vtex-pink); + } + .obj-toggle.expanded::after { + content: '-'; + } + .obj-toggle.collapsed::after { + content: '+'; } .tr.expanded + .object-body { display:block; @@ -3419,7 +3427,7 @@ pre[class*="language-"] {
    `:""}
    - ${null!==(r=this.data)&&void 0!==r&&r["::description"]?B` ${Et(Ze(this.data["::description"]||""))}`:""} + ${null!==(r=this.data)&&void 0!==r&&r["::description"]?B` ${Et(Ve(this.data["::description"]||""))}`:""} ${this.data?B`
    Field
    @@ -3437,15 +3445,13 @@ pre[class*="language-"] {
    ${"array"===t?B` [ ] `:"object"===t?B` { } `:B` schema undefined `}
    -
    ${Et(Ze(a))||""}
    -
    `;const p=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?o:o+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?i:i+1,u=10*d;if(0===Object.keys(e).length)return B`${n}`;let h="",f="",m=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))h=n.replace("::","").replace("~"," "),m=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");h=e[1],f=e[2]}else h=n;let g="";if("object"===e["::type"]?g="array"===t?"array of object":e["::dataTypeLabel"]||e["::type"]:"array"===e["::type"]&&(g="array"===t?"array of array "+("object"!==r?`of ${r}`:""):e["::dataTypeLabel"]||e["::type"]),"object"==typeof e)return B` +
    ${Et(Ve(a))||""}
    +
    `;const p=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?o:o+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?i:i+1,u=10*d;if(0===Object.keys(e).length)return B`${n}`;let h="",f="",m=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))h=n.replace("::","").replace("~"," "),a="Click + to expand or - to hide each valid schema.",m=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");e[2]?(h=e[2],f=""):(h=e[1],f=e[2])}else h=n;let g="";if("object"===e["::type"]?g="array"===t?"array of object":e["::dataTypeLabel"]||e["::type"]:"array"===e["::type"]&&(g="array"===t?"array of array "+("object"!==r?`of ${r}`:""):e["::dataTypeLabel"]||e["::type"]),"object"==typeof e)return B` ${p>=0&&n?B`
    ${h||f?B` - - ${o`:""} + `:""} ${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||n.startsWith("::OPTION")?B`${h}${f}`:h.endsWith("*")?B`${e["::deprecated"]?"❌":""} ${h.substring(0,h.length-1)}*`:B`${e["::deprecated"]?"❌":""} ${"::props"===h?"":h}`} ${"xxx-of"===e["::type"]&&"array"===t?B`ARRAY`:""}
    @@ -3453,7 +3459,7 @@ pre[class*="language-"] { ${(e["::type"]||"").includes("xxx-of")?"":g} ${"readonly"===e["::readwrite"]?" 🆁":"writeonly"===e["::readwrite"]?" 🆆":""}
    -
    ${Et(Ze(a||""))}
    +
    ${Et(Ve(a||""))}
    `:B` ${"array"===e["::type"]&&"array"===t?B`
    @@ -3486,7 +3492,7 @@ pre[class*="language-"] {
    ${B` ${k?B`Deprecated`:""} - ${Et(Ze("array"===t?`${O} ${a}`:E?`${O} ${E}: ${S}`:`${O} ${S}`))} + ${Et(Ve("array"===t?`${O} ${a}`:E?`${O} ${E}: ${S}`:`${O} ${S}`))} `} ${b?B`
    Constraints: ${b}
    `:""} ${x?B`
    Default: ${x}
    `:""} @@ -3494,7 +3500,7 @@ pre[class*="language-"] { ${$?B`
    Pattern: ${$}
    `:""}
    - `}handleAllEvents(e){if(e.target.classList.contains("obj-toggle"))this.toggleObjectExpand(e);else if(e.target.classList.contains("schema-multiline-toggle"))this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true";else if(e.target.classList.contains("descr-expand-toggle")){const t=e.target.closest(".tr");t&&(t.classList.toggle("expanded-descr"),t.style.maxHeight=t.scrollHeight)}}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.add("collapsed"),t.classList.remove("expanded"),e.target.innerText="+"):(t.classList.remove("collapsed"),t.classList.add("expanded"),e.target.innerText="-")}});customElements.get("api-response")||customElements.define("api-response",class extends se{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="schema"}static get properties(){return{callback:{type:String},webhook:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String,attribute:"selected-mime-type"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static get styles(){return[Ye,Xe,rt,Qe,Je,$r,c` + `}handleAllEvents(e){e.target.classList.contains("obj-toggle")&&this.toggleObjectExpand(e)}toggleObjectExpand(e){const t=e.target,r=t.closest(".tr");r.classList.contains("expanded")?(r.classList.add("collapsed"),r.classList.remove("expanded"),t.classList.add("collapsed"),t.classList.remove("expanded")):(r.classList.remove("collapsed"),r.classList.add("expanded"),t.classList.add("expanded"),t.classList.remove("collapsed"))}});customElements.get("api-response")||customElements.define("api-response",class extends se{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="schema"}static get properties(){return{callback:{type:String},webhook:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String,attribute:"selected-mime-type"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static get styles(){return[Ye,Xe,rt,Qe,Je,_r,c` :where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); } :where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); } .response-panel { @@ -3606,7 +3612,7 @@ pre[class*="language-"] {
    ${this.responseTemplate()}
    - `}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}getResponseStatusType(e){const t=e.toString();return t.startsWith("1")?"informational":t.startsWith("2")?"success":t.startsWith("3")?"redirection":t.startsWith("4")||t.startsWith("5")?"error":""}responseTemplate(){if(!this.responses)return"";for(const n in this.responses){this.selectedStatus||(this.selectedStatus=n);const a={};for(const r in null===(e=this.responses[n])||void 0===e?void 0:e.content){var e,t;const o=this.responses[n].content[r];this.selectedMimeType||(this.selectedMimeType=r);const i=Ft(o.schema,{}),s=Ut(o.schema,r,o.examples,o.example,"true"!==this.callback&&"true"!==this.webhook,"true"===this.callback||"true"===this.webhook,r.includes("json")?"json":"text");a[r]={description:this.responses[n].description,examples:s,selectedExample:(null===(t=s[0])||void 0===t?void 0:t.exampleId)||"",schemaTree:i}}const o=[];for(const e in null===(r=this.responses[n])||void 0===r?void 0:r.headers){var r;o.push({name:e,...this.responses[n].headers[e]})}this.headersForEachRespStatus[n]=o,this.mimeResponsesForEachStatus[n]=a}return B` + `}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}getResponseStatusType(e){const t=e.toString();return t.startsWith("1")?"informational":t.startsWith("2")?"success":t.startsWith("3")?"redirection":t.startsWith("4")||t.startsWith("5")?"error":""}responseTemplate(){if(!this.responses)return"";for(const n in this.responses){this.selectedStatus||(this.selectedStatus=n);const a={};for(const r in null===(e=this.responses[n])||void 0===e?void 0:e.content){var e,t;const o=this.responses[n].content[r];this.selectedMimeType||(this.selectedMimeType=r);const i=Ut(o.schema,{}),s=qt(o.schema,r,o.examples,o.example,"true"!==this.callback&&"true"!==this.webhook,"true"===this.callback||"true"===this.webhook,r.includes("json")?"json":"text");a[r]={description:this.responses[n].description,examples:s,selectedExample:(null===(t=s[0])||void 0===t?void 0:t.exampleId)||"",schemaTree:i}}const o=[];for(const e in null===(r=this.responses[n])||void 0===r?void 0:r.headers){var r;o.push({name:e,...this.responses[n].headers[e]})}this.headersForEachRespStatus[n]=o,this.mimeResponsesForEachStatus[n]=a}return B` ${Object.keys(this.responses).length>=1?B`
    ${Object.keys(this.responses).map((e=>B` ${"$$ref"===e?"":B` @@ -3650,7 +3656,7 @@ pre[class*="language-"] {
    - ${Et(Ze((null===(t=this.responses[e])||void 0===t?void 0:t.description)||""))} + ${Et(Ve((null===(t=this.responses[e])||void 0===t?void 0:t.description)||""))} ${this.headersForEachRespStatus[e]&&(null===(r=this.headersForEachRespStatus[e])||void 0===r?void 0:r.length)>0?B`${this.responseHeaderListTemplate(this.headersForEachRespStatus[e])}`:""}
    ${0===Object.keys(this.mimeResponsesForEachStatus[e]).length?"":B` @@ -3686,7 +3692,7 @@ pre[class*="language-"] { `:""} ${null!==(n=e.description)&&void 0!==n&&n.type?B` -
    ${Et(Ze(e.description||""))}
    +
    ${Et(Ve(e.description||""))}
    `:""} ${null!==(a=e.schema)&&void 0!==a&&a.example?B` @@ -3702,7 +3708,7 @@ pre[class*="language-"] { ${1===e.examples.length?B` ${"json"===e.examples[0].exampleFormat?B` ${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?B`
    ${e.examples[0].exampleSummary}
    `:""} - ${e.examples[0].exampleDescription?B`
    ${Et(Ze(e.examples[0].exampleDescription||""))}
    `:""} + ${e.examples[0].exampleDescription?B`
    ${Et(Ve(e.examples[0].exampleDescription||""))}
    `:""} `:B` ${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?B`
    ${e.examples[0].exampleSummary}
    `:""} - ${e.examples[0].exampleDescription?B`
    ${Et(Ze(e.examples[0].exampleDescription||""))}
    `:""} + ${e.examples[0].exampleDescription?B`
    ${Et(Ve(e.examples[0].exampleDescription||""))}
    `:""}
    ${e.examples[0].exampleValue}
    `}`:B` @@ -3723,7 +3729,7 @@ pre[class*="language-"] { ${e.examples.map((t=>B`
    ${t.exampleSummary&&t.exampleSummary.length>80?B`
    ${t.exampleSummary}
    `:""} - ${t.exampleDescription?B`
    ${Et(Ze(t.exampleDescription||""))}
    `:""} + ${t.exampleDescription?B`
    ${Et(Ve(t.exampleDescription||""))}
    `:""} ${"json"===t.exampleFormat?B` `}`:B`
     Schema not found
    - `}});class Vr extends se{constructor(e,t){super(),this.id=e,this.content=t,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(this.content),this.copied=!0}onTextClick(){navigator.clipboard.writeText(this.content),this.showToast=!0}onMouseover(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}render(){return B` + `}});class Jr extends se{constructor(e,t){super(),this.id=e,this.content=t,this.copied=!1,this.showButton=!1,this.showToast=!1,this.addEventListener("closed-toast",(()=>{this.showToast=!1}))}reset(){this.copied=!1,this.showButton=!1}willUpdate(e){e.has("id")&&this.reset()}onButtonClick(){navigator.clipboard.writeText(this.content),this.copied=!0}onTextClick(){navigator.clipboard.writeText(this.content),this.showToast=!0}onMouseover(){this.showButton=!0}onMouseLeave(){this.showButton=!1,this.copied=!1}render(){return B`
    ${this.content}
    @@ -3844,7 +3850,145 @@ pre[class*="language-"] { border-radius: 2px; background-color: var(--border-color); } - `]}}function Zr(e,t,r,n,a){var o;let i="";t&&(i+=`${Ze(t)}\n\n`);try{const e=JSON.parse(decodeURIComponent(n));switch(r){case"code":i+=Ze(e.codes.reduce(((e,t)=>{switch(t.language){case"jsonc":t.language="json";break;case"curl":t.language="curl"}return`${e}\n\`\`\`${t.language}\n${decodeURIComponent(t.code)}\n\`\`\`\n`}),""));break;case"html":case"embed":i+=`\n\n${e.html}\n\n`;break;case"image":i+=e.images.reduce(((e,t)=>`${e}\n\n${t.image[1]}`),"");break;case"api-header":i+=Ze(`## ${e.title}`);break;case"callout":i+=`

    ${null!==(o=e.title)&&void 0!==o?o:""}

    ${Ze(e.body)}
    `;break;case"parameters":{const{rows:t,cols:r}=e;let n="\n\n";for(let t=0;t")}`:n+="|"}n+="|\n",i+=Ze(n)}break;default:i+=""}a&&(i+=Ze(a))}catch(e){i+=`\n\n

    Work in progress

    [block:${r}]${n}[/block]
    \n\n`,a&&(i+=Ze(a))}return i}function Gr(e){if(!e)return"";return e.replace(/(?[^[\]]*)\[block:(?[^\]]*)\](?.+?)\[\/block\](?[^[\]]*)/gms,Zr)}function Kr(e){return e.startsWith("

    ℹ️")?`

    ${e.replace("ℹ️","").trim()}
    `:e.startsWith("

    📘")?`

    ${e.replace("📘","").trim()}
    `:e.startsWith("

    ⚠️ ")?`

    ${e.replace("⚠️","").trim()}
    `:e.startsWith("

    ❗ ")?`

    ${e.replace("❗","").trim()}
    `:`
    ${e}
    `}function Yr(e){const t=new Ze.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function Jr(e,t=""){var r,n,a;const o=new Set;for(const t in e.responses)for(const r in null===(i=e.responses[t])||void 0===i?void 0:i.content){var i;o.add(r.trim())}const s=[...o].join(", "),l=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],c=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));c&&l.push(c);const p=`https://developers.vtex.com/docs/api-reference/${this.specUrl.split("/")[3]}`;Ze.Renderer.prototype.blockquote=Kr;const d=e.xCodeSamples?gr.call(this,e.xCodeSamples):"";return e.description=Gr(e.description),B` + `]}}function Xr(e,t,r,n,a){var o;let i="";t&&(i+=`${Ve(t)}\n\n`);try{const e=JSON.parse(decodeURIComponent(n));switch(r){case"code":i+=Ve(e.codes.reduce(((e,t)=>{switch(t.language){case"jsonc":t.language="json";break;case"curl":t.language="curl"}return`${e}\n\`\`\`${t.language}\n${decodeURIComponent(t.code)}\n\`\`\`\n`}),""));break;case"html":case"embed":i+=`\n\n${e.html}\n\n`;break;case"image":i+=e.images.reduce(((e,t)=>`${e}\n\n${t.image[1]}`),"");break;case"api-header":i+=Ve(`## ${e.title}`);break;case"callout":i+=`

    ${null!==(o=e.title)&&void 0!==o?o:""}

    ${Ve(e.body)}
    `;break;case"parameters":{const{rows:t,cols:r}=e;let n="\n\n";for(let t=0;t")}`:n+="|"}n+="|\n",i+=Ve(n)}break;default:i+=""}a&&(i+=Ve(a))}catch(e){i+=`\n\n

    Work in progress

    [block:${r}]${n}[/block]
    \n\n`,a&&(i+=Ve(a))}return i}function Qr(e){if(!e)return"";return e.replace(/(?[^[\]]*)\[block:(?[^\]]*)\](?.+?)\[\/block\](?[^[\]]*)/gms,Xr)}!function(e,t,r){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Jr,"properties",{id:{type:String},content:{type:String},copied:{type:Boolean},showButton:{type:Boolean},showToast:{type:Boolean}}),customElements.get("content-copy-button")||customElements.define("content-copy-button",Jr);const en={info:"#8C929D",warning:"#FFB100",danger:"#DC5A41"};function tn(e){return`${"info"===e?'':''}`}function rn(e){return e.startsWith("

    ℹ️")?`

    ${tn("info")}${e.replace("ℹ️","").trim()}
    `:e.startsWith("

    📘")?`

    ${tn("info")}${e.replace("📘","").trim()}
    `:e.startsWith("

    ⚠️ ")?`

    ${tn("warning")}${e.replace("⚠️","").trim()}
    `:e.startsWith("

    ❗ ")?`

    ${tn("danger")}${e.replace("❗","").trim()}
    `:`
    ${tn("info")}${e}
    `}function nn(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:16,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:16;return B` +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + `}function an(e){var t,r;const n=null!==(t=null==e?void 0:e.width)&&void 0!==t?t:16,a=null!==(r=null==e?void 0:e.height)&&void 0!==r?r:16;return B` +
    + + + + + + + + + + + + +
    + `}function on(e){const t=new Ve.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function sn(e,t=""){var r,n,a;const o=new Set;for(const t in e.responses)for(const r in null===(i=e.responses[t])||void 0===i?void 0:i.content){var i;o.add(r.trim())}const s=[...o].join(", "),l=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],c=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));c&&l.push(c);const p=`https://developers.vtex.com/docs/api-reference/${this.specUrl.split("/")[3]}`;Ve.Renderer.prototype.blockquote=rn;const d=e.xCodeSamples?wr.call(this,e.xCodeSamples):"";return e.description=Qr(e.description),B` ${"read"===this.renderStyle?B`
    `:""}
    @@ -3855,14 +3999,32 @@ pre[class*="language-"] { ${e.xBadges.map((e=>B`${e.label}`))}
    `:""} -
    +
    ${"focused"===this.renderStyle&&"General ⦂"!==t?B`

    ${this.resolvedSpec.info.title} › ${t}

    `:""} - ${this.specUrl&&this.allowSpecFileDownload?B`
    - - -
    `:""} +
    +
    + ${this.specUrl&&this.allowSpecFileDownload?B`
    + + +
    `:""} + ${this.postmanUrl?B`
    + + +
    `:""}

    ${e.shortSummary||`${e.method.toUpperCase()} ${e.path}`}

    ${e.isWebhook?B` WEBHOOK `:B` @@ -3871,13 +4033,13 @@ pre[class*="language-"] { ${e.method}
    - +
    `} `} - ${e.description?B`
    ${Et(Ze(e.description))}
    `:""} - + ${e.description?B`
    ${Et(Ve(e.description))}
    `:""} + ${d}
    - ${e.callbacks?yr.call(this,e.callbacks):""} + ${e.callbacks?$r.call(this,e.callbacks):""}
    - `}function Xr(){return this.resolvedSpec?B` + `}function ln(){return this.resolvedSpec?B` ${this.resolvedSpec.tags.map((e=>B`
    ${e.name}
    - ${Et(`\n
    \n ${Ze(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:Yr(e.elementId)}:void 0)}\n
    `)} + ${Et(`\n
    \n ${Ve(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:on(e.elementId)}:void 0)}\n
    `)}
    - ${e.paths.map((e=>Jr.call(this,e)))} + ${e.paths.map((e=>sn.call(this,e)))}
    `))} -`:""}function Qr(e){return B` +`:""}function cn(e){return B`
    ${e.name} Schema
    ${"table"===this.schemaStyle?B` `:B` `} -
    `}function en(e,t){return-1!==e.id.indexOf("schemas-")?Qr.call(this,e):B` +
    `}function pn(e,t){return-1!==e.id.indexOf("schemas-")?cn.call(this,e):B`
    ${B` @@ -3983,27 +4146,44 @@ pre[class*="language-"] {
    `:""} `} - `}function tn(){return this.resolvedSpec?B` + `}function dn(){return this.resolvedSpec?B` ${this.resolvedSpec.components.map((e=>B`
    ${e.name}
    - ${Et(`
    ${Ze(e.description?e.description:"")}
    `)} + ${Et(`
    ${Ve(e.description?e.description:"")}
    `)}
    - ${e.subComponents.filter((e=>!1!==e.expanded)).map((t=>en.call(this,t,e.name)))} + ${e.subComponents.filter((e=>!1!==e.expanded)).map((t=>pn.call(this,t,e.name)))}
    `))} -`:""}function rn(){const e=new Ze.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}function nn(){var e,t,r;return this.resolvedSpec.info.description=Gr(this.resolvedSpec.info.description),Ze.Renderer.prototype.blockquote=Kr,B` +`:""}function un(){const e=new Ve.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}function hn(){var e,t,r;return this.resolvedSpec.info.description=Qr(this.resolvedSpec.info.description),Ve.Renderer.prototype.blockquote=rn,B`
    ${null!==(e=this.resolvedSpec)&&void 0!==e&&e.info?B` - ${this.specUrl&&"true"===this.allowSpecFileDownload?B` -
    - - -
    `:""} +
    + ${this.specUrl&&this.allowSpecFileDownload?B`
    + + +
    `:""} + ${this.postmanUrl?B`
    + + +
    `:""} +
    ${this.resolvedSpec.info.title} ${this.resolvedSpec.info.version?B` @@ -4022,11 +4202,11 @@ pre[class*="language-"] {
    - ${this.resolvedSpec.info.description?B`${Et(`\n
    \n ${Ze(this.resolvedSpec.info.description,"true"===this.infoDescriptionHeadingsInNavBar?{renderer:rn()}:void 0)}\n
    `)}`:""} + ${this.resolvedSpec.info.description?B`${Et(`\n
    \n ${Ve(this.resolvedSpec.info.description,"true"===this.infoDescriptionHeadingsInNavBar?{renderer:un()}:void 0)}\n
    `)}`:""}
    `:""}
    - `}function an(e,t="toggle"){const r=null==e?void 0:e.closest(".nav-bar-tag-and-paths"),n=null==r?void 0:r.querySelector(".nav-bar-paths-under-tag");if(r){const e=r.classList.contains("expanded");!e||"toggle"!==t&&"collapse"!==t?e||"toggle"!==t&&"expand"!==t||(r.classList.replace("collapsed","expanded"),n.style.maxHeight=`${n.scrollHeight}px`):(n.style.maxHeight=0,r.classList.replace("expanded","collapsed"))}}function on(e){var t,r,n,a;if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const o=e.target;e.stopPropagation(),"navigate"===(null===(t=o.dataset)||void 0===t?void 0:t.action)?this.scrollToEventTarget(e,!1):"expand-all"===(null===(r=o.dataset)||void 0===r?void 0:r.action)||"collapse-all"===(null===(n=o.dataset)||void 0===n?void 0:n.action)?function(e,t="expand-all"){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=[...e.target.closest(".nav-scroll").querySelectorAll(".nav-bar-tag-and-paths")];"expand-all"===t?r.forEach((e=>{const t=e.querySelector(".nav-bar-paths-under-tag");e.classList.replace("collapsed","expanded"),t.style.maxHeight=`${null==t?void 0:t.scrollHeight}px`})):r.forEach((e=>{e.classList.replace("expanded","collapsed"),e.querySelector(".nav-bar-paths-under-tag").style.maxHeight=0}))}(e,o.dataset.action):"expand-collapse-tag"===(null===(a=o.dataset)||void 0===a?void 0:a.action)&&an(o,"toggle")}function sn(){var e,t,r,n;return!this.resolvedSpec||this.resolvedSpec.specLoadError?B` + `}function fn(e,t="toggle"){const r=null==e?void 0:e.closest(".nav-bar-tag-and-paths"),n=null==r?void 0:r.querySelector(".nav-bar-paths-under-tag");if(r){const e=r.classList.contains("expanded");!e||"toggle"!==t&&"collapse"!==t?e||"toggle"!==t&&"expand"!==t||(r.classList.replace("collapsed","expanded"),n.style.maxHeight=`${n.scrollHeight}px`):(n.style.maxHeight=0,r.classList.replace("expanded","collapsed"))}}function mn(e){var t,r,n,a;if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const o=e.target;e.stopPropagation(),"navigate"===(null===(t=o.dataset)||void 0===t?void 0:t.action)?this.scrollToEventTarget(e,!1):"expand-all"===(null===(r=o.dataset)||void 0===r?void 0:r.action)||"collapse-all"===(null===(n=o.dataset)||void 0===n?void 0:n.action)?function(e,t="expand-all"){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=[...e.target.closest(".nav-scroll").querySelectorAll(".nav-bar-tag-and-paths")];"expand-all"===t?r.forEach((e=>{const t=e.querySelector(".nav-bar-paths-under-tag");e.classList.replace("collapsed","expanded"),t.style.maxHeight=`${null==t?void 0:t.scrollHeight}px`})):r.forEach((e=>{e.classList.replace("expanded","collapsed"),e.querySelector(".nav-bar-paths-under-tag").style.maxHeight=0}))}(e,o.dataset.action):"expand-collapse-tag"===(null===(a=o.dataset)||void 0===a?void 0:a.action)&&fn(o,"toggle")}function gn(){var e,t,r,n;return!this.resolvedSpec||this.resolvedSpec.specLoadError?B` @@ -4059,7 +4239,7 @@ pre[class*="language-"] { `} `} - ${B` -`}function ln(e){const t=new Ze.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function cn(e){return B` +`}function yn(e){const t=new Ve.Renderer;return t.heading=(t,r,n,a)=>`${t}`,t}function vn(e){return B`
    ${e} -
    `}function pn(){var e;if("true"===this.showInfo)return cn(nn.call(this));const t=this.resolvedSpec.tags[0],r=null===(e=this.resolvedSpec.tags[0])||void 0===e?void 0:e.paths[0];return cn(t&&r?Jr.call(this,r,t.name):"")}function dn(e){return B` + `}function bn(){var e;if("true"===this.showInfo)return vn(hn.call(this));const t=this.resolvedSpec.tags[0],r=null===(e=this.resolvedSpec.tags[0])||void 0===e?void 0:e.paths[0];return vn(t&&r?sn.call(this,r,t.name):"")}function xn(e){return B`

    ${e.name}

    ${"show-description"===this.onNavTagClick&&e.description?B`
    - ${Et(`\n
    \n ${Ze(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:ln(e.elementId)}:void 0)}\n
    `)} + ${Et(`\n
    \n ${Ve(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:yn(e.elementId)}:void 0)}\n
    `)}
    `:""} - `}function un(){if(!this.focusedElementId||!this.resolvedSpec)return;const e=this.focusedElementId;let t,r=null,n=null,a=0;if(e.startsWith("overview")&&"true"===this.showInfo)t=nn.call(this);else if("auth"===e&&"true"===this.allowAuthentication)t=hr.call(this);else if("servers"===e&&"true"===this.allowServerSelection)t=Ur.call(this);else if("operations-top"===e)t=B` + `}function wn(){if(!this.focusedElementId||!this.resolvedSpec)return;const e=this.focusedElementId;let t,r=null,n=null,a=0;if(e.startsWith("overview")&&"true"===this.showInfo)t=hn.call(this);else if("auth"===e&&"true"===this.allowAuthentication)t=vr.call(this);else if("servers"===e&&"true"===this.allowServerSelection)t=Wr.call(this);else if("operations-top"===e)t=B`
    -
    `;else if(e.startsWith("cmp--")&&"true"===this.showComponents)t=tn.call(this);else if(e.startsWith("tag--")){const r=e.indexOf("--",4)>0?e.substring(0,e.indexOf("--",5)):e;n=this.resolvedSpec.tags.find((e=>e.elementId===r)),t=n?cn.call(this,dn.call(this,n)):pn.call(this)}else{for(a=0;a`${t.elementId}`===e)),!r);a+=1);if(r){an(this.shadowRoot.getElementById(`link-${e}`),"expand"),t=cn.call(this,Jr.call(this,r,n.name||"",n.description||""))}else t=pn.call(this)}return t}function hn(e){if(e.expanded)e.expanded=!1,"true"===this.updateRoute&&this.replaceHistoryState("");else if(e.expanded=!0,"true"===this.updateRoute){const t=`${this.routePrefix||"#"}${e.elementId}`;window.location.hash!==t&&this.replaceHistoryState(e.elementId)}this.requestUpdate()}function fn(e,t="expand-all"){const r=[...e.querySelectorAll(".section-tag")];"expand-all"===t?r.map((e=>{e.classList.replace("collapsed","expanded")})):r.map((e=>{e.classList.replace("expanded","collapsed")}))}function mn(e,t="expand-all"){fn.call(this,e.target.closest(".operations-root"),t)}function gn(e,t=!1){return B` - + `;else if(e.startsWith("cmp--")&&"true"===this.showComponents)t=dn.call(this);else if(e.startsWith("tag--")){const r=e.indexOf("--",4)>0?e.substring(0,e.indexOf("--",5)):e;n=this.resolvedSpec.tags.find((e=>e.elementId===r)),t=n?vn.call(this,xn.call(this,n)):bn.call(this)}else{for(a=0;a`${t.elementId}`===e)),!r);a+=1);if(r){r.servers&&r.servers.length>0&&Br.call(this,r.servers[0].url);fn(this.shadowRoot.getElementById(`link-${e}`),"expand"),t=vn.call(this,sn.call(this,r,n.name||"",n.description||""))}else t=bn.call(this)}return t}function $n(e){if(e.expanded)e.expanded=!1,"true"===this.updateRoute&&this.replaceHistoryState("");else if(e.expanded=!0,"true"===this.updateRoute){const t=`${this.routePrefix||"#"}${e.elementId}`;window.location.hash!==t&&this.replaceHistoryState(e.elementId)}this.requestUpdate()}function Sn(e,t="expand-all"){const r=[...e.querySelectorAll(".section-tag")];"expand-all"===t?r.map((e=>{e.classList.replace("collapsed","expanded")})):r.map((e=>{e.classList.replace("expanded","collapsed")}))}function En(e,t="expand-all"){Sn.call(this,e.target.closest(".operations-root"),t)}function kn(e,t=!1){return B` +
    ${e.method}
    ${e.path} @@ -4203,7 +4383,7 @@ pre[class*="language-"] {
    ${e.summary||e.shortSummary}
    `:""}
    - `}function yn(e){var t;const r=new Set;for(const t in e.responses)for(const a in null===(n=e.responses[t])||void 0===n?void 0:n.content){var n;r.add(a.trim())}const a=[...r].join(", "),o=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],i=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));i&&o.push(i);const s=e.xCodeSamples?gr(e.xCodeSamples):"";return e.description=Gr(e.description),B` + `}function An(e){var t;const r=new Set;for(const t in e.responses)for(const a in null===(n=e.responses[t])||void 0===n?void 0:n.content){var n;r.add(a.trim())}const a=[...r].join(", "),o=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],i=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));i&&o.push(i);const s=e.xCodeSamples?wr(e.xCodeSamples):"";return e.description=Qr(e.description),B` `}function kn(e=!1,t=!0,r=!0,n=!1){if(!this.resolvedSpec)return"";"true"===this.persistAuth&&ar.call(this);const a={bg1:Sn(this.bgColor)?this.bgColor:"",fg1:Sn(this.textColor)?this.textColor:"",headerColor:Sn(this.headerColor)?this.headerColor:"",primaryColor:Sn(this.primaryColor)?this.primaryColor:"",navBgColor:Sn(this.navBgColor)?this.navBgColor:"",navTextColor:Sn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Sn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Sn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Sn(this.navAccentColor)?this.navAccentColor:"",navAccentTextColor:Sn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + `}function In(e=!1,t=!0,r=!0,n=!1){if(!this.resolvedSpec)return"";"true"===this.persistAuth&&ir.call(this);const a={bg1:Cn(this.bgColor)?this.bgColor:"",fg1:Cn(this.textColor)?this.textColor:"",headerColor:Cn(this.headerColor)?this.headerColor:"",primaryColor:Cn(this.primaryColor)?this.primaryColor:"",navBgColor:Cn(this.navBgColor)?this.navBgColor:"",navTextColor:Cn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Cn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Cn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Cn(this.navAccentColor)?this.navAccentColor:"",navAccentTextColor:Cn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)}
    ${this.resolvedSpec.info.description}
    `:B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)} - ${bn.call(this)} + ${On.call(this)}
    @@ -4699,7 +4879,7 @@ pre[class*="language-"] {
    `:this.resolvedSpec.isSpecLoading?B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)}
    @@ -4707,17 +4887,17 @@ pre[class*="language-"] {
    `:B` - ${"dark"===this.theme?En.call(this,"dark",a):En.call(this,"light",a)} + ${"dark"===this.theme?Rn.call(this,"dark",a):Rn.call(this,"light",a)} - ${"false"===this.showHeader?"":bn.call(this)} + ${"false"===this.showHeader?"":On.call(this)} - ${"false"===this.allowAdvancedSearch?"":wn.call(this)} + ${"false"===this.allowAdvancedSearch?"":Tn.call(this)}
    - ${"read"!==this.renderStyle&&"focused"!==this.renderStyle||"true"!==this.showSideNav||!this.resolvedSpec?"":sn.call(this)} + ${"read"!==this.renderStyle&&"focused"!==this.renderStyle||"true"!==this.showSideNav||!this.resolvedSpec?"":gn.call(this)}
    @@ -4726,12 +4906,12 @@ pre[class*="language-"] { ${!0===this.loading?B`
    `:B` ${!0===this.loadFailed?B`
    Unable to load the Spec
    `:B`
    - ${"focused"===this.renderStyle?B`${un.call(this)}`:B` - ${"true"===this.showInfo?nn.call(this):""} + ${"focused"===this.renderStyle?B`${wn.call(this)}`:B` + ${"true"===this.showInfo?hn.call(this):""}
    - ${"read"===this.renderStyle?Xr.call(this):vn.call(this,t,r,n)} + ${"read"===this.renderStyle?ln.call(this):_n.call(this,t,r,n)} `}
    `}`} @@ -4739,7 +4919,7 @@ pre[class*="language-"] {
    - `}var An=r(5108);class _n extends se{constructor(){super(),this.isIntersectionObserverActive=!1}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},updateRoute:{type:String,attribute:"update-route"},routePrefix:{type:String,attribute:"route-prefix"},specUrl:{type:String,attribute:"spec-url"},spec:{type:String,attribute:"spec"},sortTags:{type:String,attribute:"sort-tags"},generateMissingTags:{type:String,attribute:"generate-missing-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},onNavTagClick:{type:String,attribute:"on-nav-tag-click"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},allowAdvancedSearch:{type:String,attribute:"allow-advanced-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showComponents:{type:String,attribute:"show-components"},pageDirection:{type:String,attribute:"page-direction"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},cssFile:{type:String,attribute:"css-file"},cssClasses:{type:String,attribute:"css-classes"},navBgColor:{type:String,attribute:"nav-bg-color"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navAccentTextColor:{type:String,attribute:"nav-accent-text-color"},navActiveItemMarker:{type:String,attribute:"nav-active-item-marker"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},showMethodInNavBar:{type:String,attribute:"show-method-in-nav-bar"},usePathInNavBar:{type:String,attribute:"use-path-in-nav-bar"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean},focusedElementId:{type:String},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + `}var Dn=r(5108);class Ln extends se{constructor(){super(),this.isIntersectionObserverActive=!1}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},updateRoute:{type:String,attribute:"update-route"},routePrefix:{type:String,attribute:"route-prefix"},specUrl:{type:String,attribute:"spec-url"},spec:{type:String,attribute:"spec"},sortTags:{type:String,attribute:"sort-tags"},generateMissingTags:{type:String,attribute:"generate-missing-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},postmanUrl:{type:String,attribute:"postman-url"},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},onNavTagClick:{type:String,attribute:"on-nav-tag-click"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},allowAdvancedSearch:{type:String,attribute:"allow-advanced-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showComponents:{type:String,attribute:"show-components"},pageDirection:{type:String,attribute:"page-direction"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},cssFile:{type:String,attribute:"css-file"},cssClasses:{type:String,attribute:"css-classes"},navBgColor:{type:String,attribute:"nav-bg-color"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navAccentTextColor:{type:String,attribute:"nav-accent-text-color"},navActiveItemMarker:{type:String,attribute:"nav-active-item-marker"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},showMethodInNavBar:{type:String,attribute:"show-method-in-nav-bar"},usePathInNavBar:{type:String,attribute:"use-path-in-nav-bar"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean},focusedElementId:{type:String},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -4999,7 +5179,7 @@ pre[class*="language-"] { .section-gap--read-mode { padding: 24px 80px 12px 80px; } - }`,ot]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0")),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.renderStyle&&"read, view, focused,".includes(`${this.renderStyle},`)||(this.renderStyle="focused"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"default, never,".includes(`${this.schemaHideReadOnly},`)||(this.schemaHideReadOnly="default"),this.schemaHideWriteOnly&&"default, never,".includes(`${this.schemaHideWriteOnly},`)||(this.schemaHideWriteOnly="default"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="400px"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),this.allowAdvancedSearch&&"true, false,".includes(`${this.allowAdvancedSearch},`)||(this.allowAdvancedSearch="true"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.updateRoute&&"true, false,".includes(`${this.updateRoute},`)||(this.updateRoute="true"),this.routePrefix||(this.routePrefix="#"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.generateMissingTags&&"true, false,".includes(`${this.generateMissingTags},`)||(this.generateMissingTags="false"),this.sortEndpointsBy&&"method, path, summary, none,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.onNavTagClick&&"expand-collapse, show-description,".includes(`${this.onNavTagClick},`)||(this.onNavTagClick="expand-collapse"),this.navItemSpacing&&"compact, relaxed, default,".includes(`${this.navItemSpacing},`)||(this.navItemSpacing="default"),this.showMethodInNavBar&&"false, as-plain-text, as-colored-text, as-colored-block,".includes(`${this.showMethodInNavBar},`)||(this.showMethodInNavBar="false"),this.usePathInNavBar&&"true, false,".includes(`${this.usePathInNavBar},`)||(this.usePathInNavBar="false"),this.navActiveItemMarker&&"left-bar, colored-block".includes(`${this.navActiveItemMarker},`)||(this.navActiveItemMarker="left-bar"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.allowServerSelection&&"true, false,".includes(`${this.allowServerSelection},`)||(this.allowServerSelection="true"),this.allowAuthentication&&"true, false,".includes(`${this.allowAuthentication},`)||(this.allowAuthentication="true"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes(`${this.infoDescriptionHeadingsInNavBar},`)||(this.infoDescriptionHeadingsInNavBar="false"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),this.cssFile||(this.cssFile=null),this.cssClasses||(this.cssClasses=""),Ke().languages.node=Ke().languages.javascript,Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)}),window.addEventListener("hashchange",(()=>{this.scrollToPath(this.getElementIDFromURL())}),!0)}disconnectedCallback(){super.disconnectedCallback()}infoDescriptionHeadingRenderer(){const e=new Ze.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}render(){return kn.call(this)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.gotoPath&&!window.location.hash&&this.scrollToPath(this.gotoPath)}),0),"render-style"===e&&"read"===r&&window.setTimeout((()=>{this.observeExpandedContent()}),100),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSpecFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);const t=e.target.files[0],r=new FileReader;r.onload=()=>{try{const e=JSON.parse(r.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){An.error("RapiDoc: Unable to read or parse json")}},r.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value,this.resolvedSpec.tags.forEach((e=>e.paths.filter((t=>{this.matchPaths&&dt(this.matchPaths,t,this.matchType)&&(e.expanded=!0)})))),this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!1,this.matchPaths&&!function(e,t){return t.name.toLowerCase().includes(e.toLowerCase())}(this.matchPaths,e)||(e.expanded=!0)})))),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths="",this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!0}))))}onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0}async onOpenSearchDialog(e){const t=e.detail.querySelector("input");await ct(0),t&&t.focus()}async loadSpec(e){if(e){this.matchPaths="";try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1;const t=await vt.call(this,e,this.spec,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,An.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t),"read"===this.renderStyle&&(await ct(100),this.observeExpandedContent()),this.isIntersectionObserverActive=!0;const r=this.getElementIDFromURL();if(r)"view"===this.renderStyle?this.expandAndGotoOperation(r,!0,!0):this.scrollToPath(r);else if("focused"===this.renderStyle&&!this.gotoPath){var n;const e=this.showInfo?"overview":null===(n=this.resolvedSpec.tags[0])||void 0===n?void 0:n.paths[0];this.scrollToPath(e)}}getComponentBaseURL(){const{href:e}=window.location,t=this.routePrefix.replace(/(#|\/)$/,"");if(!t)return e.split("#")[0];const r=e.lastIndexOf(t);return-1===r?e:e.slice(0,r)}getElementIDFromURL(){const e=this.getComponentBaseURL();return window.location.href.replace(e+this.routePrefix,"")}replaceHistoryState(e){const t=this.getComponentBaseURL();window.history.replaceState(null,null,`${t}${this.routePrefix||"#"}${e}`)}expandAndGotoOperation(e,t=!0){if(!this.resolvedSpec)return;let r=!0;const n=-1===e.indexOf("#")?e:e.substring(1);if(n.startsWith("overview")||"servers"===n||"auth"===n)r=!1;else for(let t=0;t<(null===(a=this.resolvedSpec.tags)||void 0===a?void 0:a.length);t++){var a,o;const n=this.resolvedSpec.tags[t],i=null===(o=n.paths)||void 0===o?void 0:o.find((t=>t.elementId===e));i&&(i.expanded&&n.expanded?r=!1:(i.expanded=!0,n.expanded=!0))}t&&(r&&this.requestUpdate(),window.setTimeout((()=>{const e=this.shadowRoot.getElementById(n);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),"true"===this.updateRoute&&this.replaceHistoryState(n))}),r?150:0))}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){var t,r,n,a;return!("overview"!==e||!this.showInfo)||(!("servers"!==e||!this.allowServerSelection)||(!("auth"!==e||!this.allowAuthentication)||(e.startsWith("tag--")?null===(n=this.resolvedSpec)||void 0===n||null===(a=n.tags)||void 0===a?void 0:a.find((t=>t.elementId===e)):null===(t=this.resolvedSpec)||void 0===t||null===(r=t.tags)||void 0===r?void 0:r.find((t=>t.paths.find((t=>t.elementId===e)))))))}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>0){const t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&("true"===this.updateRoute&&this.replaceHistoryState(e.target.id),r.classList.add("active"),r.part.add("section-navbar-active-item")),t&&t!==r&&(t.classList.remove("active"),t.part.remove("section-navbar-active-item"))}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}async scrollToEventTarget(e,t=!0){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=e.target;if(r.dataset.contentId){if(this.isIntersectionObserverActive=!1,"focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.beforeNavigationFocusedMode()}this.scrollToPath(r.dataset.contentId,!0,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}}async scrollToPath(e,t=!0,r=!0){if("focused"===this.renderStyle&&(this.focusedElementId=e,await ct(0)),"view"===this.renderStyle)this.expandAndGotoOperation(e,t,!0);else{let t=!1;const n=this.shadowRoot.getElementById(e);if(n?(t=!0,n.scrollIntoView({behavior:"auto",block:"start"})):t=!1,t){if("focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.afterNavigationFocusedMode();const t=this.shadowRoot.querySelector("api-response");t&&t.resetSelection()}"true"===this.updateRoute&&this.replaceHistoryState(e);const t=this.shadowRoot.getElementById(`link-${e}`);if(t){r&&t.scrollIntoView({behavior:"auto",block:"center"}),await ct(0);const e=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active");e&&(e.classList.remove("active"),e.part.remove("active"),e.part.remove("section-navbar-active-item")),t.classList.add("active"),t.part.add("section-navbar-active-item")}}}}setHttpUserNameAndPassword(e,t,r){return er.call(this,e,t,r)}setApiKey(e,t){return er.call(this,e,"","",t)}removeAllSecurityKeys(){return tr.call(this)}setApiServer(e){return Lr.call(this,e)}onAdvancedSearch(e,t){const r=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===r.type?r:r.closest(".advanced-search-options").querySelector("input[type=text]");const t=[...r.closest(".advanced-search-options").querySelectorAll("input:checked")].map((e=>e.id));this.advancedSearchMatches=function(e,t,r=[]){if(!e.trim()||0===r.length)return;const n=[];return t.forEach((t=>{t.paths.forEach((t=>{let a="";var o;if(r.includes("search-api-path")&&(a=t.path),r.includes("search-api-descr")&&(a=`${a} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(a=`${a} ${(null===(o=t.parameters)||void 0===o?void 0:o.map((e=>e.name)).join(" "))||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in null===(i=t.requestBody)||void 0===i?void 0:i.content){var i,s,l;null!==(s=t.requestBody.content[r].schema)&&void 0!==s&&s.properties&&(e=ut(null===(l=t.requestBody.content[r].schema)||void 0===l?void 0:l.properties)),a=`${a} ${[...e].join(" ")}`}}r.includes("search-api-resp-descr")&&(a=`${a} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),a.toLowerCase().includes(e.trim().toLowerCase())&&n.push({elementId:t.elementId,method:t.method,path:t.path,summary:t.summary||t.description||"",deprecated:t.deprecated})}))})),n}(e.value,this.resolvedSpec.tags,t)}),t)}}customElements.get("rapi-doc")||customElements.define("rapi-doc",_n);var On=r(5108);customElements.get("rapi-doc-mini")||customElements.define("rapi-doc-mini",class extends se{constructor(){super(),this.isMini=!0,this.updateRoute="false",this.renderStyle="view",this.showHeader="false",this.allowAdvancedSearch="false"}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},layout:{type:String},pathsExpanded:{type:String,attribute:"paths-expanded"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},showSummaryWhenCollapsed:{type:String,attribute:"show-summary-when-collapsed"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},allowTry:{type:String,attribute:"allow-try"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + }`,ot]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0")),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.renderStyle&&"read, view, focused,".includes(`${this.renderStyle},`)||(this.renderStyle="focused"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"default, never,".includes(`${this.schemaHideReadOnly},`)||(this.schemaHideReadOnly="default"),this.schemaHideWriteOnly&&"default, never,".includes(`${this.schemaHideWriteOnly},`)||(this.schemaHideWriteOnly="default"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="400px"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),this.allowAdvancedSearch&&"true, false,".includes(`${this.allowAdvancedSearch},`)||(this.allowAdvancedSearch="true"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.updateRoute&&"true, false,".includes(`${this.updateRoute},`)||(this.updateRoute="true"),this.routePrefix||(this.routePrefix=window.location.href.indexOf("#")>-1?"#":"?endpoint="),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.generateMissingTags&&"true, false,".includes(`${this.generateMissingTags},`)||(this.generateMissingTags="false"),this.sortEndpointsBy&&"method, path, summary, none,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.onNavTagClick&&"expand-collapse, show-description,".includes(`${this.onNavTagClick},`)||(this.onNavTagClick="expand-collapse"),this.navItemSpacing&&"compact, relaxed, default,".includes(`${this.navItemSpacing},`)||(this.navItemSpacing="default"),this.showMethodInNavBar&&"false, as-plain-text, as-colored-text, as-colored-block,".includes(`${this.showMethodInNavBar},`)||(this.showMethodInNavBar="false"),this.usePathInNavBar&&"true, false,".includes(`${this.usePathInNavBar},`)||(this.usePathInNavBar="false"),this.navActiveItemMarker&&"left-bar, colored-block".includes(`${this.navActiveItemMarker},`)||(this.navActiveItemMarker="left-bar"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.allowServerSelection&&"true, false,".includes(`${this.allowServerSelection},`)||(this.allowServerSelection="true"),this.allowAuthentication&&"true, false,".includes(`${this.allowAuthentication},`)||(this.allowAuthentication="true"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes(`${this.infoDescriptionHeadingsInNavBar},`)||(this.infoDescriptionHeadingsInNavBar="false"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),this.cssFile||(this.cssFile=null),this.cssClasses||(this.cssClasses=""),Ge().languages.node=Ge().languages.javascript,Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)}),window.addEventListener("hashchange",(()=>{this.scrollToPath(this.getElementIDFromURL())}),!0)}disconnectedCallback(){super.disconnectedCallback()}infoDescriptionHeadingRenderer(){const e=new Ve.Renderer;return e.heading=(e,t,r,n)=>`${e}`,e}render(){return In.call(this)}attributeChangedCallback(e,t,r){if("spec-url"!==e&&"spec"!==e||t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.gotoPath&&!window.location.hash&&this.scrollToPath(this.gotoPath)}),0),"render-style"===e&&"read"===r&&window.setTimeout((()=>{this.observeExpandedContent()}),100),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSpecFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);const t=e.target.files[0],r=new FileReader;r.onload=()=>{try{const e=JSON.parse(r.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){Dn.error("RapiDoc: Unable to read or parse json")}},r.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value,this.resolvedSpec.tags.forEach((e=>e.paths.filter((t=>{this.matchPaths&&dt(this.matchPaths,t,this.matchType)&&(e.expanded=!0)})))),this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!1,this.matchPaths&&!function(e,t){return t.name.toLowerCase().includes(e.toLowerCase())}(this.matchPaths,e)||(e.expanded=!0)})))),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths="",this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!0}))))}onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0}async onOpenSearchDialog(e){const t=e.detail.querySelector("input");await ct(0),t&&t.focus()}async loadSpec(e){if(e){this.matchPaths="";try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1;const t=await vt.call(this,e,this.spec,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Dn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t),"read"===this.renderStyle&&(await ct(100),this.observeExpandedContent()),this.isIntersectionObserverActive=!0;const r=this.getElementIDFromURL();if(r)"view"===this.renderStyle?this.expandAndGotoOperation(r,!0,!0):this.scrollToPath(r);else if("focused"===this.renderStyle&&!this.gotoPath){var n;const e=this.showInfo?"overview":null===(n=this.resolvedSpec.tags[0])||void 0===n?void 0:n.paths[0];this.scrollToPath(e)}}getComponentBaseURL(){const{href:e}=window.location,t=this.routePrefix.replace(/(#|\/)$/,"");if(!t)return e.split("#")[0];const r=e.split(t);return r.length<=0?e:r[0]}getElementIDFromURL(){const{href:e}=window.location,t=this.getComponentBaseURL(),r=`${t}${this.routePrefix}`;return e.startsWith(r)&&e!==t?e.slice(r.length):""}replaceHistoryState(e){const t=this.getComponentBaseURL();window.history.replaceState(null,null,`${t}${this.routePrefix||"#"}${e}`)}expandAndGotoOperation(e,t=!0){if(!this.resolvedSpec)return;let r=!0;const n=-1===e.indexOf("#")?e:e.substring(1);if(n.startsWith("overview")||"servers"===n||"auth"===n)r=!1;else for(let t=0;t<(null===(a=this.resolvedSpec.tags)||void 0===a?void 0:a.length);t++){var a,o;const n=this.resolvedSpec.tags[t],i=null===(o=n.paths)||void 0===o?void 0:o.find((t=>t.elementId===e));i&&(i.expanded&&n.expanded?r=!1:(i.expanded=!0,n.expanded=!0))}t&&(r&&this.requestUpdate(),window.setTimeout((()=>{const e=this.shadowRoot.getElementById(n);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),"true"===this.updateRoute&&this.replaceHistoryState(n))}),r?150:0))}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){var t,r,n,a;return!("overview"!==e||!this.showInfo)||(!("servers"!==e||!this.allowServerSelection)||(!("auth"!==e||!this.allowAuthentication)||(e.startsWith("tag--")?null===(n=this.resolvedSpec)||void 0===n||null===(a=n.tags)||void 0===a?void 0:a.find((t=>t.elementId===e)):null===(t=this.resolvedSpec)||void 0===t||null===(r=t.tags)||void 0===r?void 0:r.find((t=>t.paths.find((t=>t.elementId===e)))))))}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>0){const t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&("true"===this.updateRoute&&this.replaceHistoryState(e.target.id),r.classList.add("active"),r.part.add("section-navbar-active-item")),t&&t!==r&&(t.classList.remove("active"),t.part.remove("section-navbar-active-item"))}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}async scrollToEventTarget(e,t=!0){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=e.target;if(r.dataset.contentId){if(this.isIntersectionObserverActive=!1,"focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.beforeNavigationFocusedMode()}this.scrollToPath(r.dataset.contentId,!0,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}}async scrollToPath(e,t=!0,r=!0){if("focused"===this.renderStyle&&(this.focusedElementId=e,await ct(0)),"view"===this.renderStyle)this.expandAndGotoOperation(e,t,!0);else{let t=!1;const n=this.shadowRoot.getElementById(e);if(n?(t=!0,n.scrollIntoView({behavior:"auto",block:"start"})):t=!1,t){if("focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.afterNavigationFocusedMode();const t=this.shadowRoot.querySelector("api-response");t&&t.resetSelection()}"true"===this.updateRoute&&this.replaceHistoryState(e);const t=this.shadowRoot.getElementById(`link-${e}`);if(t){r&&t.scrollIntoView({behavior:"auto",block:"center"}),await ct(0);const e=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active");e&&(e.classList.remove("active"),e.part.remove("active"),e.part.remove("section-navbar-active-item")),t.classList.add("active"),t.part.add("section-navbar-active-item")}}}}setHttpUserNameAndPassword(e,t,r){return rr.call(this,e,t,r)}setApiKey(e,t){return rr.call(this,e,"","",t)}removeAllSecurityKeys(){return nr.call(this)}setApiServer(e){return Br.call(this,e)}onAdvancedSearch(e,t){const r=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===r.type?r:r.closest(".advanced-search-options").querySelector("input[type=text]");const t=[...r.closest(".advanced-search-options").querySelectorAll("input:checked")].map((e=>e.id));this.advancedSearchMatches=function(e,t,r=[]){if(!e.trim()||0===r.length)return;const n=[];return t.forEach((t=>{t.paths.forEach((t=>{let a="";var o;if(r.includes("search-api-path")&&(a=t.path),r.includes("search-api-descr")&&(a=`${a} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(a=`${a} ${(null===(o=t.parameters)||void 0===o?void 0:o.map((e=>e.name)).join(" "))||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in null===(i=t.requestBody)||void 0===i?void 0:i.content){var i,s,l;null!==(s=t.requestBody.content[r].schema)&&void 0!==s&&s.properties&&(e=ut(null===(l=t.requestBody.content[r].schema)||void 0===l?void 0:l.properties)),a=`${a} ${[...e].join(" ")}`}}r.includes("search-api-resp-descr")&&(a=`${a} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),a.toLowerCase().includes(e.trim().toLowerCase())&&n.push({elementId:t.elementId,method:t.method,path:t.path,summary:t.summary||t.description||"",deprecated:t.deprecated})}))})),n}(e.value,this.resolvedSpec.tags,t)}),t)}}customElements.get("rapi-doc")||customElements.define("rapi-doc",Ln);var Mn=r(5108);customElements.get("rapi-doc-mini")||customElements.define("rapi-doc-mini",class extends se{constructor(){super(),this.isMini=!0,this.updateRoute="false",this.renderStyle="view",this.showHeader="false",this.allowAdvancedSearch="false"}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},layout:{type:String},pathsExpanded:{type:String,attribute:"paths-expanded"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},showSummaryWhenCollapsed:{type:String,attribute:"show-summary-when-collapsed"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},allowTry:{type:String,attribute:"allow-try"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},mediumFont:{type:String,attribute:"medium-font"},loadFonts:{type:String,attribute:"load-fonts"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -5022,7 +5202,7 @@ pre[class*="language-"] { .only-large-screen-flex{ display:flex; } - }`]}connectedCallback(){if(super.connectedCallback(),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.showSummaryWhenCollapsed&&"true, false,".includes(`${this.showSummaryWhenCollapsed},`)||(this.showSummaryWhenCollapsed="true"),this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",this.pathsExpanded="true"===this.pathsExpanded,(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.sortEndpointsBy&&"method, path, summary,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)})}render(){return kn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({apiKeyId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,On.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}setHttpUserNameAndPassword(e,t,r){return er.call(this,e,t,r)}setApiKey(e,t){return er.call(this,e,"","",t)}removeAllSecurityKeys(){return tr.call(this)}setApiServer(e){return Lr.call(this,e)}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}});class Pn extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",(e=>this.receiveStorage(e)),!0)}receiveAuthParms(){let e={};if(document.location.search){const t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){const t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){const r=e.split("&");for(let e=0;e{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.showSummaryWhenCollapsed&&"true, false,".includes(`${this.showSummaryWhenCollapsed},`)||(this.showSummaryWhenCollapsed="true"),this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",this.pathsExpanded="true"===this.pathsExpanded,(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.sortEndpointsBy&&"method, path, summary,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)})}render(){return In.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",a="",o="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,a=this.getAttribute("api-key-location"),o=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=r,n=this.getAttribute("api-key-name"),o=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(o=r,a=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=a,e.value=o,e.finalKeyValue=o):this.resolvedSpec.securitySchemes.push({apiKeyId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:a,value:o,finalKeyValue:o}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Mn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}setHttpUserNameAndPassword(e,t,r){return rr.call(this,e,t,r)}setApiKey(e,t){return rr.call(this,e,"","",t)}removeAllSecurityKeys(){return nr.call(this)}setApiServer(e){return Br.call(this,e)}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}});class Nn extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",(e=>this.receiveStorage(e)),!0)}receiveAuthParms(){let e={};if(document.location.search){const t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){const t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){const r=e.split("&");for(let e=0;e
    @@ -5045,19 +5225,19 @@ pre[class*="language-"] {
    `))} - `}function jn(){return B` - ${"true"===this.showInfo?nn.call(this):""} + `}function Un(){return B` + ${"true"===this.showInfo?hn.call(this):""}
    - ${this.resolvedSpec.schemaAndExamples.map((e=>{var t;const r=Ut(e.schema,"json",e.examples,e.example,!0,!1,"json",!0);return e.selectedExample=null===(t=r[0])||void 0===t?void 0:t.exampleId,B` + ${this.resolvedSpec.schemaAndExamples.map((e=>{var t;const r=qt(e.schema,"json",e.examples,e.example,!0,!1,"json",!0);return e.selectedExample=null===(t=r[0])||void 0===t?void 0:t.exampleId,B`
    ${e.name}
    - ${Et(Ze(e.description||""))} + ${Et(Ve(e.description||""))}
    `}))}
    - `}function Rn(e=!1){if(!this.resolvedSpec)return"";const t={bg1:Sn(this.bgColor)?this.bgColor:"",fg1:Sn(this.textColor)?this.textColor:"",headerColor:Sn(this.headerColor)?this.headerColor:"",primaryColor:Sn(this.primaryColor)?this.primaryColor:"",navBgColor:Sn(this.navBgColor)?this.navBgColor:"",navTextColor:Sn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Sn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Sn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Sn(this.navAccentColor)?this.navAccentColor:"",navAccenttextColor:Sn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + `}function qn(e=!1){if(!this.resolvedSpec)return"";const t={bg1:Cn(this.bgColor)?this.bgColor:"",fg1:Cn(this.textColor)?this.textColor:"",headerColor:Cn(this.headerColor)?this.headerColor:"",primaryColor:Cn(this.primaryColor)?this.primaryColor:"",navBgColor:Cn(this.navBgColor)?this.navBgColor:"",navTextColor:Cn(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Cn(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Cn(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Cn(this.navAccentColor)?this.navAccentColor:"",navAccenttextColor:Cn(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?B` + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)}
    ${this.resolvedSpec.info.description}
    `:B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)} - ${bn.call(this)} + ${On.call(this)}

    Header

    @@ -5099,7 +5279,7 @@ pre[class*="language-"] {
    `:this.resolvedSpec.isSpecLoading?B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)}
    @@ -5107,15 +5287,15 @@ pre[class*="language-"] {
    `:B` - ${"dark"===this.theme?En.call(this,"dark",t):En.call(this,"light",t)} + ${"dark"===this.theme?Rn.call(this,"dark",t):Rn.call(this,"light",t)} - ${"false"===this.showHeader?"":bn.call(this)} + ${"false"===this.showHeader?"":On.call(this)}
    - ${Tn.call(this)} + ${Fn.call(this)}
    @@ -5124,14 +5304,14 @@ pre[class*="language-"] { ${!0===this.loading?B`
    `:B` ${!0===this.loadFailed?B`
    Unable to load the Spec
    `:B`
    - ${jn.call(this)} + ${Un.call(this)}
    `}`}
    - `}customElements.get("oauth-receiver")||customElements.define("oauth-receiver",Pn);var Cn=r(5108);customElements.get("json-schema-viewer")||customElements.define("json-schema-viewer",class extends se{constructor(){super(),this.isMini=!1,this.updateRoute="false",this.renderStyle="focused",this.showHeader="true",this.allowAdvancedSearch="false",this.selectedExampleForEachSchema={}}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` + `}customElements.get("oauth-receiver")||customElements.define("oauth-receiver",Nn);var Bn=r(5108);customElements.get("json-schema-viewer")||customElements.define("json-schema-viewer",class extends se{constructor(){super(),this.isMini=!1,this.updateRoute="false",this.renderStyle="focused",this.showHeader="true",this.allowAdvancedSearch="false",this.selectedExampleForEachSchema={}}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},loading:{type:Boolean}}}static get styles(){return[Ye,Je,Xe,Qe,et,tt,rt,nt,at,c` :host { display:flex; flex-direction: column; @@ -5217,5 +5397,5 @@ pre[class*="language-"] { .only-large-screen-flex{ display:flex; } - }`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Ze.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ke().languages[t]?Ke().highlight(e,Ke().languages[t],t):e)})}render(){return Rn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Cn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),i=o[0],l=o[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,i,l)),p=0,d=l>0?i-4:i;for(r=0;r>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=16383,s=0,c=n-a;sc?c:s+i));1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var a,o,i=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";var n=r(5108);const a=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=l(r);const a=n.write(e,t);a!==r&&(n=n.slice(0,a));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const a=function(e){if(c.isBuffer(e)){const t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?l(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=l(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(a)return n?-1:Z(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){let o,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;na&&(n=a):n=a;const o=t.length;let i;for(n>o/2&&(n=o/2),i=0;i>8,a=r%256,o.push(a),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);const n=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+i<=r){let r,n,s,l;switch(i){case 1:t<128&&(o=t);break;case 2:r=e[a+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[a+1],n=e[a+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=i}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(o,i),l=this.slice(n,a),p=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function P(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;an)&&(r=n);let a="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function M(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function L(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return t=+t,r>>>=0,a||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],a=1,o=0;for(;++o>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(a)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let n=t,a=1,o=this[e+--n];for(;n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||C(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=0,o=1,i=0;for(this[t]=255&e;++a>0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=r-1,o=1,i=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/o>>0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,a,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,a,o)}function z(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>2**32?a=B(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=B(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let r;t=t||1/0;const n=e.length;let a=null;const o=[];for(let i=0;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},584:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(e,t,r)=>{"use strict";var n=r(210),a=r(5559),o=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),a=r(210),o=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(i,o),l=a("%Object.getOwnPropertyDescriptor%",!0),c=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,i,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},472:(e,t,r)=>{"use strict";var n=r(4663);e.exports=function(e,t){return e?void t.then((function(t){n((function(){e(null,t)}))}),(function(t){n((function(){e(t)}))})):t}},4663:(e,t,r)=>{"use strict";var n=r(4155);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},5108:(e,t,r)=>{var n=r(9539),a=r(9282);function o(){return(new Date).getTime()}var i,s=Array.prototype.slice,l={};i=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=o()-t;i.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);a.ok(!1,n.format.apply(null,t))}},"assert"]],p=0;p{"use strict";var n=r(2215),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,l=r(1044)(),c=s&&l,p=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(a=n)||"[object Function]"!==o.call(a)||!n())return;var a;c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{var n=r(2830),a=["write","end","destroy"],o=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function l(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n{var n=r(4155),a=r(5108),o=r(8764).Buffer,i=r(2830).Stream,s=t,l=r(6547),c=r(4404),p=r(5122),d=r(2508),u=r(7549),h=r(4563),f=r(1815),m=r.g.setImmediate||n.nextTick;s.Stream=i,s.through=l,s.from=c,s.duplex=p,s.map=d,s.pause=u,s.split=h,s.pipeline=s.connect=s.pipe=f,s.concat=s.merge=function(){var e=[].slice.call(arguments);1===e.length&&e[0]instanceof Array&&(e=e[0]);var t=new i;t.setMaxListeners(0);var r=0;return t.writable=t.readable=!0,e.length?e.forEach((function(n){n.pipe(t,{end:!1});var a=!1;n.on("end",(function(){a||(a=!0,++r==e.length&&t.emit("end"))}))})):n.nextTick((function(){t.emit("end")})),t.write=function(e){this.emit("data",e)},t.destroy=function(){e.forEach((function(e){e.destroy&&e.destroy()}))},t},s.writeArray=function(e){if("function"!=typeof e)throw new Error("function writeArray (done): done must be function");var t=new i,r=[],n=!1;return t.write=function(e){r.push(e)},t.end=function(){n=!0,e(null,r)},t.writable=!0,t.readable=!1,t.destroy=function(){t.writable=t.readable=!1,n||e(new Error("destroyed before end"),r)},t},s.readArray=function(e){var t=new i,r=0,a=!1,o=!1;if(t.readable=!0,t.writable=!1,!Array.isArray(e))throw new Error("event-stream.read expects an array");return t.resume=function(){if(!o){a=!1;for(var n=e.length;r1&&r.emit("data",i),m((function(){if(!(s||o||l))try{l=!0,e.call(r,a++,(function(){l=!1,c.apply(null,arguments)}))}catch(e){r.emit("error",e)}}))}return r.on("end",(function(){s=!0})),r.resume=function(){o=!1,c()},n.nextTick(c),r.pause=function(){o=!0},r.destroy=function(){r.emit("end"),r.emit("close"),s=!0},r},s.mapSync=function(e){return s.through((function(t){var r;try{r=e(t)}catch(e){return this.emit("error",e)}void 0!==r&&this.emit("data",r)}))},s.log=function(e){return s.through((function(t){[].slice.call(arguments);e?a.error(e,t):a.error(t),this.emit("data",t)}))},s.child=function(e){return s.duplex(e.stdin,e.stdout)},s.parse=function(e){var t=!(!e||!e.error);return s.through((function(e){var r;try{e&&(r=JSON.parse(e.toString()))}catch(r){return t?this.emit("error",r):a.error(r,"attempting to parse:",e)}void 0!==r&&this.emit("data",r)}))},s.stringify=function(){var e=r(8764).Buffer;return s.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))},s.replace=function(e,t){return s.pipeline(s.split(e),s.join(t))},s.join=function(e){if("function"==typeof e)return s.wait(e);var t=!0;return s.through((function(r){return t||this.emit("data",e),t=!1,this.emit("data",r),!0}))},s.wait=function(e){var t=[];return s.through((function(e){t.push(e)}),(function(){var r=o.isBuffer(t[0])?o.concat(t):t.join("");this.emit("data",r),this.emit("end"),e&&e(null,r)}))},s.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},7187:(e,t,r)=>{"use strict";var n,a=r(5108),o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,a,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function p(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,s,l;if(p(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=d(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,a&&a.warn&&a.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=h.bind(n);return a.listener=r,n.wrapFn=a,a}function m(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,p=y(l,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!=a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,a=t.cmp&&(r=t.cmp,function(e){return function(t,n){var a={key:t,value:e[t]},o={key:n,value:e[n]};return r(a,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,i;if(Array.isArray(t)){for(i="[",r=0;r{"use strict";var n=r(5320),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===a.call(e)?function(e,t,r){for(var n=0,a=e.length;n{e.exports="object"==typeof self?self.FormData:window.FormData},4404:(e,t,r)=>{"use strict";var n=r(4155),a=r(2830);e.exports=function e(t){if(Array.isArray(t)){var r=0,o=t.length;return e((function(e){return r{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var a,o=t.call(arguments,1),i=Math.max(0,n.length-o.length),s=[],l=0;l{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new i},p=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(1405)(),u=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?n:u(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?u([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?u(u([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?u((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?u((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?u(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":p,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var g=u(u(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=u(a.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),x=r(7642),w=b.call(Function.call,Array.prototype.concat),$=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,O=function(e,t){var r,n=e;if(x(v,n)&&(n="%"+(r=v[n])[0]+"%"),x(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,A,(function(e,t,r,a){n[n.length]=r?S(a,_,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,p=!1,d=o.alias;d&&(n=d[0],$(r,w([0,1],d)));for(var u=1,h=!0;u=r.length){var v=l(c,f);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else h=x(c,f),c=c[f];h&&!p&&(m[s]=c)}}return c}},6841:(e,t)=>{"use strict";t.Z=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))},7296:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8023:(e,t,r)=>{"use strict";e.exports={afterRequest:r(3932),beforeRequest:r(6136),browser:r(805),cache:r(1632),content:r(1567),cookie:r(5725),creator:r(7218),entry:r(4560),har:r(5579),header:r(5147),log:r(3013),page:r(4777),pageTimings:r(5538),postData:r(2096),query:r(1251),request:r(9646),response:r(9103),timings:r(2007)}},3784:(e,t,r)=>{var n,a=r(5096),o=r(8300),i=r(8023);function s(e,t,s){t=t||{};var l=(n=n||function(){var e=new a({allErrors:!0});return e.addMetaSchema(r(6273)),e.addSchema(i),e}()).getSchema(e+".json"),c=l(t);return"function"==typeof s?s(c?null:new o(l.errors),c):c}t.afterRequest=function(e,t){return s("afterRequest",e,t)},t.beforeRequest=function(e,t){return s("beforeRequest",e,t)},t.browser=function(e,t){return s("browser",e,t)},t.cache=function(e,t){return s("cache",e,t)},t.content=function(e,t){return s("content",e,t)},t.cookie=function(e,t){return s("cookie",e,t)},t.creator=function(e,t){return s("creator",e,t)},t.entry=function(e,t){return s("entry",e,t)},t.har=function(e,t){return s("har",e,t)},t.header=function(e,t){return s("header",e,t)},t.log=function(e,t){return s("log",e,t)},t.page=function(e,t){return s("page",e,t)},t.pageTimings=function(e,t){return s("pageTimings",e,t)},t.postData=function(e,t){return s("postData",e,t)},t.query=function(e,t){return s("query",e,t)},t.request=function(e,t){return s("request",e,t)},t.response=function(e,t){return s("response",e,t)},t.timings=function(e,t){return s("timings",e,t)}},8300:e=>{function t(e){var t="validation failed";this.name="HARError",this.message=t,this.errors=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}t.prototype=Error.prototype,e.exports=t},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),a=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9267:(e,t,r)=>{var n=r(8501),a=r(8575),o=e.exports;for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);function s(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},3503:(e,t,r)=>{var n=r(5108),a=r(4155);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=r(2212)).log=function(){return"object"==typeof n&&n.log&&Function.prototype.apply.call(n.log,n,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},2212:(e,t,r)=>{var n,a=r(5108);function o(e){function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),l=0;l{var t=1e3,r=60*t,n=60*r,a=24*n,o=365.25*a;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?i(l=e,a,"day")||i(l,n,"hour")||i(l,r,"minute")||i(l,t,"second")||l+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9544:(e,t,r)=>{"use strict";const n=r(9539),a=function(e,t){this.code=[],this.indentation=e,this.lineJoin=t||"\n"};a.prototype.buildLine=function(e,t){let r="",a=2;if("[object String]"===Object.prototype.toString.call(e))a=1,t=e,e=0;else if(null===e)return null;for(;e;)r+=this.indentation,e--;const o=Array.prototype.slice.call(arguments,a,arguments.length);return o.unshift(r+t),n.format.apply(this,o)},a.prototype.unshift=function(){return this.code.unshift(this.buildLine.apply(this,arguments)),this},a.prototype.push=function(){return this.code.push(this.buildLine.apply(this,arguments)),this},a.prototype.blank=function(){return this.code.push(null),this},a.prototype.join=function(){return this.code.join(this.lineJoin)},e.exports=a},1747:e=>{const t="\r\n",r="-".repeat(2),n=Symbol.toStringTag,a=e=>"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[n]);function o(e,n,o){let i="";return i+=`${r}${e}${t}`,i+=`Content-Disposition: form-data; name="${n}"`,a(o)&&(i+=`; filename="${o.name}"${t}`,i+=`Content-Type: ${o.type||"application/octet-stream"}`),`${i}${t.repeat(2)}`}e.exports.getBoundary=()=>{let e="--------------------------";for(let t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);return e},e.exports.formDataIterator=function*(e,n){for(const[r,i]of e)yield o(n,r,i),a(i)?yield*i.stream():yield i,yield t;yield(e=>`${r}${e}${r}${t.repeat(2)}`)(n)},e.exports.isBlob=a},174:e=>{e.exports={getHeader:(e,t)=>e[Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()))],getHeaderName:(e,t)=>Object.keys(e).find((e=>{if(e.toLowerCase()===t.toLowerCase())return e})),hasHeader:(e,t)=>Boolean(Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())))}},4411:e=>{"use strict";e.exports=function(e,t){if(void 0===e[t.name])return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const r=[e[t.name],t.value];return e[t.name]=r,e}},9426:(e,t,r)=>{"use strict";const n=r(9539);e.exports={quote:function(e){return/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:n.format("'%s'",e.replace(/'/g,"'\\''"))},escape:function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}}},212:(e,t,r)=>{"use strict";const n=r(3503)("httpsnippet"),a=r(2704),o=r(6230),i=r(7673),s=r(4411),l=r(174),c=r(9245),p=r(8575),d=r(3784),{formDataIterator:u,isBlob:h}=r(1747),f=function(e){let t;const r=this,n=Object.assign({},e);r.requests=[],t=n.log&&n.log.entries?n.log.entries:[{request:n}],t.forEach((function(e){e.request.httpVersion=e.request.httpVersion||"HTTP/1.1",e.request.queryString=e.request.queryString||[],e.request.headers=e.request.headers||[],e.request.cookies=e.request.cookies||[],e.request.postData=e.request.postData||{},e.request.postData.mimeType=e.request.postData.mimeType||"application/octet-stream",e.request.bodySize=0,e.request.headersSize=0,e.request.postData.size=0,d.request(e.request,(function(t,n){if(!n)throw t;r.requests.push(r.prepare(e.request))}))}))};f.prototype.prepare=function(e){if(e.queryObj={},e.headersObj={},e.cookiesObj={},e.allHeaders={},e.postData.jsonObj=!1,e.postData.paramsObj=!1,e.queryString&&e.queryString.length&&(n("queryString found, constructing queryString pair map"),e.queryObj=e.queryString.reduce(s,{})),e.headers&&e.headers.length){const t=/^HTTP\/2/;e.headersObj=e.headers.reduce((function(r,n){let a=n.name;return e.httpVersion.match(t)&&(a=a.toLowerCase()),r[a]=n.value,r}),{})}e.cookies&&e.cookies.length&&(e.cookiesObj=e.cookies.reduceRight((function(e,t){return e[t.name]=t.value,e}),{}));const t=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));switch(t.length&&(e.allHeaders.cookie=t.join("; ")),e.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(e.postData.text="",e.postData.mimeType="multipart/form-data",e.postData.params){const t=new o,r="function"==typeof t[Symbol.iterator],n="---011000010111000001101001";if(r||(t._boundary=n),e.postData.params.forEach((function(e){const n=e.name,a=e.value||"",o=e.fileName||null;r?h(a)?t.append(n,a,o):t.append(n,a):t.append(n,a,{filename:o,contentType:e.contentType||null})})),r)for(const r of u(t,n))e.postData.text+=r;else t.pipe(a.map((function(t,r){e.postData.text+=t})));e.postData.boundary=n;const i=l.hasHeader(e.headersObj,"content-type")?l.getHeaderName(e.headersObj,"content-type"):"content-type";e.headersObj[i]="multipart/form-data; boundary="+n}break;case"application/x-www-form-urlencoded":e.postData.params?(e.postData.paramsObj=e.postData.params.reduce(s,{}),e.postData.text=i.stringify(e.postData.paramsObj)):e.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(e.postData.mimeType="application/json",e.postData.text)try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){n(t),e.postData.mimeType="text/plain"}}return e.allHeaders=Object.assign(e.allHeaders,e.headersObj),e.uriObj=p.parse(e.url,!0,!0),e.queryObj=Object.assign(e.queryObj,e.uriObj.query),e.uriObj.query=null,e.uriObj.search=null,e.uriObj.path=e.uriObj.pathname,e.url=p.format(e.uriObj),e.uriObj.query=e.queryObj,e.uriObj.search=i.stringify(e.queryObj),e.uriObj.search&&(e.uriObj.path=e.uriObj.pathname+"?"+e.uriObj.search),e.fullUrl=p.format(e.uriObj),e},f.prototype.convert=function(e,t,r){!r&&t&&(r=t);const n=this._matchTarget(e,t);if(n){const e=this.requests.map((function(e){return n(e,r)}));return 1===e.length?e[0]:e}return!1},f.prototype._matchTarget=function(e,t){return!!c.hasOwnProperty(e)&&("string"==typeof t&&"function"==typeof c[e][t]?c[e][t]:c[e][c[e].info.default])},e.exports=f,e.exports.addTarget=function(e){if(!("info"in e))throw new Error("The supplied custom target must contain an `info` object.");if(!("key"in e.info&&"title"in e.info&&"extname"in e.info&&"default"in e.info))throw new Error("The supplied custom target must have an `info` object with a `key`, `title`, `extname`, and `default` property.");if(c.hasOwnProperty(e.info.key))throw new Error("The supplied custom target already exists.");if(1===Object.keys(e).length)throw new Error("A custom target must have a client defined on it.");c[e.info.key]=e},e.exports.addTargetClient=function(e,t){if(!c.hasOwnProperty(e))throw new Error(`Sorry, but no ${e} target exists to add clients to.`);if(!("info"in t))throw new Error("The supplied custom target client must contain an `info` object.");if(!("key"in t.info)||!("title"in t.info))throw new Error("The supplied custom target client must have an `info` object with a `key` and `title` property.");if(c[e].hasOwnProperty(t.info.key))throw new Error("The supplied custom target client already exists, please use a different key");c[e][t.info.key]=t},e.exports.availableTargets=function(){return Object.keys(c).map((function(e){const t=Object.assign({},c[e].info),r=Object.keys(c[e]).filter((function(e){return!~["info","index"].indexOf(e)})).map((function(t){return c[e][t].info}));return r.length&&(t.clients=r),t}))},e.exports.extname=function(e){return c[e]?c[e].info.extname:""}},5767:(e,t,r)=>{"use strict";e.exports={info:{key:"c",title:"C",extname:".c",default:"libcurl"},libcurl:r(9897)}},9897:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("CURL *hnd = curl_easy_init();").blank().push('curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "%s");',e.method.toUpperCase()).push('curl_easy_setopt(hnd, CURLOPT_URL, "%s");',e.fullUrl);const a=Object.keys(e.headersObj);return a.length&&(r.blank().push("struct curl_slist *headers = NULL;"),a.forEach((function(t){r.push('headers = curl_slist_append(headers, "%s: %s");',t,e.headersObj[t])})),r.push("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),e.allHeaders.cookie&&r.blank().push('curl_easy_setopt(hnd, CURLOPT_COOKIE, "%s");',e.allHeaders.cookie),e.postData.text&&r.blank().push("curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, %s);",JSON.stringify(e.postData.text)),r.blank().push("CURLcode ret = curl_easy_perform(hnd);"),r.join()},e.exports.info={key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl/",description:"Simple REST and HTTP API Client for C"}},1972:(e,t,r)=>{"use strict";const n=r(9544),a=r(174),o=function(e){this.name=e};o.prototype.toString=function(){return":"+this.name};const i=function(e){this.path=e};i.prototype.toString=function(){return'(clojure.java.io/file "'+this.path+'")'};const s=function(e){return void 0!==e?e.constructor.name.toLowerCase():null},l=function(e){return"object"===s(e)&&0===Object.keys(e).length},c=function(e){return Object.keys(e).filter((function(t){return l(e[t])})).forEach((function(t){delete e[t]})),e},p=function(e,t){const r=Array.apply(null,Array(e)).map((function(e){return" "})).join("");return t.replace(/\n/g,"\n"+r)},d=function(e){switch(s(e)){case"string":return'"'+e.replace(/"/g,'\\"')+'"';case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return'#"'+e.source+'"';case"object":{const t=Object.keys(e).reduce((function(t,r){return t+":"+r+" "+p(r.length+2,d(e[r]))+"\n "}),"").trim();return"{"+p(1,t)+"}"}case"array":{const t=e.reduce((function(e,t){return e+" "+d(t)}),"").trim();return"["+p(1,t)+"]"}}};e.exports=function(e,t){const r=new n(t);if(-1===["get","post","put","delete","patch","head","options"].indexOf(e.method.toLowerCase()))return r.push("Method not supported").join();const s={headers:e.allHeaders,"query-params":e.queryObj};switch(e.postData.mimeType){case"application/json":s["content-type"]=new o("json"),s["form-params"]=e.postData.jsonObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"application/x-www-form-urlencoded":s["form-params"]=e.postData.paramsObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"text/plain":s.body=e.postData.text,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"multipart/form-data":s.multipart=e.postData.params.map((function(e){return e.fileName&&!e.value?{name:e.name,content:new i(e.fileName)}:{name:e.name,content:e.value}})),delete s.headers[a.getHeaderName(s.headers,"content-type")]}if("application/json"===a.getHeader(s.headers,"accept"))s.accept=new o("json"),delete s.headers[a.getHeaderName(s.headers,"accept")];return r.push("(require '[clj-http.client :as client])\n"),l(c(s))?r.push('(client/%s "%s")',e.method.toLowerCase(),e.url):r.push('(client/%s "%s" %s)',e.method.toLowerCase(),e.url,p(11+e.method.length+e.url.length,d(c(s)))),r.join()},e.exports.info={key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."}},3686:(e,t,r)=>{"use strict";e.exports={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clj_http:r(1972)}},4681:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent);let i="";const s=!!e.allHeaders.cookie,l=function(e){const t=a.getHeader(e.allHeaders,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return t.split(",").forEach((function(e){const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}})),n}(e);(s||l.length)&&(i="clientHandler",o.push("var clientHandler = new HttpClientHandler"),o.push("{"),s&&o.push(1,"UseCookies = false,"),l.length&&o.push(1,"AutomaticDecompression = %s,",l.join(" | ")),o.push("};")),o.push("var client = new HttpClient(%s);",i),o.push("var request = new HttpRequestMessage"),o.push("{");let c=e.method.toUpperCase();c=c&&-1!==["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].indexOf(c)?`HttpMethod.${c[0]}${c.substring(1).toLowerCase()}`:`new HttpMethod("${c}")`,o.push(1,"Method = %s,",c),o.push(1,'RequestUri = new Uri("%s"),',e.fullUrl);const p=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(p.length&&(o.push(1,"Headers ="),o.push(1,"{"),p.forEach((function(t){o.push(2,'{ "%s", "%s" },',t,e.allHeaders[t])})),o.push(1,"},")),e.postData.text){const t=e.postData.mimeType;switch(t){case"application/x-www-form-urlencoded":o.push(1,"Content = new FormUrlEncodedContent(new Dictionary"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,'{ "%s", "%s" },',e.name,e.value)})),o.push(1,"}),");break;case"multipart/form-data":o.push(1,"Content = new MultipartFormDataContent"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,"new StringContent(%s)",JSON.stringify(e.value||"")),o.push(2,"{"),o.push(3,"Headers ="),o.push(3,"{"),e.contentType&&o.push(4,'ContentType = new MediaTypeHeaderValue("%s"),',e.contentType),o.push(4,'ContentDisposition = new ContentDispositionHeaderValue("form-data")'),o.push(4,"{"),o.push(5,'Name = "%s",',e.name),e.fileName&&o.push(5,'FileName = "%s",',e.fileName),o.push(4,"}"),o.push(3,"}"),o.push(2,"},")})),o.push(1,"},");break;default:o.push(1,"Content = new StringContent(%s)",JSON.stringify(e.postData.text||"")),o.push(1,"{"),o.push(2,"Headers ="),o.push(2,"{"),o.push(3,'ContentType = new MediaTypeHeaderValue("%s")',t),o.push(2,"}"),o.push(1,"}")}}return o.push("};"),o.push("using (var response = await client.SendAsync(request))"),o.push("{"),o.push(1,"response.EnsureSuccessStatusCode();"),o.push(1,"var body = await response.Content.ReadAsStringAsync();"),o.push(1,"Console.WriteLine(body);"),o.push("}"),o.join()},e.exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"}},7838:(e,t,r)=>{"use strict";e.exports={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},restsharp:r(3764),httpclient:r(4681)}},3764:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase()))return"Method not supported";r.push('var client = new RestClient("%s");',e.fullUrl),r.push("var request = new RestRequest(Method.%s);",e.method.toUpperCase());const o=Object.keys(e.headersObj);return o.length&&o.forEach((function(t){r.push('request.AddHeader("%s", "%s");',t,e.headersObj[t])})),e.cookies.length&&e.cookies.forEach((function(e){r.push('request.AddCookie("%s", "%s");',e.name,e.value)})),e.postData.text&&r.push('request.AddParameter("%s", %s, ParameterType.RequestBody);',a.getHeader(e.allHeaders,"content-type"),JSON.stringify(e.postData.text)),r.push("IRestResponse response = client.Execute(request);"),r.join()},e.exports.info={key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"}},786:(e,t,r)=>{"use strict";e.exports={info:{key:"go",title:"Go",extname:".go",default:"native"},native:r(4398)}},4398:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n("\t"),a=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,timeout:-1},t),o=a.checkErrors?"err":"_",i=a.showBoilerplate?1:0,s=function(){a.checkErrors&&r.push(i,"if err != nil {").push(i+1,"panic(err)").push(i,"}")};let l;return a.showBoilerplate&&(r.push("package main").blank().push("import (").push(i,'"fmt"'),a.timeout>0&&r.push(i,'"time"'),e.postData.text&&r.push(i,'"strings"'),r.push(i,'"net/http"'),a.printBody&&r.push(i,'"io/ioutil"'),r.push(")").blank().push("func main() {").blank()),a.timeout>0?(l="client",r.push(i,"client := http.Client{").push(i+1,"Timeout: time.Duration(%s * time.Second),",a.timeout).push(i,"}").blank()):l="http.DefaultClient",r.push(i,'url := "%s"',e.fullUrl).blank(),e.postData.text?r.push(i,"payload := strings.NewReader(%s)",JSON.stringify(e.postData.text)).blank().push(i,'req, %s := http.NewRequest("%s", url, payload)',o,e.method).blank():r.push(i,'req, %s := http.NewRequest("%s", url, nil)',o,e.method).blank(),s(),Object.keys(e.allHeaders).length&&(Object.keys(e.allHeaders).forEach((function(t){r.push(i,'req.Header.Add("%s", "%s")',t,e.allHeaders[t])})),r.blank()),r.push(i,"res, %s := %s.Do(req)",o,l),s(),a.printBody&&(r.blank().push(i,"defer res.Body.Close()").push(i,"body, %s := ioutil.ReadAll(res.Body)",o),s()),r.blank().push(i,"fmt.Println(res)"),a.printBody&&r.push(i,"fmt.Println(string(body))"),a.showBoilerplate&&r.blank().push("}"),r.join()},e.exports.info={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"}},7659:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(9544),o=r(9539);e.exports=function(e,t){const r=Object.assign({absoluteURI:!1,autoContentLength:!0,autoHost:!0},t),i=new a("","\r\n"),s=r.absoluteURI?e.fullUrl:e.uriObj.path;i.push("%s %s %s",e.method,s,e.httpVersion),Object.keys(e.allHeaders).forEach((function(t){const r=t.toLowerCase().replace(/(^|-)(\w)/g,(function(e){return e.toUpperCase()}));i.push("%s",o.format("%s: %s",r,e.allHeaders[t]))})),r.autoHost&&-1===Object.keys(e.allHeaders).indexOf("host")&&i.push("Host: %s",e.uriObj.host),r.autoContentLength&&e.postData.text&&-1===Object.keys(e.allHeaders).indexOf("content-length")&&i.push("Content-Length: %d",n.byteLength(e.postData.text,"ascii")),i.blank();const l=i.join();let c="";return e.postData.text&&(c=e.postData.text),l+"\r\n"+c},e.exports.info={key:"1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"}},8322:(e,t,r)=>{"use strict";e.exports={info:{key:"http",title:"HTTP",extname:"",default:"1.1"},1.1:r(7659)}},9245:(e,t,r)=>{"use strict";e.exports={c:r(5767),clojure:r(3686),csharp:r(7838),go:r(786),http:r(8322),java:r(3625),javascript:r(5100),kotlin:r(3217),node:r(3095),objc:r(6629),ocaml:r(4955),php:r(8663),powershell:r(3218),python:r(3979),r:r(2817),ruby:r(2682),shell:r(869),swift:r(4484)}},9868:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("AsyncHttpClient client = new DefaultAsyncHttpClient();"),a.push(`client.prepare("${e.method.toUpperCase()}", "${e.fullUrl}")`);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.setHeader("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".setBody(%s)",JSON.stringify(e.postData.text)),a.push(1,".execute()"),a.push(1,".toCompletableFuture()"),a.push(1,".thenAccept(System.out::println)"),a.push(1,".join();"),a.blank(),a.push("client.close();"),a.join()},e.exports.info={key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"}},3625:(e,t,r)=>{"use strict";e.exports={info:{key:"java",title:"Java",extname:".java",default:"unirest"},okhttp:r(6870),unirest:r(5492),asynchttp:r(9868),nethttp:r(7423)}},7423:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("HttpRequest request = HttpRequest.newBuilder()"),a.push(2,'.uri(URI.create("%s"))',e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(2,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text?a.push(2,'.method("%s", HttpRequest.BodyPublishers.ofString(%s))',e.method.toUpperCase(),JSON.stringify(e.postData.text)):a.push(2,'.method("%s", HttpRequest.BodyPublishers.noBody())',e.method.toUpperCase()),a.push(2,".build();"),a.push("HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),a.push("System.out.println(response.body());"),a.join()},e.exports.info={key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"}},6870:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("OkHttpClient client = new OkHttpClient();").blank(),e.postData.text&&(e.postData.boundary?a.push('MediaType mediaType = MediaType.parse("%s; boundary=%s");',e.postData.mimeType,e.postData.boundary):a.push('MediaType mediaType = MediaType.parse("%s");',e.postData.mimeType),a.push("RequestBody body = RequestBody.create(mediaType, %s);",JSON.stringify(e.postData.text))),a.push("Request request = new Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build();").blank().push("Response response = client.newCall(request).execute();"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},5492:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase())?a.push('HttpResponse response = Unirest.customMethod("%s","%s")',e.method.toUpperCase(),e.fullUrl):a.push('HttpResponse response = Unirest.%s("%s")',e.method.toLowerCase(),e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".body(%s)",JSON.stringify(e.postData.text)),a.push(1,".asString();"),a.join()},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"}},7355:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('import axios from "axios";').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank(),s.data="[form]";break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("const options = %s;",a(s,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form")).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},2690:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const a=Object.assign({indent:" ",credentials:null},t),o=r(4110),i=new n(a.indent);switch(t={method:e.method},Object.keys(e.allHeaders).length&&(t.headers=e.allHeaders),null!==a.credentials&&(t.credentials=a.credentials),e.postData.mimeType){case"application/x-www-form-urlencoded":t.body=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":t.body=JSON.stringify(e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank();break;default:e.postData.text&&(t.body=e.postData.text)}return i.push("const options = %s;",o(t,{indent:a.indent,inlineCharacterLimit:80,transform:(t,r,n)=>"body"===r&&"application/x-www-form-urlencoded"===e.postData.mimeType?`new URLSearchParams(${n})`:n})).blank(),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = form;").blank(),i.push("fetch('%s', options)",e.fullUrl).push(1,".then(response => response.json())").push(1,".then(response => console.log(response))").push(1,".catch(err => console.error(err));"),i.join()},e.exports.info={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"}},5100:(e,t,r)=>{"use strict";e.exports={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},jquery:r(354),fetch:r(2690),xhr:r(9936),axios:r(7355)}},354:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent),i={async:!0,crossDomain:!0,url:e.fullUrl,method:e.method,headers:e.allHeaders};switch(e.postData.mimeType){case"application/x-www-form-urlencoded":i.data=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":i.processData=!1,i.data=e.postData.text;break;case"multipart/form-data":o.push("const form = new FormData();"),e.postData.params.forEach((function(e){o.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.processData=!1,i.contentType=!1,i.mimeType="multipart/form-data",i.data="[form]",a.hasHeader(i.headers,"content-type")&&a.getHeader(i.headers,"content-type").indexOf("boundary")&&delete i.headers[a.getHeaderName(i.headers,"content-type")],o.blank();break;default:e.postData.text&&(i.data=e.postData.text)}return o.push("const settings = "+JSON.stringify(i,null,r.indent).replace('"[form]"',"form")+";").blank().push("$.ajax(settings).done(function (response) {").push(1,"console.log(response);").push("});"),o.join()},e.exports.info={key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"}},9936:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" ",cors:!0},t),o=new n(r.indent);switch(e.postData.mimeType){case"application/json":o.push("const data = JSON.stringify(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).push(null);break;case"multipart/form-data":o.push("const data = new FormData();"),e.postData.params.forEach((function(e){o.push("data.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),a.hasHeader(e.allHeaders,"content-type")&&a.getHeader(e.allHeaders,"content-type").indexOf("boundary")&&delete e.allHeaders[a.getHeaderName(e.allHeaders,"content-type")],o.blank();break;default:o.push("const data = %s;",JSON.stringify(e.postData.text||null)).blank()}return o.push("const xhr = new XMLHttpRequest();"),r.cors&&o.push("xhr.withCredentials = true;"),o.blank().push('xhr.addEventListener("readystatechange", function () {').push(1,"if (this.readyState === this.DONE) {").push(2,"console.log(this.responseText);").push(1,"}").push("});").blank().push("xhr.open(%s, %s);",JSON.stringify(e.method),JSON.stringify(e.fullUrl)),Object.keys(e.allHeaders).forEach((function(t){o.push("xhr.setRequestHeader(%s, %s);",JSON.stringify(t),JSON.stringify(e.allHeaders[t]))})),o.blank().push("xhr.send(data);"),o.join()},e.exports.info={key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"}},3217:(e,t,r)=>{"use strict";e.exports={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},okhttp:r(9173)}},9173:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("val client = OkHttpClient()").blank(),e.postData.text&&(e.postData.boundary?a.push('val mediaType = MediaType.parse("%s; boundary=%s")',e.postData.mimeType,e.postData.boundary):a.push('val mediaType = MediaType.parse("%s")',e.postData.mimeType),a.push("val body = RequestBody.create(mediaType, %s)",JSON.stringify(e.postData.text))),a.push("val request = Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build()").blank().push("val response = client.newCall(request).execute()"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},1256:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('var axios = require("axios").default;').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("var options = %s;",a(s,{indent:" ",inlineCharacterLimit:80})).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},7911:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let o=!1;const i=new a(r.indent);i.push("const fetch = require('node-fetch');");const s=e.fullUrl,l={method:e.method};switch(Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":i.unshift("const { URLSearchParams } = require('url');"),i.push("const encodedParams = new URLSearchParams();"),i.blank(),e.postData.params.forEach((function(e){i.push("encodedParams.set('"+e.name+"', '"+e.value+"');")})),l.body="encodedParams";break;case"application/json":e.postData.jsonObj&&(l.body=JSON.stringify(e.postData.jsonObj));break;case"multipart/form-data":i.unshift("const FormData = require('form-data');"),i.push("const formData = new FormData();"),i.blank(),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(o=!0,i.push("formData.append('"+e.name+"', fs.createReadStream('"+e.fileName+"'));")):i.push("formData.append('"+e.name+"', '"+e.value+"');")}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){let t="";e.cookies.forEach((function(e){t=t+encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)+"; "})),l.headers||(l.headers={}),l.headers.cookie=t}return i.blank(),i.push("let url = '"+s+"';").blank(),i.push("let options = %s;",n(l,{indent:" ",inlineCharacterLimit:80})).blank(),o&&i.unshift("const fs = require('fs');"),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = formData;").blank(),i.push("fetch(url, options)").push(1,".then(res => res.json())").push(1,".then(json => console.log(json))").push(1,".catch(err => console.error('error:' + err));"),i.join().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"}},3095:(e,t,r)=>{"use strict";e.exports={info:{key:"node",title:"Node.js",extname:".js",default:"native"},native:r(5965),request:r(4213),unirest:r(9314),axios:r(1256),fetch:r(7911)}},5965:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new a(r.indent),i={method:e.method,hostname:e.uriObj.hostname,port:e.uriObj.port,path:e.uriObj.path,headers:e.allHeaders};switch(o.push('const http = require("%s");',e.uriObj.protocol.replace(":","")),o.blank().push("const options = %s;",JSON.stringify(i,null,r.indent)).blank().push("const req = http.request(options, function (res) {").push(1,"const chunks = [];").blank().push(1,'res.on("data", function (chunk) {').push(2,"chunks.push(chunk);").push(1,"});").blank().push(1,'res.on("end", function () {').push(2,"const body = Buffer.concat(chunks);").push(2,"console.log(body.toString());").push(1,"});").push("});").blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&(o.unshift('const qs = require("querystring");'),o.push("req.write(qs.stringify(%s));",n(e.postData.paramsObj,{indent:" ",inlineCharacterLimit:80})));break;case"application/json":e.postData.jsonObj&&o.push("req.write(JSON.stringify(%s));",n(e.postData.jsonObj,{indent:" ",inlineCharacterLimit:80}));break;default:e.postData.text&&o.push("req.write(%s);",JSON.stringify(e.postData.text,null,r.indent))}return o.push("req.end();"),o.join()},e.exports.info={key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"}},4213:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let i=!1;const s=new o(r.indent);s.push("const request = require('request');").blank();const l={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(l.qs=e.queryObj),Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":l.form=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(l.body=e.postData.jsonObj,l.json=!0);break;case"multipart/form-data":l.formData={},e.postData.params.forEach((function(e){const t={};e.fileName||e.fileName||e.contentType?(e.fileName?(i=!0,t.value='fs.createReadStream("'+e.fileName+'")'):e.value&&(t.value=e.value),e.fileName&&(t.options={filename:e.fileName,contentType:e.contentType?e.contentType:null}),l.formData[e.name]=t):l.formData[e.name]=e.value}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){l.jar="JAR",s.push("const jar = request.jar();");const t=e.url;e.cookies.forEach((function(e){s.push("jar.setCookie(request.cookie('%s=%s'), '%s');",encodeURIComponent(e.name),encodeURIComponent(e.value),t)})),s.blank()}return i&&s.unshift("const fs = require('fs');"),s.push("const options = %s;",a(l,{indent:" ",inlineCharacterLimit:80})).blank(),s.push(n.format("request(options, %s","function (error, response, body) {")).push(1,"if (error) throw new Error(error);").blank().push(1,"console.log(body);").push("});").blank(),s.join().replace('"JAR"',"jar").replace(/'fs\.createReadStream\("(.+)"\)'/g,"fs.createReadStream('$1')")},e.exports.info={key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"}},9314:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let a=!1;const o=new n(r.indent);switch(o.push('const unirest = require("unirest");').blank().push('const req = unirest("%s", "%s");',e.method,e.url).blank(),e.cookies.length&&(o.push("const CookieJar = unirest.jar();"),e.cookies.forEach((function(t){o.push('CookieJar.add("%s=%s","%s");',encodeURIComponent(t.name),encodeURIComponent(t.value),e.url)})),o.push("req.jar(CookieJar);").blank()),Object.keys(e.queryObj).length&&o.push("req.query(%s);",JSON.stringify(e.queryObj,null,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("req.headers(%s);",JSON.stringify(e.headersObj,null,r.indent)).blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&o.push("req.form(%s);",JSON.stringify(e.postData.paramsObj,null,r.indent)).blank();break;case"application/json":e.postData.jsonObj&&o.push('req.type("json");').push("req.send(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).blank();break;case"multipart/form-data":{const t=[];e.postData.params.forEach((function(e){const r={};e.fileName&&!e.value?(a=!0,r.body='fs.createReadStream("'+e.fileName+'")'):e.value&&(r.body=e.value),r.body&&(e.contentType&&(r["content-type"]=e.contentType),t.push(r))})),o.push("req.multipart(%s);",JSON.stringify(t,null,r.indent)).blank();break}default:e.postData.text&&o.push("req.send(%s);",JSON.stringify(e.postData.text,null,r.indent)).blank()}return a&&o.unshift('const fs = require("fs");'),o.push("req.end(function (res) {").push(1,"if (res.error) throw new Error(res.error);").blank().push(1,"console.log(res.body);").push("});").blank(),o.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"}},6714:(e,t,r)=>{"use strict";const n=r(9539);e.exports={blankString:function(e){return Array.apply(null,new Array(e)).map(String.prototype.valueOf," ").join("")},nsDeclaration:function(e,t,r,n){const a=e+" *"+t+" = ";return a+this.literalRepresentation(r,n?a.length:void 0)+";"},literalRepresentation:function(e,t){const r=void 0===t?", ":",\n "+this.blankString(t);switch(Object.prototype.toString.call(e)){case"[object Number]":return"@"+e;case"[object Array]":return"@[ "+e.map(function(e){return this.literalRepresentation(e)}.bind(this)).join(r)+" ]";case"[object Object]":{const t=[];for(const r in e)t.push(n.format('@"%s": %s',r,this.literalRepresentation(e[r])));return"@{ "+t.join(r)+" }"}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":'@"'+e.toString().replace(/"/g,'\\"')+'"'}}}},6629:(e,t,r)=>{"use strict";e.exports={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},nsurlsession:r(3743)}},3743:(e,t,r)=>{"use strict";const n=r(6714),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("#import "),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.nsDeclaration("NSDictionary","headers",e.allHeaders,r.pretty))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"%s=%s" dataUsingEncoding:NSUTF8StringEncoding]];',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("open Cohttp_lwt_unix").push("open Cohttp").push("open Lwt").blank().push('let uri = Uri.of_string "%s" in',e.fullUrl);const o=Object.keys(e.allHeaders);return 1===o.length?a.push('let headers = Header.add (Header.init ()) "%s" "%s" in',o[0],e.allHeaders[o[0]]):o.length>1&&(a.push("let headers = Header.add_list (Header.init ()) ["),o.forEach((function(t){a.push(1,'("%s", "%s");',t,e.allHeaders[t])})),a.push("] in")),e.postData.text&&a.push("let body = Cohttp_lwt_body.of_string %s in",JSON.stringify(e.postData.text)),a.blank(),a.push("Client.call %s%s%s uri",o.length?"~headers ":"",e.postData.text?"~body ":"",["get","post","head","delete","patch","put","options"].indexOf(e.method.toLowerCase())>=0?"`"+e.method.toUpperCase():'(Code.method_of_string "'+e.method+'")'),a.push(">>= fun (res, body_stream) ->").push(1,"(* Do stuff with the result *)"),a.join()},e.exports.info={key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"}},4955:(e,t,r)=>{"use strict";e.exports={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},cohttp:r(1501)}},7149:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",maxRedirects:10,namedErrors:!1,noTags:!1,shortTags:!1,timeout:30},t),o=new a(r.indent);r.noTags||o.push(r.shortTags?" %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const l=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));l.length&&s.push(n.format('CURLOPT_COOKIE => "%s",',l.join("; ")));const c=Object.keys(e.headersObj).sort().map((function(t){return n.format('"%s: %s"',t,e.headersObj[t])}));return c.length&&s.push("CURLOPT_HTTPHEADER => [").push(1,c.join(",\n"+r.indent+r.indent)).push("],"),o.push(1,s.join()).push("]);").blank().push("$response = curl_exec($curl);").push("$err = curl_error($curl);").blank().push("curl_close($curl);").blank().push("if ($err) {"),r.namedErrors?o.push(1,'echo array_flip(get_defined_constants(true)["curl"])[$err];'):o.push(1,'echo "cURL Error #:" . $err;'),o.push("} else {").push(1,"echo $response;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"}},8865:e=>{"use strict";const t=function(e,r,n){let a,o;switch(n||(n=""),Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:o="null";break;case"[object String]":o="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"'")+"'";break;case"[object Number]":o=e.toString();break;case"[object Array]":o=[],e.forEach((function(e){o.push(t(e,r+r,r))})),o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]";break;case"[object Object]":for(a in o=[],e)e.hasOwnProperty(a)&&o.push(t(a,r)+" => "+t(e[a],r+r,r));o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]"}return o};e.exports={convert:t,methods:["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"]}},6611:(e,t,r)=>{"use strict";const n=r(8865),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),o=new a(r.indent);if(r.noTags||o.push(r.shortTags?"setUrl(%s);",n.convert(e.url)),~n.methods.indexOf(e.method.toUpperCase())?o.push("$request->setMethod(HTTP_METH_%s);",e.method.toUpperCase()):o.push("$request->setMethod(HttpRequest::HTTP_METH_%s);",e.method.toUpperCase()),o.blank(),Object.keys(e.queryObj).length&&o.push("$request->setQueryData(%s);",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&o.push("$request->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),"application/x-www-form-urlencoded"===e.postData.mimeType)o.push("$request->setContentType(%s);",n.convert(e.postData.mimeType)).push("$request->setPostFields(%s);",n.convert(e.postData.paramsObj,r.indent)).blank();else e.postData.text&&o.push("$request->setBody(%s);",n.convert(e.postData.text)).blank();return o.push("try {").push(1,"$response = $request->send();").blank().push(1,"echo $response->getBody();").push("} catch (HttpException $ex) {").push(1,"echo $ex;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"}},2316:(e,t,r)=>{"use strict";const n=r(8865),a=r(174),o=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),i=new o(r.indent);let s=!1;switch(r.noTags||i.push(r.shortTags?"append(new http\\QueryString(%s));",n.convert(e.postData.paramsObj,r.indent)).blank(),s=!0;break;case"multipart/form-data":{const t=[],o={};e.postData.params.forEach((function(e){e.fileName?t.push({name:e.name,type:e.contentType,file:e.fileName,data:e.value}):e.value&&(o[e.name]=e.value)})),i.push("$body = new http\\Message\\Body;").push("$body->addForm(%s, %s);",Object.keys(o).length?n.convert(o,r.indent):"null",t.length?n.convert(t,r.indent):"null"),a.hasHeader(e.headersObj,"content-type")&&a.getHeader(e.headersObj,"content-type").indexOf("boundary")&&delete e.headersObj[a.getHeaderName(e.headersObj,"content-type")],i.blank(),s=!0;break}default:e.postData.text&&(i.push("$body = new http\\Message\\Body;").push("$body->append(%s);",n.convert(e.postData.text)).blank(),s=!0)}return i.push("$request->setRequestUrl(%s);",n.convert(e.url)).push("$request->setRequestMethod(%s);",n.convert(e.method)),s&&i.push("$request->setBody($body);").blank(),Object.keys(e.queryObj).length&&i.push("$request->setQuery(new http\\QueryString(%s));",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&i.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&i.blank().push("$client->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),i.push("$client->enqueue($request)->send();").push("$response = $client->getResponse();").blank().push("echo $response->getBody();"),!r.noTags&&r.closingTag&&i.blank().push("?>"),i.join()},e.exports.info={key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"}},8663:(e,t,r)=>{"use strict";e.exports={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:r(7149),http1:r(6611),http2:r(2316)}},3147:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e){return function(t,r){const o=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(t.method.toUpperCase()))return"Method not supported";const i=[],s=Object.keys(t.headersObj);return s.length&&(o.push("$headers=@{}"),s.forEach((function(e){"connection"!==e&&o.push('$headers.Add("%s", "%s")',e,t.headersObj[e])})),i.push("-Headers $headers")),t.cookies.length&&(o.push("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),t.cookies.forEach((function(e){o.push("$cookie = New-Object System.Net.Cookie"),o.push("$cookie.Name = '%s'",e.name),o.push("$cookie.Value = '%s'",e.value),o.push("$cookie.Domain = '%s'",t.uriObj.host),o.push("$session.Cookies.Add($cookie)")})),i.push("-WebSession $session")),t.postData.text&&(i.push("-ContentType '"+a.getHeader(t.allHeaders,"content-type")+"'"),i.push("-Body '"+t.postData.text+"'")),o.push("$response = %s -Uri '%s' -Method %s %s",e,t.fullUrl,t.method,i.join(" ")),o.join()}}},3218:(e,t,r)=>{"use strict";e.exports={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},webrequest:r(3699),restmethod:r(775)}},775:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-RestMethod"),e.exports.info={key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"}},3699:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-WebRequest"),e.exports.info={key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"}},246:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n,o){const i=a(o,n),s=a(o-1,n),l=r?",\n"+i:", ",c="object"===e?"{":"[",p="object"===e?"}":"]";return r?c+"\n"+i+t.join(l)+"\n"+s+p:c+t.join(l)+p}e.exports={literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o("array",e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o("object",a,t.pretty&&a.length>1,t.indent,r)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},3979:(e,t,r)=>{"use strict";e.exports={info:{key:"python",title:"Python",extname:".py",default:"python3"},python3:r(5887),requests:r(8493)}},5887:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("import http.client").blank();"https:"===e.uriObj.protocol?r.push('conn = http.client.HTTPSConnection("%s")',e.uriObj.host).blank():r.push('conn = http.client.HTTPConnection("%s")',e.uriObj.host).blank();const a=JSON.stringify(e.postData.text);a&&r.push("payload = %s",a).blank();const o=e.allHeaders,i=Object.keys(o).length;if(1===i)for(const e in o)r.push("headers = { '%s': \"%s\" }",e,o[e]).blank();else if(i>1){let e=1;r.push("headers = {");for(const t in o)e++!==i?r.push(" '%s': \"%s\",",t,o[t]):r.push(" '%s': \"%s\"",t,o[t]);r.push(" }").blank()}const s=e.method,l=e.uriObj.path;return a&&i?r.push('conn.request("%s", "%s", payload, headers)',s,l):a&&!i?r.push('conn.request("%s", "%s", payload)',s,l):!a&&i?r.push('conn.request("%s", "%s", headers=headers)',s,l):r.push('conn.request("%s", "%s")',s,l),r.blank().push("res = conn.getresponse()").push("data = res.read()").blank().push('print(data.decode("utf-8"))'),r.join()},e.exports.info={key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"}},8493:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544),o=r(246);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0},t),i=new a(r.indent);let s;i.push("import requests").blank(),i.push('url = "%s"',e.url).blank(),Object.keys(e.queryObj).length&&(s="querystring = "+JSON.stringify(e.queryObj),i.push(s).blank());let l=!1,c=!1;if("application/json"===e.postData.mimeType)e.postData.jsonObj&&(i.push("payload = %s",o.literalRepresentation(e.postData.jsonObj,r)),c=!0,l=!0);else{const t=JSON.stringify(e.postData.text);t&&(i.push("payload = %s",t),l=!0)}const p=e.allHeaders,d=Object.keys(p).length;if(1===d)for(const e in p)i.push('headers = {"%s": "%s"}',e,p[e]).blank();else if(d>1){let e=1;i.push("headers = {");for(const t in p)e++!==d?i.push(1,'"%s": "%s",',t,p[t]):i.push(1,'"%s": "%s"',t,p[t]);i.push("}").blank()}const u=e.method;let h=n.format('response = requests.request("%s", url',u);return l&&(h+=c?", json=payload":", data=payload"),d>0&&(h+=", headers=headers"),s&&(h+=", params=querystring"),h+=")",i.push(h).blank().push("print(response.text)"),i.join()},e.exports.info={key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"}},6064:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=new a;r.push("library(httr)").blank(),r.push('url <- "%s"',e.url).blank();const o=e.queryObj,i=Object.keys(o).length;if(delete e.queryObj.key,1===e.queryString.length)r.push('queryString <- list(%s = "%s")',Object.keys(o),Object.values(o).toString()).blank();else if(e.queryString.length>1){let e=1;r.push("queryString <- list(");for(const t in o)e++!=i-1?r.push(' %s = "%s",',t,o[t].toString()):r.push(' %s = "%s"',t,o[t].toString());r.push(")").blank()}const s=JSON.stringify(e.postData.text);if(s&&r.push("payload <- %s",s).blank(),e.postData.text||e.postData.jsonObj||e.postData.params)switch(e.postData.mimeType){case"application/x-www-form-urlencoded":r.push('encode <- "form"').blank();break;case"application/json":r.push('encode <- "json"').blank();break;case"multipart/form-data":r.push('encode <- "multipart"').blank();break;default:r.push('encode <- "raw"').blank()}const l=e.allHeaders;let c,p,d=Object.keys(l).length,u="";for(const e in l)"accept"===e.toLowerCase()?(p=', accept("'+l[e]+'")',d-=1):"cookie"===e.toLowerCase()?(c=", set_cookies(`"+l[e].replace(/;/g,'", `').replace(/` /g,"`").replace(/=/g,'` = "')+'")',d-=1):"content-type"!==e.toLowerCase()&&(u=u+e.replace("-","_")+" = '"+l[e],d>1&&(u+="', "));const h=e.method;let f=n.format('response <- VERB("%s", url',h);return s&&(f+=", body = payload"),""!==u&&(f+=", add_headers("+u+"')"),e.queryString.length&&(f+=", query = queryString"),f+=', content_type("'+e.postData.mimeType+'")',void 0!==p&&(f+=p),void 0!==c&&(f+=c),(e.postData.text||e.postData.jsonObj||e.postData.params)&&(f+=", encode = encode"),f+=")",r.push(f).blank().push('content(response, "text")'),r.join()},e.exports.info={key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"}},2817:(e,t,r)=>{"use strict";e.exports={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:r(6064)}},2682:(e,t,r)=>{"use strict";e.exports={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},native:r(5938)}},5938:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("require 'uri'").push("require 'net/http'"),"https:"===e.uriObj.protocol&&r.push("require 'openssl'"),r.blank();const a=e.method.toUpperCase(),o=a.charAt(0)+a.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].indexOf(a)<0&&r.push("class Net::HTTP::%s < Net::HTTPRequest",o).push(" METHOD = '%s'",a.toUpperCase()).push(" REQUEST_HAS_BODY = '%s'",e.postData.text?"true":"false").push(" RESPONSE_HAS_BODY = true").push("end").blank(),r.push('url = URI("%s")',e.fullUrl).blank().push("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.uriObj.protocol&&r.push("http.use_ssl = true").push("http.verify_mode = OpenSSL::SSL::VERIFY_NONE"),r.blank().push("request = Net::HTTP::%s.new(url)",o);const i=Object.keys(e.allHeaders);return i.length&&i.forEach((function(t){r.push("request[\"%s\"] = '%s'",t,e.allHeaders[t])})),e.postData.text&&r.push("request.body = %s",JSON.stringify(e.postData.text)),r.blank().push("response = http.request(request)").push("puts response.read_body"),r.join()},e.exports.info={key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"}},9326:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(174),i=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,binary:!1,globOff:!1},t),s=new i(r.indent,!1!==r.indent?" \\\n"+r.indent:" "),l=r.short?"-g":"--globoff",c=r.short?"-X":"--request";let p=a.quote(e.fullUrl);if(s.push("curl %s %s",c,e.method),r.globOff&&(p=unescape(p),s.push(l)),s.push(n.format("%s%s",r.short?"":"--url ",p)),"HTTP/1.0"===e.httpVersion&&s.push(r.short?"-0":"--http1.0"),"multipart/form-data"===e.postData.mimeType){const t=o.getHeaderName(e.headersObj,"content-type"),r=e.headersObj[t];if(t&&r){const n=r.replace(/; boundary.+?(?=(;|$))/,"");e.headersObj[t]=n,e.allHeaders[t]=n}}switch(Object.keys(e.headersObj).sort().forEach((function(t){const o=n.format("%s: %s",t,e.headersObj[t]);s.push("%s %s",r.short?"-H":"--header",a.quote(o))})),e.allHeaders.cookie&&s.push("%s %s",r.short?"-b":"--cookie",a.quote(e.allHeaders.cookie)),e.postData.mimeType){case"multipart/form-data":e.postData.params.forEach((function(e){let t="";t=e.fileName?n.format("%s=@%s",e.name,e.fileName):n.format("%s=%s",e.name,e.value),s.push("%s %s",r.short?"-F":"--form",a.quote(t))}));break;case"application/x-www-form-urlencoded":e.postData.params?e.postData.params.forEach((function(e){s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(n.format("%s=%s",e.name,e.value)))})):s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text));break;default:e.postData.text&&s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text))}return s.join()},e.exports.info={key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"}},9194:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");let s=!1;const l=[];if(r.headers&&l.push(r.short?"-h":"--headers"),r.body&&l.push(r.short?"-b":"--body"),r.verbose&&l.push(r.short?"-v":"--verbose"),r.print&&l.push(n.format("%s=%s",r.short?"-p":"--print",r.print)),r.verify&&l.push(n.format("--verify=%s",r.verify)),r.cert&&l.push(n.format("--cert=%s",r.cert)),r.pretty&&l.push(n.format("--pretty=%s",r.pretty)),r.style&&l.push(n.format("--style=%s",r.pretty)),r.timeout&&l.push(n.format("--timeout=%s",r.timeout)),r.queryParams){Object.keys(e.queryObj).forEach((function(t){const r=e.queryObj[t];Array.isArray(r)?r.forEach((function(e){i.push("%s==%s",t,a.quote(e))})):i.push("%s==%s",t,a.quote(r))}))}return Object.keys(e.allHeaders).sort().forEach((function(t){i.push("%s:%s",t,a.quote(e.allHeaders[t]))})),"application/x-www-form-urlencoded"===e.postData.mimeType?e.postData.params&&e.postData.params.length&&(l.push(r.short?"-f":"--form"),e.postData.params.forEach((function(e){i.push("%s=%s",e.name,a.quote(e.value))}))):s=!0,i.unshift("http %s%s %s",l.length?l.join(" ")+" ":"",e.method,a.quote(r.queryParams?e.url:e.fullUrl)),s&&e.postData.text&&i.unshift("echo %s | ",a.quote(e.postData.text)),i.join()},e.exports.info={key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"}},869:(e,t,r)=>{"use strict";e.exports={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},curl:r(9326),httpie:r(9194),wget:r(2616)}},2616:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,verbose:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");return r.verbose?i.push("wget %s",r.short?"-v":"--verbose"):i.push("wget %s",r.short?"-q":"--quiet"),i.push("--method %s",a.quote(e.method)),Object.keys(e.allHeaders).forEach((function(t){const r=n.format("%s: %s",t,e.allHeaders[t]);i.push("--header %s",a.quote(r))})),e.postData.text&&i.push("--body-data "+a.escape(a.quote(e.postData.text))),i.push(r.short?"-O":"--output-document").push("- %s",a.quote(e.fullUrl)),i.join()},e.exports.info={key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"}},3780:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n){const o=a(n,r),i=a(n-1,r),s=t?",\n"+o:", ";return t?"[\n"+o+e.join(s)+"\n"+i+"]":"["+e.join(s)+"]"}e.exports={literalDeclaration:function(e,t,r){return n.format("let %s = %s",e,this.literalRepresentation(t,r))},literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o(e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o(a,t.pretty&&a.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},4484:(e,t,r)=>{"use strict";e.exports={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},nsurlsession:r(7606)}},7606:(e,t,r)=>{"use strict";const n=r(3780),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("import Foundation"),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.literalDeclaration("headers",e.allHeaders,r))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('let postData = NSMutableData(data: "%s=%s".data(using: String.Encoding.utf8)!)',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t Void in").push(1,"if (error != nil) {").push(2,"print(error)").push(1,"} else {").push(2,"let httpResponse = response as? HTTPURLResponse").push(2,"print(httpResponse)").push(1,"}").push("})").blank().push("dataTask.resume()"),o.join()},e.exports.info={key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"}},645:(e,t)=>{t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,l=(1<>1,p=-7,d=r?a-1:0,u=r?-1:1,h=e[t+d];for(d+=u,o=h&(1<<-p)-1,h>>=-p,p+=s;p>0;o=256*o+e[t+d],d+=u,p-=8);for(i=o&(1<<-p)-1,o>>=-p,p+=n;p>0;i=256*i+e[t+d],d+=u,p-=8);if(0===o)o=1-c;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),o-=c}return(h?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,l,c=8*o-a-1,p=(1<>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=p?(s=0,i=p):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[r+h]=255&s,h+=f,s/=256,a-=8);for(i=i<0;e[r+h]=255&i,h+=f,i/=256,c-=8);e[r+h-f]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),a=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=s?o:i},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},a((function(){throw 42}),null,t)}catch(e){e!==r&&(a=null)}else a=null;var o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var u=document.all;l.call(u)===l.call(document.all)&&(d=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,r)=>{"use strict";var n,a=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,s=r(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),a=r(4289),o=r(8611),i=r(9415),s=r(3194),l=n(i(),Number);a(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),a=r(9415);e.exports=function(){var e=a();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},4290:e=>{"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},7777:e=>{"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},5692:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=o("Object.prototype.toString"),s=r(6410)(),l=r(7296),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!l&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},3320:(e,t,r)=>{"use strict";var n=r(7990),a=r(3150);function o(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(1364),e.exports.Schema=r(7657),e.exports.FAILSAFE_SCHEMA=r(4795),e.exports.JSON_SCHEMA=r(5966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(6601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=a.dump,e.exports.YAMLException=r(8425),e.exports.types={binary:r(3531),float:r(5215),map:r(945),null:r(151),pairs:r(6879),set:r(4982),timestamp:r(2156),bool:r(8771),int:r(1518),merge:r(7452),omap:r(1605),seq:r(6451),str:r(48)},e.exports.safeLoad=o("safeLoad","load"),e.exports.safeLoadAll=o("safeLoadAll","loadAll"),e.exports.safeDump=o("safeDump","dump")},8347:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r{"use strict";var n=r(8347),a=r(8425),o=r(6601),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l=65279,c=9,p=10,d=13,u=32,h=33,f=34,m=35,g=37,y=38,v=39,b=42,x=44,w=45,$=58,S=61,E=62,k=63,A=64,_=91,O=93,P=96,T=123,j=124,R=125,C={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function M(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new a("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}var L=1,N=2;function F(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,o,i,l,c;if(null===t)return{};for(r={},a=0,o=(n=Object.keys(t)).length;a=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Z(e){return/^\n* /.test(e)}var G=1,K=2,Y=3,J=4,X=5;function Q(e,t,r,n,a,o,i,s){var c,d,u=0,C=null,I=!1,D=!1,M=-1!==n,L=-1,F=H(d=V(e,0))&&d!==l&&!B(d)&&d!==w&&d!==k&&d!==$&&d!==x&&d!==_&&d!==O&&d!==T&&d!==R&&d!==m&&d!==y&&d!==b&&d!==h&&d!==j&&d!==S&&d!==E&&d!==v&&d!==f&&d!==g&&d!==A&&d!==P&&function(e){return!B(e)&&e!==$}(V(e,e.length-1));if(t||i)for(c=0;c=65536?c+=2:c++){if(!H(u=V(e,c)))return X;F=F&&W(u,C,s),C=u}else{for(c=0;c=65536?c+=2:c++){if((u=V(e,c))===p)I=!0,M&&(D=D||c-L-1>n&&" "!==e[L+1],L=c);else if(!H(u))return X;F=F&&W(u,C,s),C=u}D=D||M&&c-L-1>n&&" "!==e[L+1]}return I||D?r>9&&Z(e)?X:i?o===N?X:K:D?J:Y:!F||i||a(e)?o===N?X:K:G}function ee(e,t,r,n,o){e.dump=function(){if(0===t.length)return e.quotingType===N?'""':"''";if(!e.noCompatMode&&(-1!==I.indexOf(t)||D.test(t)))return e.quotingType===N?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Q(t,l,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+te(t,e.indent)+re(U(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,ne(e.slice(0,s),t)),i="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var l=n[1],c=n[2];r=" "===c[0],o+=l+(i||r||""===c?"":"\n")+ne(c,t),i=r}return o}(t,s),i));case X:return'"'+function(e){for(var t,r="",n=0,a=0;a=65536?a+=2:a++)n=V(e,a),!(t=C[n])&&H(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||M(n);return r}(t)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function te(e,t){var r=Z(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function re(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ne(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,o=0,i=0,s=0,l="";r=a.exec(e);)(s=r.index)-o>t&&(n=i>o?i:s,l+="\n"+e.slice(o,n),o=n+1),i=s;return l+="\n",e.length-o>t&&i>o?l+=e.slice(o,i)+"\n"+e.slice(i+1):l+=e.slice(o),l.slice(1)}function ae(e,t,r,n){var a,o,i,s="",l=e.tag;for(a=0,o=r.length;a tag resolver accepts not "'+d+'" style');n=p.represent[d](t,d)}e.dump=n}return!0}return!1}function ie(e,t,r,n,o,s,l){e.tag=null,e.dump=r,oe(e,r,!1)||oe(e,r,!0);var c,d=i.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var h,f,m="[object Object]"===d||"[object Array]"===d;if(m&&(f=-1!==(h=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(m&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===d)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var o,i,s,l,c,d,u="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=f.length;o1024)&&(e.dump&&p===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,c&&(d+=q(e,t)),ie(e,t+1,l,!0,c)&&(e.dump&&p===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=h,e.dump=u||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i,s,l="",c=e.tag,p=Object.keys(r);for(n=0,a=p.length;n1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ie(e,t,i,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===d)n&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?ae(e,t-1,e.dump,o):ae(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i="",s=e.tag;for(n=0,a=r.length;n",e.dump=c+" "+e.dump)}return!0}function se(e,t){var r,n,a=[],o=[];for(le(e,a,o),r=0,n=o.length;r{"use strict";function t(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},7990:(e,t,r)=>{"use strict";var n=r(8347),a=r(8425),o=r(192),i=r(6601),s=Object.prototype.hasOwnProperty,l=1,c=2,p=3,d=4,u=1,h=2,f=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function w(e){return 10===e||13===e}function $(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function E(e){return 44===e||91===e||93===e||123===e||125===e}function k(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),P=new Array(256),T=0;T<256;T++)O[T]=A(T)?1:0,P[T]=A(T);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function R(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=o(r),new a(t,r)}function C(e,t){throw R(e,t)}function I(e,t){e.onWarning&&e.onWarning.call(null,R(e,t))}var D={YAML:function(e,t,r){var n,a,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==r.length&&C(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&C(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),1!==a&&C(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&I(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&C(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],v.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),b.test(a)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){C(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function M(e,t,r,n){var a,o,i,s;if(t1&&(e.result+=n.repeat("\n",t-1))}function H(e,t){var r,n,a=e.tag,o=e.anchor,i=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),45===n)&&S(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,V(e,t,p,!1,!0),i.push(e.result),U(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)C(e,"bad indentation of a sequence entry");else if(e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt)&&(b&&(i=e.line,s=e.lineStart,l=e.position),V(e,t,d,!0,a)&&(b?y=e.result:v=e.result),b||(N(e,f,m,g,y,v,i,s,l),g=y=v=null),U(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==p)C(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?C(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?C(e,"repeat of an indentation width identifier"):(d=t+o-1,p=!0)}if($(i)){do{i=e.input.charCodeAt(++e.position)}while($(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!w(i)&&0!==i)}for(;0!==i;){for(F(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!p||e.lineIndentd&&(d=e.lineIndent),w(i))m++;else{if(e.lineIndent0){for(a=i,o=0;a>0;a--)(i=k(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+i:C(e,"expected hexadecimal character");e.result+=_(o),e.position++}else C(e,"unknown escape sequence");r=n=e.position}else w(s)?(M(e,r,n,!0),B(e,U(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(e,A)?I=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!E(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),s.call(e.anchorMap,r)||C(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],U(e,!0,-1),!0}(e)?function(e,t,r){var n,a,o,i,s,l,c,p,d=e.kind,u=e.result;if(S(p=e.input.charCodeAt(e.position))||E(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(S(n=e.input.charCodeAt(e.position+1))||r&&E(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,i=!1;0!==p;){if(58===p){if(S(n=e.input.charCodeAt(e.position+1))||r&&E(n))break}else if(35===p){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&E(p))break;if(w(p)){if(s=e.line,l=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}i&&(M(e,a,o,!1),B(e,e.line-s),a=o=e.position,i=!1),$(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return M(e,a,o,!1),!!e.result||(e.kind=d,e.result=u,!1)}(e,A,l===r)&&(I=!0,null===e.tag&&(e.tag="?")):(I=!0,null===e.tag&&null===e.anchor||C(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===j&&(I=g&&H(e,T))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&C(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),y=0,v=e.implicitTypes.length;y"),null!==e.result&&x.kind!==e.kind&&C(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):C(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}function Z(e){var t,r,n,a,o=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(U(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(i=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==a;){for(;$(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!w(a));break}if(w(a))break;for(t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&F(e),s.call(D,r)?D[r](e,r,n):I(e,'unknown document directive "'+r+'"')}U(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,U(e,!0,-1)):i&&C(e,"directives end mark is expected"),V(e,e.lineIndent-1,d,!1,!0),U(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(o,e.position))&&I(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,U(e,!0,-1)):e.position{"use strict";var n=r(8425),a=r(1364);function o(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function i(e){return this.extend(e)}i.prototype.extend=function(e){var t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(i.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=o(s,"implicit"),s.compiledExplicit=o(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";e.exports=r(5966)},6601:(e,t,r)=>{"use strict";e.exports=r(9471).extend({implicit:[r(2156),r(7452)],explicit:[r(3531),r(1605),r(6879),r(4982)]})},4795:(e,t,r)=>{"use strict";var n=r(7657);e.exports=new n({explicit:[r(48),r(6451),r(945)]})},5966:(e,t,r)=>{"use strict";e.exports=r(4795).extend({implicit:[r(151),r(8771),r(1518),r(5215)]})},192:(e,t,r)=>{"use strict";var n=r(8347);function a(e,t,r,n,a){var o="",i="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(i=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function o(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;r=i.exec(e.buffer);)l.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);var p,d,u="",h=Math.min(e.line+t.linesAfter,l.length).toString().length,f=t.maxLength-(t.indent+h+3);for(p=1;p<=t.linesBefore&&!(c-p<0);p++)d=a(e.buffer,s[c-p],l[c-p],e.position-(s[c]-s[c-p]),f),u=n.repeat(" ",t.indent)+o((e.line-p+1).toString(),h)+" | "+d.str+"\n"+u;for(d=a(e.buffer,s[c],l[c],e.position,f),u+=n.repeat(" ",t.indent)+o((e.line+1).toString(),h)+" | "+d.str+"\n",u+=n.repeat("-",t.indent+h+3+d.pos)+"^\n",p=1;p<=t.linesAfter&&!(c+p>=l.length);p++)d=a(e.buffer,s[c+p],l[c+p],e.position-(s[c]-s[c+p]),f),u+=n.repeat(" ",t.indent)+o((e.line+p+1).toString(),h)+" | "+d.str+"\n";return u.replace(/\n$/,"")}},1364:(e,t,r)=>{"use strict";var n=r(8425),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){i[String(t)]=e}))})),i),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3531:(e,t,r)=>{"use strict";var n=r(1364),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length,i=a;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=a,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(255&s)),s=s<<6|i.indexOf(n.charAt(t));return 0===(r=o%4*6)?(l.push(s>>16&255),l.push(s>>8&255),l.push(255&s)):18===r?(l.push(s>>10&255),l.push(s>>2&255)):12===r&&l.push(s>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length,s=a;for(t=0;t>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]),o=(o<<8)+e[t];return 0===(r=i%3)?(n+=s[o>>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]):2===r?(n+=s[o>>10&63],n+=s[o>>4&63],n+=s[o<<2&63],n+=s[64]):1===r&&(n+=s[o>>2&63],n+=s[o<<4&63],n+=s[64],n+=s[64]),n}})},8771:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5215:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364),o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var i=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},1518:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364);function o(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}e.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,s=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},945:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},7452:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},151:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},1605:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,s,l=[],c=e;for(t=0,r=c.length;t{"use strict";var n=r(1364),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4982:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(a.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},48:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},2156:(e,t,r)=>{"use strict";var n=r(1364),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==o.exec(e))},construct:function(e){var t,r,n,i,s,l,c,p,d=0,u=null;if(null===(t=a.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],l=+t[5],c=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(r,n,i,s,l,c,d)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},9461:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,a,o,i,s,l,c,p,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in n(o,i,s,l,c,p,d),o){var h=o[u];if(Array.isArray(h)){if(u in t.arrayKeywords)for(var f=0;f{var n="__lodash_hash_undefined__",a=1/0,o="[object Function]",i="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=f||m||Function("return this")();var y,v=Array.prototype,b=Function.prototype,x=Object.prototype,w=g["__core-js_shared__"],$=(y=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",S=b.toString,E=x.hasOwnProperty,k=x.toString,A=RegExp("^"+S.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=g.Symbol,O=v.splice,P=U(g,"Map"),T=U(Object,"create"),j=_?_.prototype:void 0,R=j?j.toString:void 0;function C(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=M(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new C,map:new(P||I),string:new C}},D.prototype.delete=function(e){return F(this,e).delete(e)},D.prototype.get=function(e){return F(this,e).get(e)},D.prototype.has=function(e){return F(this,e).has(e)},D.prototype.set=function(e,t){return F(this,e).set(e,t),this};var q=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return R?R.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var r=[];return p.test(e)&&r.push(""),e.replace(d,(function(e,t,n,a){r.push(n?a.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(H.Cache||D),r}H.Cache=D;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==s}e.exports=function(e,t,r){var n=null==e?void 0:L(e,t);return void 0===n?r:n}},2307:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",a=1,o=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",d="[object Date]",u="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",v="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",$="[object Set]",S="[object String]",E="[object Symbol]",k="[object Undefined]",A="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",P=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[l]=j[_]=j[p]=j[O]=j[d]=j[u]=j[h]=j[m]=j[g]=j[v]=j[w]=j[$]=j[S]=j[A]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,C="object"==typeof self&&self&&self.Object===Object&&self,I=R||C||Function("return this")(),D=t&&!t.nodeType&&t,M=D&&e&&!e.nodeType&&e,L=M&&M.exports===D,N=L&&R.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function q(e,t){for(var r=-1,n=null==e?0:e.length;++rc))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var u=-1,h=!0,f=r&o?new _e:void 0;for(s.set(e,t),s.set(t,e);++u-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(ue||ke),string:new Ee}},Ae.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Ne(this,e).get(e)},Ae.prototype.has=function(e){return Ne(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Ne(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,n),this},_e.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new ke,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!ue||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ae(n)}return r.set(e,t),this.size=r.size,this};var Ue=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Xe=U?function(e){return function(t){return e(t)}}(U):function(e){return Je(e)&&Ke(e.length)&&!!j[je(e)]};function Qe(e){return null!=(t=e)&&Ke(t.length)&&!Ge(t)?Pe(e):De(e);var t}e.exports=function(e,t){return Ce(e,t)}},2508:(e,t,r)=>{var n=r(4155),a=r(2830).Stream;e.exports=function(e,t){var r=new a,o=this,i=0,s=0,l=!1,c=!1,p=!1,d=0,u=!1;this.opts=t||{};var h=this.opts.failures?"failure":"error",f={};function m(e,t){var n=d+1;if(t===n?(void 0!==e&&r.emit.apply(r,["data",e]),d++,n++):f[t]=e,f.hasOwnProperty(n)){var a=f[n];return delete f[n],m(a,n)}s++,i===s&&(c&&(c=!1,r.emit("drain")),l&&y())}function g(e,t,n){p||(u=!0,e&&!o.opts.failures||m(t,n),e&&r.emit.apply(r,[h,e]),u=!1)}function y(e){if(l=!0,r.writable=!1,void 0!==e)return m(e,i);i==s&&(r.readable=!1,r.emit("end"),r.destroy())}return r.writable=!0,r.readable=!0,r.write=function(t){if(l)throw new Error("map stream is not writable");u=!1,i++;try{var r=(n=t,a=i,o=g,e.call(null,n,(function(e,t){o(e,t,a)})));return!(c=!1===r)}catch(e){if(u)throw e;return g(e),!c}var n,a,o},r.end=function(e){l||y()},r.destroy=function(){l=p=!0,r.writable=r.readable=c=!1,n.nextTick((function(){r.emit("close")}))},r.pause=function(){c=!0},r.resume=function(){c=!1},r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),a=r(5559),o=r(4244),i=r(5624),s=r(2281),l=a(i(),Object);n(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),a=r(4289);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=r(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=i(e),s=t&&"[object String]"===o.call(e),u=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!a.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var n=Array.prototype.slice,a=r(1414),o=Object.keys,i=o?function(e){return o(e)}:r(8987),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7549:(e,t,r)=>{e.exports=r(6547)},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},8325:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof o)){var k,A=1;if(v){if(!(k=i(w,S,e,y))||k.index>=e.length)break;var _=k.index,O=k.index+k[0].length,P=S;for(P+=$.value.length;_>=P;)P+=($=$.next).value.length;if(S=P-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(Pd.reach&&(d.reach=I);var D=$.prev;if(R&&(D=c(t,D,R),S+=R.length),p(t,D,A),$=c(t,D,new o(u,g?a.tokenize(j,g):j,b,j)),C&&c(t,$,C),A>1){var M={cause:u+","+f,reach:I};s(e,t,r,$.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function p(e,t,r){for(var n=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,o=r.code,i=r.immediateClose;e.postMessage(a.highlight(o,a.languages[n],n)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==r.g&&(r.g.Prism=n)},9016:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,n){return RegExp(t(e,r),n||"")}function n(e,t){for(var r=0;r>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(o),p=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),u=l(a+" "+o+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=n(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,u,m]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,$,p.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=k+"|"+E,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,C=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,R]),D=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function L(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,C)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:L(M,D)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},5251:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},7046:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},57:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,n=e.languages,a={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in a)if(a[s]){r=r||{};var l=o[s]?i(s):s;r[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},2503:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},9980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,n,a,o){if(r.language===n){var i=r.tokenStack=[];r.code=r.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==r.code.indexOf(a=t(n,s));)++s;return i[s]=e,a})),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,n){if(r.language===n&&r.tokenStack){r.grammar=e.languages[n];var a=0,o=Object.keys(r.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var p=o[a],d=r.tokenStack[p],u="string"==typeof c?c:c.content,h=t(n,p),f=u.indexOf(h);if(f>-1){++a;var m=u.substring(0,f),g=new e.Token(n,e.tokenize(d,r.grammar),"language-"+n,d),y=u.substring(f+h.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),y&&v.push.apply(v,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&i(c.content)}return s}(r.tokens)}}}})}(Prism)},4335:()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9945:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:a,punctuation:o};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},366:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},9385:()=>{!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)},3358:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},5712:()=>{!function(){if("undefined"!=typeof Prism){var e,t,r="";Prism.plugins.customClass={add:function(t){e=t},map:function(e){t="function"==typeof e?e:function(t){return e[t]||t}},prefix:function(e){r=e||""},apply:n},Prism.hooks.add("wrap",(function(a){if(e){var o=e({content:a.content,type:a.type,language:a.language});Array.isArray(o)?a.classes.push.apply(a.classes,o):o&&a.classes.push(o)}(t||r)&&(a.classes=a.classes.map((function(e){return n(e,a.language)})))}))}function n(e,n){return r+(t?t(e,n):e)}}()},4155:e=>{var t,r,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],c=!1,p=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):p=-1,l.length&&u())}function u(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++p1)for(var r=1;r{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(p=f.substr(0,m),d=f.substr(m+1)):(p=f,d=""),u=decodeURIComponent(p),h=decodeURIComponent(d),t(o,u)?Array.isArray(o[u])?o[u].push(h):o[u]=[o[u],h]:o[u]=h}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,a){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[a]))})).join(r):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},4281:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var a,o,i,s;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,r)=>{"use strict";var n=r(4155),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(9481),i=r(4229);r(5717)(p,o);for(var s=a(i.prototype),l=0;l{"use strict";e.exports=a;var n=r(4605);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(5717)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n,a=r(4155);e.exports=k,k.ReadableState=E;r(7187).EventEmitter;var o=function(e,t){return e.listeners(t).length},i=r(222),s=r(8764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,p=r(4616);c=p&&p.debuglog?p.debuglog("stream"):function(){};var d,u,h,f=r(7327),m=r(1195),g=r(2457).getHighWaterMark,y=r(4281).q,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,x=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(k,i);var $=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,a){n=n||r(6753),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",a),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(6753),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var o,i=e._readableState;if(null===t)i.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,i);else if(a||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(i,t)),o)$(e,o);else if(i.objectMode||t&&t.length>0)if("string"==typeof t||i.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)i.endEmitted?$(e,new w):_(e,i,t,!0);else if(i.ended)$(e,new b);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):R(e,i)):_(e,i,t,!1)}else n||(i.reading=!1,R(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function M(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){$(this,new x("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==a.stdout&&e!==a.stderr?l:g;function s(t,a){c("onunpipe"),t===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",u),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){c("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",s);var p=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",p);var d=!1;function u(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!d&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===o(e,"error")&&$(e,t)}function f(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||a.nextTick(D,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(I,this),r},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(M,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o{"use strict";e.exports=p;var n=r(4281).q,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(6753);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";var n,a=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=E;var i={deprecate:r(4927)},s=r(222),l=r(8764).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,d=r(1195),u=r(2457).getHighWaterMark,h=r(4281).q,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,x=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,$=d.errorOrDestroy;function S(){}function E(e,t,i){n=n||r(6753),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(a.nextTick(o,n),a.nextTick(j,e,t),e._writableState.errorEmitted=!0,$(e,n)):(o(n),e._writableState.errorEmitted=!0,$(e,n),j(e,t))}(e,r,n,t,o);else{var i=P(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?a.nextTick(_,e,r,i,o):_(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(6753));if(!t&&!p.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,a,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,p=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,p,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===k&&(e&&e._writableState instanceof E)}})):p=function(e){return e instanceof this},k.prototype.pipe=function(){$(this,new y)},k.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,s=!o.objectMode&&(n=e,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new x;$(e,r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||($(e,o),a.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,a,o){if(!r){var i=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,a);n!==i&&(r=!0,a="buffer",n=i)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,r)=>{"use strict";var n,a=r(4155);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(8610),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),p=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){a.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){a.nextTick((function(){e[c]?r(e[c]):t(f(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[p]?r(f(void 0,!0)):t[u](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[u])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,p,{value:e._readableState.endEmitted,writable:!0}),o(t,u,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[p]=!0})),e.on("readable",g.bind(null,r)),r}},7327:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,a=l.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=a,n=i,l.prototype.copy.call(t,r,n),i+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,o),0==(e-=o)){o===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return c(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1195:(e,t,r)=>{"use strict";var n=r(4155);function a(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,r)=>{"use strict";var n;var a=r(4281).q,o=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a0,(function(e){p||(p=e),e&&u.forEach(l),o||(u.forEach(l),d(p))}))}));return t.reduce(c)}},2457:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,a){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},222:(e,t,r)=>{e.exports=r(7187).EventEmitter},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725),t.finished=r(8610),t.pipeline=r(9946)},6464:e=>{"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var a=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=a)return r.substr(0,a);for(;a>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,a)}},9509:(e,t,r)=>{var n=r(8764),a=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(a.prototype),o(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},4563:(e,t,r)=>{var n=r(6547),a=r(2553).s;e.exports=function(e,t,r){var o=new a,i="",s=r&&r.maxLength;"function"==typeof e&&(t=e,e=null);e||(e=/\r?\n/);function l(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}void 0!==r&&e.queue(r)}else e.queue(r)}function c(t,r){var n=((null!=i?i:"")+r).split(e);i=n.pop(),s&&i.length>s&&t.emit("error",new Error("maximum buffer reached"));for(var a=0;a{e.exports=a;var n=r(7187).EventEmitter;function a(){n.call(this)}r(5717)(a,n),a.Readable=r(9481),a.Writable=r(4229),a.Duplex=r(6753),a.Transform=r(4605),a.PassThrough=r(2725),a.finished=r(8610),a.pipeline=r(9946),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(p(),0===n.listenerCount(this,"error"))throw e}function p(){r.removeListener("data",a),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",p),r.removeListener("close",p),e.removeListener("close",p)}return r.on("error",c),e.on("error",c),r.on("end",p),r.on("close",p),e.on("close",p),e.emit("pipe",r),e}},1815:(e,t,r)=>{var n=r(5122);e.exports=function(){var e=[].slice.call(arguments),t=e[0],r=e[e.length-1],a=n(t,r);if(1==e.length)return e[0];if(!e.length)throw new Error("connect called with empty args");function o(){var e=[].slice.call(arguments);e.unshift("error"),a.emit.apply(a,e)}!function e(t){t.length<2||(t[0].pipe(t[1]),e(t.slice(1)))}(e);for(var i=1;i{var n=r(1989),a=r(5676),o=r(7529),i=r(584),s=r(8575),l=t;l.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var a=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||a,l=e.hostname||e.host,c=e.port,p=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?i+"//"+l:"")+(c?":"+c:"")+p,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=a.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=i,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(e,t,r)=>{var n;function a(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=a();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(r.g.fetch)&&i(r.g.ReadableStream),t.writableStream=i(r.g.WritableStream),t.abortController=i(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!a()&&i(a().overrideMimeType),n=null},1989:(e,t,r)=>{var n=r(8764).Buffer,a=r(4155),o=r(8725),i=r(5717),s=r(5676),l=r(8473),c=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var a=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)a=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,a),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(d,l.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===u.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var l=null;if(o.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new r.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(i)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},d.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},d.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(e,t,r)=>{var n=r(4155),a=r(8764).Buffer,o=r(8725),i=r(5717),s=r(8473),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,i){var l=this;if(s.Readable.call(l),l._mode=r,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){n.nextTick((function(){l.emit("close")}))})),"fetch"===r){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){l._destroyed?r():l.push(a.from(e))?t():l._resumeFetch=t}))},close:function(){i(!0),l._destroyed||l.push(null)},abort:function(e){i(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}catch(e){}}var p=t.body.getReader();!function e(){p.read().then((function(t){l._destroyed||(i(t.done),t.done?l.push(null):(l.push(a.from(t.value)),e()))})).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var u=d.match(/;\s*charset=([^;])(;|$)/);u&&(l._charset=u[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=a.alloc(i.length),c=0;ct._pos&&(t.push(a.from(new Uint8Array(p.result.slice(t._pos)))),t._pos=p.result.byteLength)},p.onload=function(){e(!0),t.push(null)},p.readAsArrayBuffer(o)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},2553:(e,t,r)=>{"use strict";var n=r(9509).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=p,this.end=d,t=3;break;default:return this.write=u,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4110:(e,t,r)=>{"use strict";const n=r(7777),a=r(4290),o=r(6841).Z;e.exports=(e,t,r)=>{const i=[];return function e(t,r,s){let l;(r=r||{}).indent=r.indent||"\t",s=s||"",l=void 0===r.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:s,indent:s+r.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const c=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),"\n").replace(new RegExp(l.pad,"g"),s).replace(new RegExp(l.indent,"g"),s+r.indent)};if(-1!==i.indexOf(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||n(t))return String(t);if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";i.push(t);const n="["+l.newLine+t.map(((n,a)=>{const o=t.length-1===a?l.newLine:","+l.newLineOrSpace;let i=e(n,r,s+r.indent);return r.transform&&(i=r.transform(t,a,i)),l.indent+i+o})).join("")+l.pad+"]";return i.pop(),c(n)}if(a(t)){let n=Object.keys(t).concat(o(t));if(r.filter&&(n=n.filter((e=>r.filter(t,e)))),0===n.length)return"{}";i.push(t);const a="{"+l.newLine+n.map(((a,o)=>{const i=n.length-1===o?l.newLine:","+l.newLineOrSpace,c="symbol"==typeof a,p=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(a),d=c||p?a:e(a,r);let u=e(t[a],r,s+r.indent);return r.transform&&(u=r.transform(t,a,u)),l.indent+String(d)+": "+u+i})).join("")+l.pad+"}";return i.pop(),c(a)}return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`}(e,t,r)}},9682:(e,t,r)=>{"use strict";e.exports=r(7325)},6547:(e,t,r)=>{var n=r(4155),a=r(2830);function o(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,i=!1,s=[],l=!1,c=new a;function p(){for(;s.length&&!c.paused;){var e=s.shift();if(null===e)return c.emit("end");c.emit("data",e)}}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&!1===r.autoDestroy),c.write=function(t){return e.call(this,t),!c.paused},c.queue=c.push=function(e){return l||(null===e&&(l=!0),s.push(e),p()),c},c.on("end",(function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick((function(){c.destroy()}))})),c.end=function(e){if(!o)return o=!0,arguments.length&&c.write(e),c.writable=!1,t.call(c),!c.readable&&c.autoDestroy&&c.destroy(),c},c.destroy=function(){if(!i)return i=!0,o=!0,s.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),p(),c.paused||c.emit("drain"),c},c}e.exports=o,o.through=o},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=h-f,A=Math.floor,_=String.fromCharCode;function O(e){throw new RangeError(E[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function T(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function j(e){for(var t=[],r=0,n=e.length;r=55296&&a<=56319&&r>1,e+=A(e/t);e>k*m>>1;n+=h)e=A(e/k);return A(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,a=b,o=v,i=e.lastIndexOf(x);i<0&&(i=0);for(var s=0;s=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l=r&&O("invalid-input");var g=R(e.charCodeAt(l++));(g>=h||g>A((u-n)/p))&&O("overflow"),n+=g*p;var y=d<=o?f:d>=o+m?m:d-o;if(gA(u/w)&&O("overflow"),p*=w}var $=t.length+1;o=I(n-c,$,0==c),A(n/$)>u-a&&O("overflow"),a+=A(n/$),n%=$,t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=j(e)).length,n=b,a=0,o=v,i=!0,s=!1,l=void 0;try{for(var c,p=e[Symbol.iterator]();!(i=(c=p.next()).done);i=!0){var d=c.value;d<128&&t.push(_(d))}}catch(e){s=!0,l=e}finally{try{!i&&p.return&&p.return()}finally{if(s)throw l}}var g=t.length,y=g;for(g&&t.push(x);y=n&&TA((u-a)/R)&&O("overflow"),a+=(w-n)*R,n=w;var D=!0,M=!1,L=void 0;try{for(var N,F=e[Symbol.iterator]();!(D=(N=F.next()).done);D=!0){var U=N.value;if(Uu&&O("overflow"),U==n){for(var q=a,B=h;;B+=h){var H=B<=o?f:B>=o+m?m:B-o;if(q>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r=194&&a<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&a)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(a>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function H(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,a)),e}function z(e){return e.replace(/^0*(.*)/,"$1")||"0"}function W(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=p(r,2)[1];return n?n.split(".").map(z).join("."):e}function V(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=p(r,3),a=n[1],o=n[2];if(a){for(var i=a.toLowerCase().split("::").reverse(),s=p(i,2),l=s[0],c=s[1],d=c?c.split(":").map(z):[],u=l.split(":").map(z),h=t.IPV4ADDRESS.test(u[u.length-1]),f=h?7:8,m=u.length-f,g=Array(f),y=0;y1){var x=g.slice(0,v.index),w=g.slice(v.index+v.length);b=x.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var Z=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(Z);if(a){G?(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5])):(r.scheme=a[1]||void 0,r.userinfo=-1!==e.indexOf("@")?a[3]:void 0,r.host=-1!==e.indexOf("//")?a[4]:void 0,r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=-1!==e.indexOf("?")?a[7]:void 0,r.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),r.host&&(r.host=V(W(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)H(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=F.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}H(r,l)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(V(W(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Q=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Q))e=e.replace(Q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],a=U[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?F.toUnicode(e.host):F.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}H(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||a&&a.absolutePath||(i=te(i)),void 0===o&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ae(e,t,r){var n=i({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,q)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var ue={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=p(r,2),a=n[0],o=n[1];e.path=a&&"/"!==a?a:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize},fe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),$e=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ee=new RegExp(t("[^]",me,xe),"g"),ke=Ee;function Ae(e){var t=B(e);return t.match(we)?t:e}var _e={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var a=!1,o={},i=r.query.split("&"),s=0,l=i.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,w=Math.floor,$=String.fromCharCode;function S(e){throw RangeError(b[e])}function E(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+E((e=e.replace(v,".")).split("."),t).join(".")}function A(e){for(var t,r,n=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=$((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=$(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?w(e/u):e>>1,e+=w(e/t);e>x*p>>1;n+=l)e=w(e/x);return w(n+(x+1)*e/(e+d))}function T(e){var t,r,n,a,o,i,d,u,g,y,v,b=[],x=e.length,$=0,E=f,k=h;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n=128&&S("not-basic"),b.push(e.charCodeAt(n));for(a=r>0?r+1:0;a=x&&S("invalid-input"),((u=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||u>w((s-$)/i))&&S("overflow"),$+=u*i,!(u<(g=d<=k?c:d>=k+p?p:d-k));d+=l)i>w(s/(y=l-g))&&S("overflow"),i*=y;k=P($-o,t=b.length+1,0==o),w($/t)>s-E&&S("overflow"),E+=w($/t),$%=t,b.splice($++,0,E)}return _(b)}function j(e){var t,r,n,a,o,i,d,u,g,y,v,b,x,E,k,_=[];for(b=(e=A(e)).length,t=f,r=0,o=h,i=0;i=t&&vw((s-r)/(x=n+1))&&S("overflow"),r+=(d-t)*x,t=d,i=0;is&&S("overflow"),v==t){for(u=r,g=l;!(u<(y=g<=o?c:g>=o+p?p:g-o));g+=l)k=u-y,E=l-y,_.push($(O(y+k%E,0))),u=w(k/E);_.push($(O(u,0))),o=P(r,x,n==a),r=0,++n}++r,++t}return _.join("")}i={version:"1.3.2",ucs2:{decode:A,encode:_},decode:T,encode:j,toASCII:function(e){return k(e,(function(e){return y.test(e)?"xn--"+j(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),a=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),d=["%","/","?",";","#"].concat(p),u=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function b(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?C+="x":C+=R[I];if(!C.match(h)){var M=T.slice(0,_),L=T.slice(_+1),N=R.match(f);N&&(M.push(N[1]),L.unshift(N[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[$])for(_=0,j=p.length;_0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,_=0,O=S.length;O>=0;O--)"."===(k=S[O])?S.splice(O,1):".."===k?(S.splice(O,1),_++):_&&(S.splice(O,1),_--);if(!w&&!$)for(;_--;_)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var P,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(r.hostname=r.host=T?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function a(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(a("noDeprecation"))return e;var r=!1;return function(){if(!r){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),a=r(8662),o=r(6430),i=r(5692);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,p=s(Object.prototype.toString),d=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function b(e){return"[object WeakMap]"===p(e)}function x(e){return"[object WeakSet]"===p(e)}function w(e){return"[object ArrayBuffer]"===p(e)}function $(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===p(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=a,t.isTypedArray=i,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=$,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function _(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function O(e){return g(e,d)}function P(e){return g(e,u)}function T(e){return g(e,h)}function j(e){return l&&g(e,f)}function R(e){return c&&g(e,m)}t.isSharedArrayBuffer=_,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=O,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=j,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return O(e)||P(e)||T(e)||j(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&($(e)||_(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),a=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var r=p.styles[t];return r?"["+p.colors[r][0]+"m"+e+"["+p.colors[r][1]+"m":e}function u(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return x(a)||(a=h(e,a,n)),a}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var i=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),k(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return f(r);if(0===i.length){if(A(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,p="",d=!1,u=["{","}"];(g(r)&&(d=!0,u=["[","]"]),A(r))&&(p=" [Function"+(r.name?": "+r.name:"")+"]");return $(r)&&(p=" "+RegExp.prototype.toString.call(r)),E(r)&&(p=" "+Date.prototype.toUTCString.call(r)),k(r)&&(p=" "+f(r)),0!==i.length||d&&0!=r.length?n<0?$(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=d?function(e,t,r,n,a){for(var o=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,p,u)):u[0]+p+u[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,o){var i,s,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(n,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(i)){if(o&&a.match(/^\d+$/))return s;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function x(e){return"string"==typeof e}function w(e){return void 0===e}function $(e){return S(e)&&"[object RegExp]"===_(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===_(e)}function k(e){return S(e)&&("[object Error]"===_(e)||e instanceof Error)}function A(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);a.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=$,t.types.isRegExp=$,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;a.log("%s - %s",(e=new Date,r=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),a=[],o=0;o{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=Ge(r(8469)),o=Ge(r(7536)),i=Ge(r(1359)),s=Ge(r(557)),l=Ge(r(2315)),c=Ge(r(9466)),p=Ge(r(661)),d=Ge(r(3868)),u=Ge(r(2492)),h=Ge(r(8999)),f=Ge(r(1028)),m=Ge(r(7795)),g=Ge(r(221)),y=Ge(r(2549)),v=Ge(r(3494)),b=Ge(r(9493)),x=Ge(r(7380)),w=Ze(r(9234)),$=Ze(r(4583)),S=Ge(r(4986)),E=Ge(r(1513)),k=Ge(r(4595)),A=Ge(r(3928)),_=Ge(r(7245)),O=Ge(r(5566)),P=Ge(r(4094)),T=Ge(r(7146)),j=Ge(r(2941)),R=Ge(r(9019)),C=Ge(r(3590)),I=Ge(r(6826)),D=Ge(r(2828)),M=Ge(r(937)),L=Ze(r(9146)),N=Ge(r(5218)),F=Ge(r(7117)),U=Ge(r(6090)),q=Ge(r(8335)),B=Ge(r(6298)),H=Ge(r(6454)),z=Ge(r(6648)),W=Ge(r(4339)),V=Ze(r(8177)),Z=Ge(r(2438)),G=Ge(r(368)),K=Ge(r(8874)),Y=Ge(r(4979)),J=Ge(r(1008)),X=Ge(r(4069)),Q=Ge(r(4958)),ee=Ge(r(3235)),te=Ge(r(7278)),re=Ge(r(9131)),ne=Ge(r(3315)),ae=Ge(r(1464)),oe=Ge(r(7228)),ie=Ge(r(1592)),se=Ge(r(682)),le=Ge(r(9396)),ce=Ge(r(5807)),pe=Ge(r(7148)),de=Ge(r(7612)),ue=Ge(r(9887)),he=Ge(r(3058)),fe=Ze(r(8355)),me=Ge(r(2129)),ge=Ge(r(94)),ye=Ge(r(8021)),ve=Ge(r(9211)),be=Ge(r(5061)),xe=Ge(r(4611)),we=Ge(r(1727)),$e=Ge(r(6776)),Se=Ge(r(9963)),Ee=Ge(r(2782)),ke=Ge(r(5008)),Ae=Ge(r(2689)),_e=Ge(r(8983)),Oe=Ge(r(2776)),Pe=Ge(r(4554)),Te=Ge(r(478)),je=Ze(r(8140)),Re=Ge(r(4959)),Ce=Ge(r(9778)),Ie=Ge(r(4790)),De=Ge(r(5152)),Me=Ge(r(4816)),Le=Ge(r(8035)),Ne=Ge(r(4714)),Fe=Ge(r(4928)),Ue=Ge(r(8346)),qe=Ge(r(2900)),Be=Ge(r(8220)),He=Ge(r(2786)),ze=Ge(r(7633)),We=Ge(r(5977));function Ve(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ve=function(){return e},e}function Ze(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ve();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function Ge(e){return e&&e.__esModule?e:{default:e}}var Ke={version:"13.9.0",toDate:a.default,toFloat:o.default,toInt:i.default,toBoolean:s.default,equals:l.default,contains:c.default,matches:p.default,isEmail:d.default,isURL:u.default,isMACAddress:h.default,isIP:f.default,isIPRange:m.default,isFQDN:g.default,isBoolean:b.default,isIBAN:V.default,isBIC:Z.default,isAlpha:w.default,isAlphaLocales:w.locales,isAlphanumeric:$.default,isAlphanumericLocales:$.locales,isNumeric:S.default,isPassportNumber:E.default,isPort:k.default,isLowercase:A.default,isUppercase:_.default,isAscii:P.default,isFullWidth:T.default,isHalfWidth:j.default,isVariableWidth:R.default,isMultibyte:C.default,isSemVer:I.default,isSurrogatePair:D.default,isInt:M.default,isIMEI:O.default,isFloat:L.default,isFloatLocales:L.locales,isDecimal:N.default,isHexadecimal:F.default,isOctal:U.default,isDivisibleBy:q.default,isHexColor:B.default,isRgbColor:H.default,isHSL:z.default,isISRC:W.default,isMD5:G.default,isHash:K.default,isJWT:Y.default,isJSON:J.default,isEmpty:X.default,isLength:Q.default,isLocale:x.default,isByteLength:ee.default,isUUID:te.default,isMongoId:re.default,isAfter:ne.default,isBefore:ae.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:se.default,isIdentityCard:le.default,isEAN:ce.default,isISIN:pe.default,isISBN:de.default,isISSN:ue.default,isMobilePhone:fe.default,isMobilePhoneLocales:fe.locales,isPostalCode:je.default,isPostalCodeLocales:je.locales,isEthereumAddress:me.default,isCurrency:ge.default,isBtcAddress:ye.default,isISO6391:ve.default,isISO8601:be.default,isRFC3339:xe.default,isISO31661Alpha2:we.default,isISO31661Alpha3:$e.default,isISO4217:Se.default,isBase32:Ee.default,isBase58:ke.default,isBase64:Ae.default,isDataURI:_e.default,isMagnetURI:Oe.default,isMimeType:Pe.default,isLatLong:Te.default,ltrim:Re.default,rtrim:Ce.default,trim:Ie.default,escape:De.default,unescape:Me.default,stripLow:Le.default,whitelist:Ne.default,blacklist:Fe.default,isWhitelisted:Ue.default,normalizeEmail:qe.default,toString,isSlug:Be.default,isStrongPassword:ze.default,isTaxID:he.default,isDate:y.default,isTime:v.default,isLicensePlate:He.default,isVAT:We.default,ibanLocales:V.locales};t.default=Ke,e.exports=t.default,e.exports.default=t.default},79:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.bengaliLocales=t.farsiLocales=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var r={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};t.alpha=r;var n={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};t.alphanumeric=n;var a={"en-US":".",ar:"٫"};t.decimal=a;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=o;for(var i,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,n.default)(e),(r=(0,o.default)(r,s)).ignoreCase)return e.toLowerCase().split((0,a.default)(t).toLowerCase()).length>r.minOccurrences;return e.split((0,a.default)(t)).length>r.minOccurrences};var n=i(r(5571)),a=i(r(1913)),o=i(r(4808));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},2315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),n=(0,a.default)(r),o=(0,a.default)(e);return!!(o&&n&&o>n)};var n,a=(n=r(8469))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alpha)return o.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alpha);t.locales=i},4583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alphanumeric)return o.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alphanumeric);t.locales=i},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},2438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.slice(4,6).toUpperCase();if(!o.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(1727);var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},2782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,l)).crockford)return s.test(e);if(e.length%8==0&&i.test(e))return!0;return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,s=/^[A-HJKMNP-TV-Z0-9]+$/,l={crockford:!1};e.exports=t.default,e.exports.default=t.default},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),o.test(e))return!0;return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},2689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,a.default)(t,l);var r=e.length;if(t.urlSafe)return s.test(e);if(r%4!=0||i.test(e))return!1;var o=e.indexOf("=");return-1===o||o===r-1||o===r-2&&"="===e[r-1]};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,l={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,a.default)(t),o=(0,a.default)(e);return!!(o&&r&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,a.default)(e),t.loose)return s.includes(e.toLowerCase());return i.includes(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={loose:!1},i=["true","false","1","0"],s=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},8021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},3235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===n||i<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var r=t.provider,o=e.replace(/[- ]+/g,"");if(r&&r.toLowerCase()in i){if(!i[r.toLowerCase()].test(o))return!1}else{if(r&&!(r.toLowerCase()in i))throw new Error("".concat(r," is not a valid credit card provider."));if(!s.test(o))return!1}return(0,a.default)(e)};var n=o(r(5571)),a=o(r(1592));function o(e){return e&&e.__esModule?e:{default:e}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},s=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",a="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",a].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t=(0,n.default)(t,i)).test(e)};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},8983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.split(",");if(t.length<2)return!1;var r=t.shift().trim().split(";"),n=r.shift();if("data:"!==n.slice(0,5))return!1;var l=n.slice(5);if(""!==l&&!o.test(l))return!1;for(var c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,a.default)({format:t},s):(0,a.default)(t,s);if("string"==typeof e&&(g=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g))){var r,n=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),i=t.strictMode?n:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),l=function(e,t){for(var r=[],n=Math.min(e.length,t.length),a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(l);try{for(p.s();!(r=p.n()).done;){var d=(f=r.value,m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(f,m)||o(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],h=d[1];if(u.length!==h.length)return!1;c[h.charAt(0)]=u}}catch(e){p.e(e)}finally{p.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var f,m;var g;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,l)).locale in i.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(4808)),a=s(r(5571)),o=s(r(8343)),i=r(79);function s(e){return e&&e.__esModule?e:{default:e}}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},8335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,a.default)(e)%parseInt(t,10)==0};var n=o(r(5571)),a=o(r(7536));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},5807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=Number(e.slice(-1));return s.test(e)&&t===(r=e,n=10-r.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===o||e===i?t%2==0?3:1:t%2==0?1:3}(r.length,t)})).reduce((function(e,t){return e+t}),0)%10,n<10?n:0);var r,n};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=8,i=14,s=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(p);if(r){var l=r[1];if(e=e.replace(l,"").replace(/(^<|>$)/g,""),l.endsWith(" ")&&(l=l.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(l))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var x=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var w=(x=x.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var $=w.split("."),S=0;S<$.length;S++)if(!u.test($[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(x,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.slice(1,-1);if(0===E.length||!(0,s.default)(E))return!1}}if('"'===x[0])return x=x.slice(1,x.length-1),t.allow_utf8_local_part?m.test(x):h.test(x);for(var k=t.allow_utf8_local_part?f:d,A=x.split("."),_=0;_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,a.default)(t,i)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,a.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.decimal);t.locales=i},7146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.fullWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},6648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return o.test(t);return i.test(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},2941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.halfWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},8874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-fA-F0-9]{".concat(o[t],"}$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},8177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in o&&o[r].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var i=Object.keys(o);t.locales=i},5566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o;(t=t||{}).allow_hyphens&&(r=i);if(!r.test(e))return!1;e=e.replace(/-/g,"");for(var n=0,s=2,l=0;l<14;l++){var c=e.substring(14-l-1,14-l),p=parseInt(c,10)*s;n+=p>=10?p%10+1:p,1===s?s+=1:s-=1}if((10-n%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},1028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,a.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return s.test(t);if("6"===r)return c.test(t);return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(o,"[.]){3}").concat(o),s=new RegExp("^".concat(i,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(i,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(i,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(i,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(i,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(i,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(i,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(i,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},7795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var r=e.split("/");if(2!==r.length)return!1;if(!i.test(r[1]))return!1;if(r[1].length>1&&r[1].startsWith("0"))return!1;if(!(0,a.default)(r[0],t))return!1;var o=null;switch(String(t)){case"4":o=s;break;case"6":o=l;break;default:o=(0,a.default)(r[0],"6")?l:s}return r[1]<=o&&r[1]>=0};var n=o(r(5571)),a=o(r(1028));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,s=32,l=128;e.exports=t.default,e.exports.default=t.default},7612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t);var n=String((null==r?void 0:r.version)||r);if(!(null!=r&&r.version||r))return e(t,{version:10})||e(t,{version:13});var l=t.replace(/[\s-]+/g,""),c=0;if("10"===n){if(!o.test(l))return!1;for(var p=0;p{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=!0,r=0,n=e.length-2;n>=0;n--)if(e[n]>="A"&&e[n]<="Z")for(var i=e[n].charCodeAt(0)-55,s=0,l=[i%10,Math.trunc(i/10)];s=5?1+2*(c-5):2*c:c,t=!t}else{var p=e[n].charCodeAt(0)-"0".charCodeAt(0);r+=t?p>=5?1+2*(p-5):2*p:p,t=!t}var d=10*Math.trunc((r+9)/10)-r;return+e[e.length-1]===d};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},1727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CountryCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var i=o;t.CountryCodes=i},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},9963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CurrencyCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var i=o;t.CurrencyCodes=i},9211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},5061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=t.strictSeparator?i.test(e):o.test(e);return r&&t.strict?s(e):r};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var a=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=a[1],i=a[2],s=a[3],l=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,p=new Date("".concat(o,"-").concat(l||"01","-").concat(c||"01"));return!i||!s||p.getUTCFullYear()===o&&p.getUTCMonth()+1===i&&p.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default},4339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},9887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),i=0,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in i)return i[t](e);if("any"===t){for(var r in i){if(i.hasOwnProperty(r))if((0,i[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=o(r(5571)),a=o(r(937));function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,a.default)(e,{allow_leading_zeroes:!0})){var r=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0)%10,o=Number(e.charAt(e.length-1));if(0===r&&0===o||o===10-r)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var a=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][a%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var a=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){a=t[a][r[n%8][e]]})),0===a},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,a=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&a===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,a=0,o=0;o9?r-9:r;return a%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],a=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),a=new Date(t,r-1,n);return!(a>new Date)&&(a.getFullYear()===t&&a.getMonth()===r-1&&a.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return a[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=i(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var a=t[r];return a%10*9+Math.floor(a/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default},7228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(r in t)({}).hasOwnProperty.call(t,r)&&(o[r]=(0,a.default)(t[r]));return o.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(5571)),a=o(r(1913));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:i,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,l=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&l&&c};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},1008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,a.default)(t,s);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var o=JSON.parse(e);return r.includes(o)||!!o&&"object"===i(o)}catch(e){}return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},4979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),r=t.length;if(r>3||r<2)return!1;return t.reduce((function(e,t){return e&&(0,a.default)(t,{urlSafe:!0})}),!0)};var n=o(r(5571)),a=o(r(2689));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,a.default)(t,p),!e.includes(","))return!1;var r=e.split(",");if(r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("("))return!1;if(t.checkDMS)return l.test(r[0])&&c.test(r[1]);return i.test(r[0])&&s.test(r[1])};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},4958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1]||0,n=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-i.length-s.length;return l>=r&&(void 0===n||l<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},2786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o){if((0,o[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},7380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default},3928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);for(var t,r,n,o=e.replace(/[- ]+/g,""),i=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),r=parseInt(t,10),i+=n&&(r*=2)>=10?r%10+1:r,n=!n;return!(i%10!=0||!o)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t),null!=r&&r.eui&&(r.eui=String(r.eui));if(null!=r&&r.no_colons||null!=r&&r.no_separators)return"48"===r.eui?i.test(t):"64"===r.eui?c.test(t):i.test(t)||c.test(t);if("48"===(null==r?void 0:r.eui))return o.test(t)||s.test(t);if("64"===(null==r?void 0:r.eui))return l.test(t)||p.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,c=/^([0-9a-fA-F]){16}$/,p=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),0!==e.indexOf("magnet:?"))return!1;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},4554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)||s.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},8355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,a.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(o.hasOwnProperty(t)&&o[t].test(e))return!0;return!1}));if(t in o)return o[t].test(e);if(!t||"any"===t){for(var n in o){if(o.hasOwnProperty(n))if(o[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};o["en-CA"]=o["en-US"],o["fr-CA"]=o["en-CA"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],o["zh-MO"]=o["en-MO"],o["ga-IE"]=o["en-IE"],o["fr-CH"]=o["de-CH"],o["it-CH"]=o["fr-CH"];var i=Object.keys(o);t.locales=i},9131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,a.default)(e)&&24===e.length};var n=o(r(5571)),a=o(r(7117));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},3590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?o.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},6090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},1513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in o&&o[t].test(r)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},4595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var n,a=(n=r(937))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^\d{3}$/,i=/^\d{4}$/,s=/^\d{5}$/,l=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:i,DO:s,DZ:s,EE:s,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:s,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:o,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:s,MG:o,MX:s,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:s,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:s,TN:i,TW:/^\d{3}(\d{2})?$/,UA:s,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:s},p=Object.keys(c);t.locales=p},4611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),u.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,s=new RegExp("[-+]".concat(o.source,":").concat(i.source)),l=new RegExp("([zZ]|".concat(s.source,")")),c=new RegExp("".concat(o.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),p=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(c.source).concat(l.source)),u=new RegExp("^".concat(p.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},6454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,a.default)(e),!t)return o.test(e)||i.test(e);return o.test(e)||i.test(e)||s.test(e)||l.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,l=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},6826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),o.test(e)};var n=a(r(5571));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,a(r(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},7633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,a.default)(e);var r=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:s.test(e)?r.lowercaseCount+=t[e]:l.test(e)?r.numberCount+=t[e]:c.test(e)&&(r.symbolCount+=t[e])})),r}(e);if((t=(0,n.default)(t||{},p)).returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(r,t);return r.length>=t.minLength&&r.lowercaseCount>=t.minLowercase&&r.uppercaseCount>=t.minUppercase&&r.numberCount>=t.minNumbers&&r.symbolCount>=t.minSymbols};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,s=/^[a-z]$/,l=/^[0-9]$/,c=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},2828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},3058:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,a.default)(e);var r=e.slice(0);if(t in h)return t in g&&(r=r.replace(g[t],"")),!!h[t].test(r)&&(!(t in f)||f[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var a=l(r(5571)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672)),i=l(r(2549));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var h={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var f={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,l=0;l50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var a=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===a))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,l=0;l58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=4,s=0;s<9;s++)a+=n[s]*o,1===(o-=1)&&(o=7);return 1!==(a%=11)&&(0===a?0===n[9]:n[9]===11-a)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,c(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=1,s=0;s<10;s++)a+=n[s]*o,10===(o+=1)&&(o=1);if(a%11==10){a=0,o=3;for(var l=0;l<10;l++)a+=n[l]*o,10===(o+=1)&&(o=1);if(a%11==10)return 0===n[10]}return a%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!u(t.slice(0,3)))return!1;if(!u(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,a=[6,7,9,10,12,13,14];n40&&(l-=40),l<10&&(l="0".concat(l));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(l);if(!(0,i.default)(c,"YY/MM/DD"))return!1;for(var p=0,d=1;d4&&(g+=2)}p+=g}return String.fromCharCode(65+p%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var a=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n80?(a="18".concat(a),o-=80):o>60?(a="22".concat(a),o-=60):o>40?(a="21".concat(a),o-=40):o>20?(a="20".concat(a),o-=20):a="19".concat(a),o<10&&(o="0".concat(o));var s="".concat(a,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,i.default)(s,"YYYY/MM/DD"))return!1;for(var l=0,c=1,p=0;p10?c=1:5===c&&(c+=2);return(l=10-l%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var a=1;a<=10;a++)t+=parseInt(e.substring(a-1,a),10)*(12-a);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,i=e.substring(0,o),s=e.substring(o),l=0,c=o-7,p=o;p>=1;p--)l+=i.charAt(o-p)*c,(c-=1)<2&&(c=9);var d=l%11<2?0:11-l%11;if(d!==parseInt(s.charAt(0),10))return!1;o+=1,i=e.substring(0,o),l=0,c=o-7;for(var u=o;u>=1;u--)l+=i.charAt(o-u)*c,(c-=1)<2&&(c=9);return(d=l%11<2?0:11-l%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),l=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(l).concat(r),10)>s?"".concat(l-1).concat(r):"".concat(l).concat(r);else if(r="".concat(l-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.luhnCheck(e.replace(/\W/,""))}};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var m=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":m,"de-DE":/[\/\\]/g,"fr-BE":m};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},3494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,a.default)(t,o),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,i.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,s,u,h,f,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(r=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}($=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}($,S)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}($,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var $,S;h=g.join("@"),m=null,y=null;var E=h.match(p);E?(u="",y=E[1],m=E[2]||null):(u=(g=h.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(f=parseInt(m,10),!/^[0-9]+$/.test(m)||f<=0||f>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(u,t.host_whitelist);if(""===u&&!t.require_host)return!0;if(!((0,o.default)(u)||(0,a.default)(u,t)||y&&(0,o.default)(y,6)))return!1;if(u=u||y,t.host_blacklist&&d(u,t.host_blacklist))return!1;return!0};var n=s(r(5571)),a=s(r(221)),o=s(r(1028)),i=s(r(4808));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o[[void 0,null].includes(t)?"all":t];return!!r&&r.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5977:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(0,o.default)(t),t in l)return l[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var a,o=(a=r(5571))&&a.__esModule?a:{default:a},i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-i.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=l},9019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&i.halfWidth.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(7146),i=r(2941);e.exports=t.default,e.exports.default=t.default},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},2900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var r=e.split("@"),n=r.pop(),d=[r.join("@"),n];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,p)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(i.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(l.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var u=d[0].split("-");d[0]=u.length>1?u.slice(0,-1).join("-"):u[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else c.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],l=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},9778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var n=e.length-1;for(;/\s/.test(e.charAt(n));)n-=1;return e.slice(0,n+1)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(e,r)};var n=o(r(5571)),a=o(r(4928));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},7536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e)?parseFloat(e):NaN};var n,a=(n=r(9146))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,a.default)(e,t),t)};var n=o(r(9778)),a=o(r(4959));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},4816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,r=0;r=0;n--){if(r){var a=2*parseInt(e[n],10);t+=a>9?a.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):a}else t+=parseInt(e[n],10);r=!r}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},8343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},4808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default},1913:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},4714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},6430:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=r(7296),s=o("Object.prototype.toString"),l=r(6410)(),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("String.prototype.slice"),u={},h=Object.getPrototypeOf;l&&i&&h&&n(p,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=i(r,Symbol.toStringTag);if(!n){var a=h(r);n=i(a,Symbol.toStringTag)}u[e]=n.get}}}));var f=r(5692);e.exports=function(e){return!!f(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(u,(function(r,n){if(!t)try{var a=r.call(e);a===n&&(t=a)}catch(e){}})),t}(e):d(s(e),8,-1))}},3131:(e,t,r)=>{"use strict";var n=r(6464),a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},i=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!a(e)&&!o(e)};function s(e){return a(e)?"ClosingTag":i(e)?"OpeningTag":o(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,a=t.textNodesOnSameLine,o=0,i=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:s(e)}}))).map((function(e,t,s){var l=e.value,c=e.type;"ClosingTag"===c&&o--;var p=n(r,o),d=p+l;if("OpeningTag"===c&&o++,a){var u=s[t-1],h=s[t-2];"ClosingTag"===c&&"Text"===u.type&&"OpeningTag"===h.type&&(d=""+p+h.value+u.value+l,i.push(t-2,t-1))}return d}));return i.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}},7529:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";e.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ENUM_CASE_MISMATCH:"Enum does not match case for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"}},7797:(e,t,r)=>{var n=r(8966),a={date:function(e){if("string"!=typeof e)return!0;var t=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(e);return null!==t&&!(t[2]<"01"||t[2]>"12"||t[3]<"01"||t[3]>"31")},"date-time":function(e){if("string"!=typeof e)return!0;var t=e.toLowerCase().split("t");if(!a.date(t[0]))return!1;var r=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(t[1]);return null!==r&&!(r[1]>"23"||r[2]>"59"||r[3]>"59")},email:function(e){return"string"!=typeof e||n.isEmail(e,{require_tld:!0})},hostname:function(e){if("string"!=typeof e)return!0;var t=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(e);if(t){if(e.length>255)return!1;for(var r=e.split("."),n=0;n63)return!1}return t},"host-name":function(e){return a.hostname.call(this,e)},ipv4:function(e){return"string"!=typeof e||n.isIP(e,4)},ipv6:function(e){return"string"!=typeof e||n.isIP(e,6)},regex:function(e){try{return RegExp(e),!0}catch(e){return!1}},uri:function(e){return this.options.strictUris?a["strict-uri"].apply(this,arguments):"string"!=typeof e||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(e)},"strict-uri":function(e){return"string"!=typeof e||n.isURL(e)}};e.exports=a},4706:(e,t,r)=>{"use strict";var n=r(7797),a=r(9454),o=r(9750),i=function(e,t){return e&&Array.isArray(e.includeErrors)&&e.includeErrors.length>0&&!t.some((function(t){return e.includeErrors.includes(t)}))},s={multipleOf:function(e,t,r){if(!i(this.validateOptions,["MULTIPLE_OF"])&&"number"==typeof r){var n=String(t.multipleOf),a=Math.pow(10,n.length-n.indexOf(".")-1);"integer"!==o.whatIs(r*a/(t.multipleOf*a))&&e.addError("MULTIPLE_OF",[r,t.multipleOf],null,t)}},maximum:function(e,t,r){i(this.validateOptions,["MAXIMUM","MAXIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMaximum?r>t.maximum&&e.addError("MAXIMUM",[r,t.maximum],null,t):r>=t.maximum&&e.addError("MAXIMUM_EXCLUSIVE",[r,t.maximum],null,t))},exclusiveMaximum:function(){},minimum:function(e,t,r){i(this.validateOptions,["MINIMUM","MINIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMinimum?rt.maxLength&&e.addError("MAX_LENGTH",[r.length,t.maxLength],null,t)},minLength:function(e,t,r){i(this.validateOptions,["MIN_LENGTH"])||"string"==typeof r&&o.ucs2decode(r).lengtht.items.length&&e.addError("ARRAY_ADDITIONAL_ITEMS",null,null,t)},items:function(){},maxItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_LONG"])||Array.isArray(r)&&r.length>t.maxItems&&e.addError("ARRAY_LENGTH_LONG",[r.length,t.maxItems],null,t)},minItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_SHORT"])||Array.isArray(r)&&r.lengtht.maxProperties&&e.addError("OBJECT_PROPERTIES_MAXIMUM",[n,t.maxProperties],null,t)}},minProperties:function(e,t,r){if(!i(this.validateOptions,["OBJECT_PROPERTIES_MINIMUM"])&&"object"===o.whatIs(r)){var n=Object.keys(r).length;n0){var h=this.options.assumeAdditional.length;if(h)for(;h--;){var f=s.indexOf(this.options.assumeAdditional[h]);-1!==f&&s.splice(f,1)}var m=s.length;if(m)for(;m--;)e.addError("OBJECT_ADDITIONAL_PROPERTIES",[s[m]],null,t)}}}},dependencies:function(e,r,n){if(!i(this.validateOptions,["OBJECT_DEPENDENCY_KEY"])&&"object"===o.whatIs(n))for(var a=Object.keys(r.dependencies),s=a.length;s--;){var l=a[s];if(n[l]){var c=r.dependencies[l];if("object"===o.whatIs(c))t.validate.call(this,e,c,n);else for(var p=c.length;p--;){var d=c[p];void 0===n[d]&&e.addError("OBJECT_DEPENDENCY_KEY",[d,l],null,r)}}}},enum:function(e,t,r){if(!i(this.validateOptions,["ENUM_CASE_MISMATCH","ENUM_MISMATCH"])){for(var n=!1,a=!1,s=t.enum.length;s--;){if(o.areEqual(r,t.enum[s])){n=!0;break}o.areEqual(r,t.enum[s]),a=!0}if(!1===n){var l=a&&this.options.enumCaseInsensitiveComparison?"ENUM_CASE_MISMATCH":"ENUM_MISMATCH";e.addError(l,[r],null,t)}}},type:function(e,t,r){if(!i(this.validateOptions,["INVALID_TYPE"])){var n=o.whatIs(r);"string"==typeof t.type?n===t.type||"integer"===n&&"number"===t.type||e.addError("INVALID_TYPE",[t.type,n],null,t):-1!==t.type.indexOf(n)||"integer"===n&&-1!==t.type.indexOf("number")||e.addError("INVALID_TYPE",[t.type,n],null,t)}},allOf:function(e,r,n){for(var a=r.allOf.length;a--;){var o=t.validate.call(this,e,r.allOf[a],n);if(this.options.breakOnFirstError&&!1===o)break}},anyOf:function(e,r,n){for(var o=[],i=!1,s=r.anyOf.length;s--&&!1===i;){var l=new a(e);o.push(l),i=t.validate.call(this,l,r.anyOf[s],n)}!1===i&&e.addError("ANY_OF_MISSING",void 0,o,r)},oneOf:function(e,r,n){for(var o=0,i=[],s=r.oneOf.length;s--;){var l=new a(e,{maxErrors:1});i.push(l),!0===t.validate.call(this,l,r.oneOf[s],n)&&o++}0===o?e.addError("ONE_OF_MISSING",void 0,i,r):o>1&&e.addError("ONE_OF_MULTIPLE",null,null,r)},not:function(e,r,n){var o=new a(e);!0===t.validate.call(this,o,r.not,n)&&e.addError("NOT_PASSED",null,null,r)},definitions:function(){},format:function(e,t,r){var a=n[t.format];if("function"==typeof a){if(i(this.validateOptions,["INVALID_FORMAT"]))return;if(2===a.length){var s=o.clone(e.path);e.addAsyncTask(a,[r],(function(n){if(!0!==n){var a=e.path;e.path=s,e.addError("INVALID_FORMAT",[t.format,r],null,t),e.path=a}}))}else!0!==a.call(this,r)&&e.addError("INVALID_FORMAT",[t.format,r],null,t)}else!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format],null,t)}},l=function(e,r,n){var a=n.length;if(Array.isArray(r.items))for(;a--;)a0;){if(!t.__$refResolved){e.addError("REF_UNRESOLVED",[t.$ref],null,t);break}if(t.__$refResolved===t)break;t=t.__$refResolved,a=Object.keys(t),p--}if(0===p)throw new Error("Circular dependency by $ref references!")}var d=o.whatIs(r);if(t.type&&(a.splice(a.indexOf("type"),1),s.type.call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError))return!1;for(var u=a.length;u--&&!(s[a[u]]&&(s[a[u]].call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError)););return 0!==e.errors.length&&!1!==this.options.breakOnFirstError||("array"===d?l.call(this,e,t,r):"object"===d&&c.call(this,e,t,r)),"function"==typeof this.options.customValidator&&this.options.customValidator.call(this,e,t,r),i&&(e.rootSchema=void 0),0===e.errors.length}},2630:()=>{"function"!=typeof Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)})},9454:(e,t,r)=>{"use strict";var n=r(4155),a=r(9208),o=r(3970),i=r(9750);function s(e,t){this.parentReport=e instanceof s?e:void 0,this.options=e instanceof s?e.options:e||{},this.reportOptions=t||{},this.errors=[],this.path=[],this.asyncTasks=[],this.rootSchema=void 0,this.commonErrorMessage=void 0,this.json=void 0}s.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},s.prototype.addAsyncTask=function(e,t,r){this.asyncTasks.push([e,t,r])},s.prototype.getAncestor=function(e){if(this.parentReport)return this.parentReport.getSchemaId()===e?this.parentReport:this.parentReport.getAncestor(e)},s.prototype.processAsyncTasks=function(e,t){var r=e||2e3,a=this.asyncTasks.length,o=a,i=!1,s=this;function l(){n.nextTick((function(){var e=0===s.errors.length,r=e?null:s.errors;t(r,e)}))}function c(e){return function(t){i||(e(t),0==--a&&l())}}if(0===a||this.errors.length>0&&this.options.breakOnFirstError)l();else{for(;o--;){var p=this.asyncTasks[o];p[0].apply(null,p[1].concat(c(p[2])))}setTimeout((function(){a>0&&(i=!0,s.addError("ASYNC_TIMEOUT",[a,r]),t(s.errors,!1))}),r)}},s.prototype.getPath=function(e){var t=[];return this.parentReport&&(t=t.concat(this.parentReport.path)),t=t.concat(this.path),!0!==e&&(t="#/"+t.map((function(e){return e=e.toString(),i.isAbsoluteUri(e)?"uri("+e+")":e.replace(/\~/g,"~0").replace(/\//g,"~1")})).join("/")),t},s.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var e=[];for(this.parentReport&&(e=e.concat(this.parentReport.path)),e=e.concat(this.path);e.length>0;){var t=a(this.rootSchema,e);if(t&&t.id)return t.id;e.pop()}return this.rootSchema.id},s.prototype.hasError=function(e,t){for(var r=this.errors.length;r--;)if(this.errors[r].code===e){for(var n=!0,a=this.errors[r].params.length;a--;)this.errors[r].params[a]!==t[a]&&(n=!1);if(n)return n}return!1},s.prototype.addError=function(e,t,r,n){if(!e)throw new Error("No errorCode passed into addError()");this.addCustomError(e,o[e],t,r,n)},s.prototype.getJson=function(){for(var e=this;void 0===e.json;)if(void 0===(e=e.parentReport))return;return e.json},s.prototype.addCustomError=function(e,t,r,n,a){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!t)throw new Error("No errorMessage known for code "+e);for(var o=(r=r||[]).length;o--;){var s=i.whatIs(r[o]),l="object"===s||"null"===s?JSON.stringify(r[o]):r[o];t=t.replace("{"+o+"}",l)}var c={code:e,params:r,message:t,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(c[i.schemaSymbol]=a,c[i.jsonSymbol]=this.getJson(),a&&"string"==typeof a?c.description=a:a&&"object"==typeof a&&(a.title&&(c.title=a.title),a.description&&(c.description=a.description)),null!=n){for(Array.isArray(n)||(n=[n]),c.inner=[],o=n.length;o--;)for(var p=n[o],d=p.errors.length;d--;)c.inner.push(p.errors[d]);0===c.inner.length&&(c.inner=void 0)}this.errors.push(c)}},e.exports=s},7994:(e,t,r)=>{"use strict";var n=r(2307),a=r(9454),o=r(2765),i=r(2088),s=r(9750);function l(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function c(e,t){if("object"==typeof e&&null!==e){if(!t)return e;if(e.id&&(e.id===t||"#"===e.id[0]&&e.id.substring(1)===t))return e;var r,n;if(Array.isArray(e)){for(r=e.length;r--;)if(n=c(e[r],t))return n}else{var a=Object.keys(e);for(r=a.length;r--;){var o=a[r];if(0!==o.indexOf("__$")&&(n=c(e[o],t)))return n}}}}t.cacheSchemaByUri=function(e,t){var r=l(e);r&&(this.cache[r]=t)},t.removeFromCacheByUri=function(e){var t=l(e);t&&delete this.cache[t]},t.checkCacheForUri=function(e){var t=l(e);return!!t&&null!=this.cache[t]},t.getSchema=function(e,r){return"object"==typeof r&&(r=t.getSchemaByReference.call(this,e,r)),"string"==typeof r&&(r=t.getSchemaByUri.call(this,e,r)),r},t.getSchemaByReference=function(e,t){for(var r=this.referenceCache.length;r--;)if(n(this.referenceCache[r][0],t))return this.referenceCache[r][1];var a=s.cloneDeep(t);return this.referenceCache.push([t,a]),a},t.getSchemaByUri=function(e,t,r){var n,s=l(t),p=function(e){var t=e.indexOf("#");return-1===t?void 0:e.slice(t+1)}(t),d=s?this.cache[s]:r;if(d&&s&&d!==r){var u;e.path.push(s);var h=e.getAncestor(d.id);if(h)u=h;else if(u=new a(e),o.compileSchema.call(this,u,d)){var f=this.options;try{this.options=d.__$validationOptions||this.options,i.validateSchema.call(this,u,d)}finally{this.options=f}}var m=u.isValid();if(m||e.addError("REMOTE_NOT_VALID",[t],u),e.path.pop(),!m)return}if(d&&p)for(var g=p.split("/"),y=0,v=g.length;d&&y{"use strict";var n=r(9454),a=r(7994),o=r(9750);function i(e,t){if(o.isAbsoluteUri(t))return t;var r,n=e.join(""),a=o.isAbsoluteUri(n),i=o.isRelativeUri(n),s=o.isRelativeUri(t);a&&s?(r=n.match(/\/[^\/]*$/))&&(n=n.slice(0,r.index+1)):i&&s?n="":(r=n.match(/[^#/]+$/))&&(n=n.slice(0,r.index));var l=n+t;return l=l.replace(/##/,"#")}function s(e,t,r,n){if(t=t||[],r=r||[],n=n||[],"object"!=typeof e||null===e)return t;var a;if("string"==typeof e.id&&r.push(e.id),"string"==typeof e.$ref&&void 0===e.__$refResolved&&t.push({ref:i(r,e.$ref),key:"$ref",obj:e,path:n.slice(0)}),"string"==typeof e.$schema&&void 0===e.__$schemaResolved&&t.push({ref:i(r,e.$schema),key:"$schema",obj:e,path:n.slice(0)}),Array.isArray(e))for(a=e.length;a--;)n.push(a.toString()),s(e[a],t,r,n),n.pop();else{var o=Object.keys(e);for(a=o.length;a--;)0!==o[a].indexOf("__$")&&(n.push(o[a]),s(e[o[a]],t,r,n),n.pop())}return"string"==typeof e.id&&r.pop(),t}var l=function(e,r){for(var a=r.length,o=0;a--;){var i=new n(e);t.compileSchema.call(this,i,r[a])&&o++,e.errors=e.errors.concat(i.errors)}return o};function c(e,t){for(var r=e.length;r--;)if(e[r].id===t)return e[r];return null}var p=function(e,t){var r,n=0;do{for(var a=e.errors.length;a--;)"UNRESOLVABLE_REFERENCE"===e.errors[a].code&&e.errors.splice(a,1);for(r=n,n=l.call(this,e,t),a=t.length;a--;){var o=t[a];if(o.__$missingReferences){for(var i=o.__$missingReferences.length;i--;){var s=o.__$missingReferences[i],p=c(t,s.ref);p&&(s.obj["__"+s.key+"Resolved"]=p,o.__$missingReferences.splice(i,1))}0===o.__$missingReferences.length&&delete o.__$missingReferences}}}while(n!==t.length&&n!==r);return e.isValid()};t.compileSchema=function(e,r){if(e.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof r){var i=a.getSchemaByUri.call(this,e,r);if(!i)return e.addError("SCHEMA_NOT_REACHABLE",[r]),!1;r=i}if(Array.isArray(r))return p.call(this,e,r);if(r.__$compiled&&r.id&&!1===a.checkCacheForUri.call(this,r.id)&&(r.__$compiled=void 0),r.__$compiled)return!0;r.id&&"string"==typeof r.id&&a.cacheSchemaByUri.call(this,r.id,r);var l=!1;e.rootSchema||(e.rootSchema=r,l=!0);var c=e.isValid();delete r.__$missingReferences;for(var d=s.call(this,r),u=d.length;u--;){var h=d[u],f=a.getSchemaByUri.call(this,e,h.ref,r);if(!f){var m=this.getSchemaReader();if(m){var g=m(h.ref);if(g){g.id=h.ref;var y=new n(e);t.compileSchema.call(this,y,g)?f=a.getSchemaByUri.call(this,e,h.ref,r):e.errors=e.errors.concat(y.errors)}}}if(!f){var v=e.hasError("REMOTE_NOT_VALID",[h.ref]),b=o.isAbsoluteUri(h.ref),x=!1,w=!0===this.options.ignoreUnresolvableReferences;b&&(x=a.checkCacheForUri.call(this,h.ref)),v||w&&b||x||(Array.prototype.push.apply(e.path,h.path),e.addError("UNRESOLVABLE_REFERENCE",[h.ref]),e.path=e.path.slice(0,-h.path.length),c&&(r.__$missingReferences=r.__$missingReferences||[],r.__$missingReferences.push(h)))}h.obj["__"+h.key+"Resolved"]=f}var $=e.isValid();return $?r.__$compiled=!0:r.id&&"string"==typeof r.id&&a.removeFromCacheByUri.call(this,r.id),l&&(e.rootSchema=void 0),$}},2088:(e,t,r)=>{"use strict";var n=r(7797),a=r(4706),o=r(9454),i=r(9750),s={$ref:function(e,t){"string"!=typeof t.$ref&&e.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(e,t){"string"!=typeof t.$schema&&e.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(e,t){"number"!=typeof t.multipleOf?e.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):t.multipleOf<=0&&e.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(e,t){"number"!=typeof t.maximum&&e.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(e,t){"boolean"!=typeof t.exclusiveMaximum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===t.maximum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(e,t){"number"!=typeof t.minimum&&e.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(e,t){"boolean"!=typeof t.exclusiveMinimum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===t.minimum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(e,t){"integer"!==i.whatIs(t.maxLength)?e.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):t.maxLength<0&&e.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(e,t){"integer"!==i.whatIs(t.minLength)?e.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):t.minLength<0&&e.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(e,t){if("string"!=typeof t.pattern)e.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(t.pattern)}catch(r){e.addError("KEYWORD_PATTERN",["pattern",t.pattern])}},additionalItems:function(e,r){var n=i.whatIs(r.additionalItems);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===n&&(e.path.push("additionalItems"),t.validateSchema.call(this,e,r.additionalItems),e.path.pop())},items:function(e,r){var n=i.whatIs(r.items);if("object"===n)e.path.push("items"),t.validateSchema.call(this,e,r.items),e.path.pop();else if("array"===n)for(var a=r.items.length;a--;)e.path.push("items"),e.path.push(a.toString()),t.validateSchema.call(this,e,r.items[a]),e.path.pop(),e.path.pop();else e.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);!0===this.options.forceAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&(r.additionalItems=!1)},maxItems:function(e,t){"number"!=typeof t.maxItems?e.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):t.maxItems<0&&e.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(e,t){"integer"!==i.whatIs(t.minItems)?e.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):t.minItems<0&&e.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(e,t){"boolean"!=typeof t.uniqueItems&&e.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(e,t){"integer"!==i.whatIs(t.maxProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):t.maxProperties<0&&e.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(e,t){"integer"!==i.whatIs(t.minProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):t.minProperties<0&&e.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(e,t){if("array"!==i.whatIs(t.required))e.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===t.required.length)e.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var r=t.required.length;r--;)"string"!=typeof t.required[r]&&e.addError("KEYWORD_VALUE_TYPE",["required","string"]);!1===i.isUniqueArray(t.required)&&e.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(e,r){var n=i.whatIs(r.additionalProperties);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===n&&(e.path.push("additionalProperties"),t.validateSchema.call(this,e,r.additionalProperties),e.path.pop())},properties:function(e,r){if("object"===i.whatIs(r.properties)){for(var n=Object.keys(r.properties),a=n.length;a--;){var o=n[a],s=r.properties[o];e.path.push("properties"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceAdditional&&void 0===r.additionalProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===r.additionalProperties&&(r.additionalProperties=!1),!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["properties","object"])},patternProperties:function(e,r){if("object"===i.whatIs(r.patternProperties)){for(var n=Object.keys(r.patternProperties),a=n.length;a--;){var o=n[a],s=r.patternProperties[o];try{RegExp(o)}catch(t){e.addError("KEYWORD_PATTERN",["patternProperties",o])}e.path.push("patternProperties"),e.path.push(o.toString()),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"])},dependencies:function(e,r){if("object"!==i.whatIs(r.dependencies))e.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var n=Object.keys(r.dependencies),a=n.length;a--;){var o=n[a],s=r.dependencies[o],l=i.whatIs(s);if("object"===l)e.path.push("dependencies"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop();else if("array"===l){var c=s.length;for(0===c&&e.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);c--;)"string"!=typeof s[c]&&e.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);!1===i.isUniqueArray(s)&&e.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else e.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},enum:function(e,t){!1===Array.isArray(t.enum)?e.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===t.enum.length?e.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):!1===i.isUniqueArray(t.enum)&&e.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(e,t){var r=["array","boolean","integer","number","null","object","string"],n=r.join(","),a=Array.isArray(t.type);if(a){for(var o=t.type.length;o--;)-1===r.indexOf(t.type[o])&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]);!1===i.isUniqueArray(t.type)&&e.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof t.type?-1===r.indexOf(t.type)&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]):e.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);!0===this.options.noEmptyStrings&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.enum&&void 0===t.format&&(t.minLength=1),!0===this.options.noEmptyArrays&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&(t.minItems=1),!0===this.options.forceProperties&&("object"===t.type||a&&-1!==t.type.indexOf("object"))&&void 0===t.properties&&void 0===t.patternProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),!0===this.options.forceItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.items&&e.addError("KEYWORD_UNDEFINED_STRICT",["items"]),!0===this.options.forceMinItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),!0===this.options.forceMaxItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.maxItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),!0===this.options.forceMinLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),!0===this.options.forceMaxLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.maxLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(e,r){if(!1===Array.isArray(r.allOf))e.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===r.allOf.length)e.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var n=r.allOf.length;n--;)e.path.push("allOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.allOf[n]),e.path.pop(),e.path.pop()},anyOf:function(e,r){if(!1===Array.isArray(r.anyOf))e.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===r.anyOf.length)e.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var n=r.anyOf.length;n--;)e.path.push("anyOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.anyOf[n]),e.path.pop(),e.path.pop()},oneOf:function(e,r){if(!1===Array.isArray(r.oneOf))e.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===r.oneOf.length)e.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var n=r.oneOf.length;n--;)e.path.push("oneOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.oneOf[n]),e.path.pop(),e.path.pop()},not:function(e,r){"object"!==i.whatIs(r.not)?e.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(e.path.push("not"),t.validateSchema.call(this,e,r.not),e.path.pop())},definitions:function(e,r){if("object"!==i.whatIs(r.definitions))e.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var n=Object.keys(r.definitions),a=n.length;a--;){var o=n[a],s=r.definitions[o];e.path.push("definitions"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}},format:function(e,t){"string"!=typeof t.format?e.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===n[t.format]&&!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format])},id:function(e,t){"string"!=typeof t.id&&e.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(e,t){"string"!=typeof t.title&&e.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(e,t){"string"!=typeof t.description&&e.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},default:function(){}},l=function(e,r){for(var n=r.length;n--;)t.validateSchema.call(this,e,r[n]);return e.isValid()};t.validateSchema=function(e,t){if(e.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(t))return l.call(this,e,t);if(t.__$validated)return!0;var r=t.$schema&&t.id!==t.$schema;if(r)if(t.__$schemaResolved&&t.__$schemaResolved!==t){var n=new o(e);!1===a.validate.call(this,n,t.__$schemaResolved,t)&&e.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,n)}else!0!==this.options.ignoreUnresolvableReferences&&e.addError("REF_UNRESOLVED",[t.$schema]);if(!0===this.options.noTypeless){if(void 0!==t.type){var c=[];Array.isArray(t.anyOf)&&(c=c.concat(t.anyOf)),Array.isArray(t.oneOf)&&(c=c.concat(t.oneOf)),Array.isArray(t.allOf)&&(c=c.concat(t.allOf)),c.forEach((function(e){e.type||(e.type=t.type)}))}void 0===t.enum&&void 0===t.type&&void 0===t.anyOf&&void 0===t.oneOf&&void 0===t.not&&void 0===t.$ref&&e.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var p=Object.keys(t),d=p.length;d--;){var u=p[d];0!==u.indexOf("__")&&(void 0!==s[u]?s[u].call(this,e,t):r||!0===this.options.noExtraKeywords&&e.addError("KEYWORD_UNEXPECTED",[u]))}if(!0===this.options.pedanticCheck){if(t.enum){var h=i.clone(t);for(delete h.enum,delete h.default,e.path.push("enum"),d=t.enum.length;d--;)e.path.push(d.toString()),a.validate.call(this,e,h,t.enum[d]),e.path.pop();e.path.pop()}t.default&&(e.path.push("default"),a.validate.call(this,e,t,t.default),e.path.pop())}var f=e.isValid();return f&&(t.__$validated=!0),f}},9750:(e,t)=>{"use strict";t.jsonSymbol=Symbol.for("z-schema/json"),t.schemaSymbol=Symbol.for("z-schema/schema");var r=t.sortedKeys=function(e){return Object.keys(e).sort()};t.isAbsoluteUri=function(e){return/^https?:\/\//.test(e)},t.isRelativeUri=function(e){return/.+#/.test(e)},t.whatIs=function(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"array":"object":"number"===t?Number.isFinite(e)?e%1==0?"integer":"number":Number.isNaN(e)?"not-a-number":"unknown-number":t},t.areEqual=function e(n,a,o){var i,s,l=(o=o||{}).caseInsensitiveComparison||!1;if(n===a)return!0;if(!0===l&&"string"==typeof n&&"string"==typeof a&&n.toUpperCase()===a.toUpperCase())return!0;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(s=n.length,i=0;i=55296&&t<=56319&&a{"use strict";var n=r(4155);r(2630);var a=r(9208),o=r(9454),i=r(7797),s=r(4706),l=r(7994),c=r(2765),p=r(2088),d=r(9750),u=r(1319),h=r(2619),f={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,enumCaseInsensitiveComparison:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!1,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};function m(e){var t;if("object"==typeof e){for(var r,n=Object.keys(e),a=n.length;a--;)if(r=n[a],void 0===f[r])throw new Error("Unexpected option passed to constructor: "+r);for(a=(n=Object.keys(f)).length;a--;)void 0===e[r=n[a]]&&(e[r]=d.clone(f[r]));t=e}else t=d.clone(f);return!0===t.strictMode&&(t.forceAdditional=!0,t.forceItems=!0,t.forceMaxLength=!0,t.forceProperties=!0,t.noExtraKeywords=!0,t.noTypeless=!0,t.noEmptyStrings=!0,t.noEmptyArrays=!0),t}function g(e){this.cache={},this.referenceCache=[],this.validateOptions={},this.options=m(e);var t=m({});this.setRemoteReference("http://json-schema.org/draft-04/schema",u,t),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",h,t)}g.prototype.compileSchema=function(e){var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validateSchema=function(e){if(Array.isArray(e)&&0===e.length)throw new Error(".validateSchema was called with an empty array");var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e)&&p.validateSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validate=function(e,t,r,i){"function"===d.whatIs(r)&&(i=r,r={}),r||(r={}),this.validateOptions=r;var u=d.whatIs(t);if("string"!==u&&"object"!==u){var h=new Error("Invalid .validate call - schema must be a string or object but "+u+" was passed!");if(i)return void n.nextTick((function(){i(h,!1)}));throw h}var f=!1,m=new o(this.options);if(m.json=e,"string"==typeof t){var g=t;if(!(t=l.getSchema.call(this,m,g)))throw new Error("Schema with id '"+g+"' wasn't found in the validator cache!")}else t=l.getSchema.call(this,m,t);var y=!1;f||(y=c.compileSchema.call(this,m,t)),y||(this.lastReport=m,f=!0);var v=!1;if(f||(v=p.validateSchema.call(this,m,t)),v||(this.lastReport=m,f=!0),r.schemaPath&&(m.rootSchema=t,!(t=a(t,r.schemaPath))))throw new Error("Schema path '"+r.schemaPath+"' wasn't found in the schema!");if(f||s.validate.call(this,m,t,e),!i){if(m.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=m,m.isValid()}m.processAsyncTasks(this.options.asyncTimeout,i)},g.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var e=new Error;return e.name="z-schema validation error",e.message=this.lastReport.commonErrorMessage,e.details=this.lastReport.errors,e},g.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:null},g.prototype.getMissingReferences=function(e){for(var t=[],r=(e=e||this.lastReport.errors).length;r--;){var n=e[r];if("UNRESOLVABLE_REFERENCE"===n.code){var a=n.params[0];-1===t.indexOf(a)&&t.push(a)}n.inner&&(t=t.concat(this.getMissingReferences(n.inner)))}return t},g.prototype.getMissingRemoteReferences=function(){for(var e=this.getMissingReferences(),t=[],r=e.length;r--;){var n=l.getRemotePath(e[r]);n&&-1===t.indexOf(n)&&t.push(n)}return t},g.prototype.setRemoteReference=function(e,t,r){t="string"==typeof t?JSON.parse(t):d.cloneDeep(t),r&&(t.__$validationOptions=m(r)),l.cacheSchemaByUri.call(this,e,t)},g.prototype.getResolvedSchema=function(e){var t=new o(this.options);e=l.getSchema.call(this,t,e),e=d.cloneDeep(e);var r=[],n=function(e){var t,a=d.whatIs(e);if(("object"===a||"array"===a)&&!e.___$visited){if(e.___$visited=!0,r.push(e),e.$ref&&e.__$refResolved){var o=e.__$refResolved,i=e;for(t in delete e.$ref,delete e.__$refResolved,o)o.hasOwnProperty(t)&&(i[t]=o[t])}for(t in e)e.hasOwnProperty(t)&&(0===t.indexOf("__$")?delete e[t]:n(e[t]))}};if(n(e),r.forEach((function(e){delete e.___$visited})),this.lastReport=t,t.isValid())return e;throw this.getLastError()},g.prototype.setSchemaReader=function(e){return g.setSchemaReader(e)},g.prototype.getSchemaReader=function(){return g.schemaReader},g.schemaReader=void 0,g.setSchemaReader=function(e){g.schemaReader=e},g.registerFormat=function(e,t){i[e]=t},g.unregisterFormat=function(e){delete i[e]},g.getRegisteredFormats=function(){return Object.keys(i)},g.getDefaultOptions=function(){return d.cloneDeep(f)},g.schemaSymbol=d.schemaSymbol,g.jsonSymbol=d.jsonSymbol,e.exports=g},3471:()=>{},6214:()=>{},4616:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"id":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swaggerVersion","basePath","apis"],"properties":{"swaggerVersion":{"enum":["1.2"]},"apiVersion":{"type":"string"},"basePath":{"type":"string","format":"uri","pattern":"^https?://"},"resourcePath":{"type":"string","format":"uri","pattern":"^/"},"apis":{"type":"array","items":{"$ref":"#/definitions/apiObject"}},"models":{"type":"object","additionalProperties":{"$ref":"modelsObject.json#"}},"produces":{"$ref":"#/definitions/mimeTypeArray"},"consumes":{"$ref":"#/definitions/mimeTypeArray"},"authorizations":{"$ref":"authorizationObject.json#"}},"additionalProperties":false,"definitions":{"apiObject":{"type":"object","required":["path","operations"],"properties":{"path":{"type":"string","format":"uri-template","pattern":"^/"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"operationObject.json#"}}},"additionalProperties":false},"mimeTypeArray":{"type":"array","items":{"type":"string","format":"mime-type"},"uniqueItems":true}}}')},499:e=>{"use strict";e.exports=JSON.parse('{"title":"A JSON Schema for Swagger 2.0 API.","id":"http://swagger.io/v2/schema.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swagger","info","paths"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"swagger":{"type":"string","enum":["2.0"],"description":"The Swagger version of this document."},"info":{"$ref":"#/definitions/info"},"host":{"type":"string","pattern":"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$","description":"The host (name or ip) of the API. Example: \'swagger.io\'"},"basePath":{"type":"string","pattern":"^/","description":"The base path to the API. Example: \'/api\'."},"schemes":{"$ref":"#/definitions/schemesList"},"consumes":{"description":"A list of MIME types accepted by the API.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"paths":{"$ref":"#/definitions/paths"},"definitions":{"$ref":"#/definitions/definitions"},"parameters":{"$ref":"#/definitions/parameterDefinitions"},"responses":{"$ref":"#/definitions/responseDefinitions"},"security":{"$ref":"#/definitions/security"},"securityDefinitions":{"$ref":"#/definitions/securityDefinitions"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},"termsOfService":{"type":"string","description":"The terms of service for the API."},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"paths":{"type":"object","description":"Relative paths to the individual endpoints. They must be relative to the \'basePath\'.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"},"^/":{"$ref":"#/definitions/pathItem"}},"additionalProperties":false},"definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"One or more JSON objects describing the schemas being consumed and produced by the API."},"parameterDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"One or more JSON representations for parameters"},"responseDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/response"},"description":"One or more JSON representations for responses"},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"examples":{"type":"object","additionalProperties":true},"mimeType":{"type":"string","description":"The MIME type of the HTTP message."},"operation":{"type":"object","required":["responses"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the operation."},"description":{"type":"string","description":"A longer description of the operation, GitHub Flavored Markdown is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string","description":"A unique identifier of the operation."},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"consumes":{"description":"A list of MIME types the API can consume.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"parameters":{"$ref":"#/definitions/parametersList"},"responses":{"$ref":"#/definitions/responses"},"schemes":{"$ref":"#/definitions/schemesList"},"deprecated":{"type":"boolean","default":false},"security":{"$ref":"#/definitions/security"}}},"pathItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"get":{"$ref":"#/definitions/operation"},"put":{"$ref":"#/definitions/operation"},"post":{"$ref":"#/definitions/operation"},"delete":{"$ref":"#/definitions/operation"},"options":{"$ref":"#/definitions/operation"},"head":{"$ref":"#/definitions/operation"},"patch":{"$ref":"#/definitions/operation"},"parameters":{"$ref":"#/definitions/parametersList"}}},"responses":{"type":"object","description":"Response objects names can either be any valid HTTP status code or \'default\'.","minProperties":1,"additionalProperties":false,"patternProperties":{"^([0-9]{3})$|^(default)$":{"$ref":"#/definitions/responseValue"},"^x-":{"$ref":"#/definitions/vendorExtension"}},"not":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}}},"responseValue":{"oneOf":[{"$ref":"#/definitions/response"},{"$ref":"#/definitions/jsonReference"}]},"response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"schema":{"oneOf":[{"$ref":"#/definitions/schema"},{"$ref":"#/definitions/fileSchema"}]},"headers":{"$ref":"#/definitions/headers"},"examples":{"$ref":"#/definitions/examples"}},"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/header"}},"header":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"vendorExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"bodyParameter":{"type":"object","required":["name","in","schema"],"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["body"]},"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"schema":{"$ref":"#/definitions/schema"}},"additionalProperties":false},"headerParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["header"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"queryParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["query"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"formDataParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["formData"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array","file"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"pathParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["required"],"properties":{"required":{"type":"boolean","enum":[true],"description":"Determines whether or not this parameter is required or optional."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["path"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"nonBodyParameter":{"type":"object","required":["name","in","type"],"oneOf":[{"$ref":"#/definitions/headerParameterSubSchema"},{"$ref":"#/definitions/formDataParameterSubSchema"},{"$ref":"#/definitions/queryParameterSubSchema"},{"$ref":"#/definitions/pathParameterSubSchema"}]},"parameter":{"oneOf":[{"$ref":"#/definitions/bodyParameter"},{"$ref":"#/definitions/nonBodyParameter"}]},"schema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/xml"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"fileSchema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["type"],"properties":{"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"type":{"type":"string","enum":["file"]},"readOnly":{"type":"boolean","default":false},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"primitivesItems":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"security":{"type":"array","items":{"$ref":"#/definitions/securityRequirement"},"uniqueItems":true},"securityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"xml":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"securityDefinitions":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/basicAuthenticationSecurity"},{"$ref":"#/definitions/apiKeySecurity"},{"$ref":"#/definitions/oauth2ImplicitSecurity"},{"$ref":"#/definitions/oauth2PasswordSecurity"},{"$ref":"#/definitions/oauth2ApplicationSecurity"},{"$ref":"#/definitions/oauth2AccessCodeSecurity"}]}},"basicAuthenticationSecurity":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["basic"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"apiKeySecurity":{"type":"object","additionalProperties":false,"required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ImplicitSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["implicit"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2PasswordSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["password"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ApplicationSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["application"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2AccessCodeSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["accessCode"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"mediaTypeList":{"type":"array","items":{"$ref":"#/definitions/mimeType"},"uniqueItems":true},"parametersList":{"type":"array","description":"The parameters needed to send a valid API call.","additionalItems":false,"items":{"oneOf":[{"$ref":"#/definitions/parameter"},{"$ref":"#/definitions/jsonReference"}]},"uniqueItems":true},"schemesList":{"type":"array","description":"The transfer protocol of the API.","items":{"type":"string","enum":["http","https","ws","wss"]},"uniqueItems":true},"collectionFormat":{"type":"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},"collectionFormatWithMulti":{"type":"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"jsonReference":{"type":"object","required":["$ref"],"additionalProperties":false,"properties":{"$ref":{"type":"string"}}}}}')},3659:e=>{"use strict";e.exports=JSON.parse('{"id":"https://spec.openapis.org/oas/3.0/schema/2019-04-02","$schema":"http://json-schema.org/draft-04/schema#","description":"Validation schema for OpenAPI Specification 3.0.X.","type":"object","required":["openapi","info","paths"],"properties":{"openapi":{"type":"string","pattern":"^3\\\\.0\\\\.\\\\d(-.+)?$"},"info":{"$ref":"#/definitions/Info"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/Tag"},"uniqueItems":true},"paths":{"$ref":"#/definitions/Paths"},"components":{"$ref":"#/definitions/Components"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"definitions":{"Reference":{"type":"object","required":["$ref"],"patternProperties":{"^\\\\$ref$":{"type":"string","format":"uri-reference"}}},"Info":{"type":"object","required":["title","version"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string","format":"uri-reference"},"contact":{"$ref":"#/definitions/Contact"},"license":{"$ref":"#/definitions/License"},"version":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"},"email":{"type":"string","format":"email"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"License":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Server":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/definitions/ServerVariable"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ServerVariable":{"type":"object","required":["default"],"properties":{"enum":{"type":"array","items":{"type":"string"}},"default":{"type":"string"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Components":{"type":"object","properties":{"schemas":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}}},"responses":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Response"}]}}},"parameters":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Parameter"}]}}},"examples":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Example"}]}}},"requestBodies":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/RequestBody"}]}}},"headers":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Header"}]}}},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"links":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Link"}]}}},"callbacks":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Callback"}]}}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Schema":{"type":"object","properties":{"title":{"type":"string"},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"type":"integer","minimum":0},"minLength":{"type":"integer","minimum":0,"default":0},"pattern":{"type":"string","format":"regex"},"maxItems":{"type":"integer","minimum":0},"minItems":{"type":"integer","minimum":0,"default":0},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"type":"integer","minimum":0},"minProperties":{"type":"integer","minimum":0,"default":0},"required":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"enum":{"type":"array","items":{},"minItems":1,"uniqueItems":false},"type":{"type":"string","enum":["array","boolean","integer","number","object","string"]},"not":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"allOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"oneOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"anyOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"properties":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"},{"type":"boolean"}],"default":true},"description":{"type":"string"},"format":{"type":"string"},"default":{},"nullable":{"type":"boolean","default":false},"discriminator":{"$ref":"#/definitions/Discriminator"},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"example":{},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"deprecated":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/XML"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Discriminator":{"type":"object","required":["propertyName"],"properties":{"propertyName":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}}}},"XML":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string","format":"uri"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Header"},{"$ref":"#/definitions/Reference"}]}},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"links":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Link"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"MediaType":{"type":"object","properties":{"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}},"encoding":{"type":"object","additionalProperties":{"$ref":"#/definitions/Encoding"}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"}]},"Example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":{},"externalValue":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Header":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string","enum":["simple"],"default":"simple"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"}]},"Paths":{"type":"object","patternProperties":{"^\\\\/":{"$ref":"#/definitions/PathItem"},"^x-":{}},"additionalProperties":false},"PathItem":{"type":"object","properties":{"$ref":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/definitions/Operation"},"^x-":{}},"additionalProperties":false},"Operation":{"type":"object","required":["responses"],"properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true},"requestBody":{"oneOf":[{"$ref":"#/definitions/RequestBody"},{"$ref":"#/definitions/Reference"}]},"responses":{"$ref":"#/definitions/Responses"},"callbacks":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Callback"},{"$ref":"#/definitions/Reference"}]}},"deprecated":{"type":"boolean","default":false},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Responses":{"type":"object","properties":{"default":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]}},"patternProperties":{"^[1-5](?:\\\\d{2}|XX)$":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]},"^x-":{}},"minProperties":1,"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Tag":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExternalDocumentation":{"type":"object","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExampleXORExamples":{"description":"Example and examples are mutually exclusive","not":{"required":["example","examples"]}},"SchemaXORContent":{"description":"Schema and content are mutually exclusive, at least one is required","not":{"required":["schema","content"]},"oneOf":[{"required":["schema"]},{"required":["content"],"description":"Some properties are not allowed if content is present","allOf":[{"not":{"required":["style"]}},{"not":{"required":["explode"]}},{"not":{"required":["allowReserved"]}},{"not":{"required":["example"]}},{"not":{"required":["examples"]}}]}]},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"required":["name","in"],"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"},{"$ref":"#/definitions/ParameterLocation"}]},"ParameterLocation":{"description":"Parameter location","oneOf":[{"description":"Parameter in path","required":["required"],"properties":{"in":{"enum":["path"]},"style":{"enum":["matrix","label","simple"],"default":"simple"},"required":{"enum":[true]}}},{"description":"Parameter in query","properties":{"in":{"enum":["query"]},"style":{"enum":["form","spaceDelimited","pipeDelimited","deepObject"],"default":"form"}}},{"description":"Parameter in header","properties":{"in":{"enum":["header"]},"style":{"enum":["simple"],"default":"simple"}}},{"description":"Parameter in cookie","properties":{"in":{"enum":["cookie"]},"style":{"enum":["form"],"default":"form"}}}]},"RequestBody":{"type":"object","required":["content"],"properties":{"description":{"type":"string"},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"required":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/APIKeySecurityScheme"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/OAuth2SecurityScheme"},{"$ref":"#/definitions/OpenIdConnectSecurityScheme"}]},"APIKeySecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"HTTPSecurityScheme":{"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"bearerFormat":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false,"oneOf":[{"description":"Bearer","properties":{"scheme":{"enum":["bearer"]}}},{"description":"Non Bearer","not":{"required":["bearerFormat"]},"properties":{"scheme":{"not":{"enum":["bearer"]}}}}]},"OAuth2SecurityScheme":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flows":{"$ref":"#/definitions/OAuthFlows"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OpenIdConnectSecurityScheme":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"openIdConnectUrl":{"type":"string","format":"uri-reference"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OAuthFlows":{"type":"object","properties":{"implicit":{"$ref":"#/definitions/ImplicitOAuthFlow"},"password":{"$ref":"#/definitions/PasswordOAuthFlow"},"clientCredentials":{"$ref":"#/definitions/ClientCredentialsFlow"},"authorizationCode":{"$ref":"#/definitions/AuthorizationCodeOAuthFlow"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ImplicitOAuthFlow":{"type":"object","required":["authorizationUrl","scopes"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"PasswordOAuthFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ClientCredentialsFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"AuthorizationCodeOAuthFlow":{"type":"object","required":["authorizationUrl","tokenUrl"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Link":{"type":"object","properties":{"operationId":{"type":"string"},"operationRef":{"type":"string","format":"uri-reference"},"parameters":{"type":"object","additionalProperties":{}},"requestBody":{},"description":{"type":"string"},"server":{"$ref":"#/definitions/Server"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"not":{"description":"Operation Id and Operation Ref are mutually exclusive","required":["operationId","operationRef"]}},"Callback":{"type":"object","additionalProperties":{"$ref":"#/definitions/PathItem"},"patternProperties":{"^x-":{}}},"Encoding":{"type":"object","properties":{"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/Header"}},"style":{"type":"string","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false}},"additionalProperties":false}}}')},1201:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://spec.openapis.org/oas/3.1/schema/2021-04-15","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string","pattern":"^3\\\\.1\\\\.\\\\d+(-.+)?$"},"info":{"$ref":"#/$defs/info"},"jsonSchemaDialect":{"$ref":"#/$defs/uri","default":"https://spec.openapis.org/oas/3.1/dialect/base"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"paths":{"$ref":"#/$defs/paths"},"webhooks":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"components":{"$ref":"#/$defs/components"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"tags":{"type":"array","items":{"$ref":"#/$defs/tag"}},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["openapi","info"],"anyOf":[{"required":["paths"]},{"required":["components"]},{"required":["webhooks"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"info":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"#/$defs/contact"},"license":{"$ref":"#/$defs/license"},"version":{"type":"string"}},"required":["title","version"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["name"],"oneOf":[{"required":["identifier"]},{"required":["url"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server":{"type":"object","properties":{"url":{"$ref":"#/$defs/uri"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/$defs/server-variable"}}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server-variable":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"},"minItems":1},"default":{"type":"string"},"descriptions":{"type":"string"}},"required":["default"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"components":{"type":"object","properties":{"schemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}},"responses":{"type":"object","additionalProperties":{"$ref":"#/$defs/response-or-reference"}},"parameters":{"type":"object","additionalProperties":{"$ref":"#/$defs/parameter-or-reference"}},"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}},"requestBodies":{"type":"object","additionalProperties":{"$ref":"#/$defs/request-body-or-reference"}},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"securitySchemes":{"type":"object","additionalProperties":{"$ref":"#/$defs/security-scheme-or-reference"}},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"pathItems":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}}},"patternProperties":{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{"$comment":"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected","propertyNames":{"pattern":"^[a-zA-Z0-9._-]+$"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"paths":{"type":"object","patternProperties":{"^/":{"$ref":"#/$defs/path-item"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/$defs/operation"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/path-item"}},"operation":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}},"requestBody":{"$ref":"#/$defs/request-body-or-reference"},"responses":{"$ref":"#/$defs/responses"},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"deprecated":{"default":false,"type":"boolean"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"external-documentation":{"type":"object","properties":{"description":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"enum":["query","header","path","cookie"]},"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"},"content":{"$ref":"#/$defs/content"}},"required":["in"],"oneOf":[{"required":["schema"]},{"required":["content"]}],"dependentSchemas":{"schema":{"properties":{"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/examples"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],"$defs":{"styles-for-path":{"if":{"properties":{"in":{"const":"path"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["matrix","label","simple"]},"required":{"const":true}},"required":["required"]}},"styles-for-header":{"if":{"properties":{"in":{"const":"header"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["simple"]}}}},"styles-for-query":{"if":{"properties":{"in":{"const":"query"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{"if":{"properties":{"in":{"const":"cookie"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form"]}}}},"styles-for-form":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/parameter"}},"request-body":{"type":"object","properties":{"description":{"type":"string"},"content":{"$ref":"#/$defs/content"},"required":{"default":false,"type":"boolean"}},"required":["content"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"request-body-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/request-body"}},"content":{"type":"object","additionalProperties":{"$ref":"#/$defs/media-type"},"propertyNames":{"format":"media-range"}},"media-type":{"type":"object","properties":{"schema":{"$dynamicRef":"#meta"},"encoding":{"type":"object","additionalProperties":{"$ref":"#/$defs/encoding"}}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/examples"}],"unevaluatedProperties":false},"encoding":{"type":"object","properties":{"contentType":{"type":"string","format":"media-range"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/encoding/$defs/explode-default"}],"unevaluatedProperties":false,"$defs":{"explode-default":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}},"responses":{"type":"object","properties":{"default":{"$ref":"#/$defs/response-or-reference"}},"patternProperties":{"^[1-5][0-9X]{2}$":{"$ref":"#/$defs/response-or-reference"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response":{"type":"object","properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"content":{"$ref":"#/$defs/content"},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}}},"required":["description"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/response"}},"callbacks":{"type":"object","$ref":"#/$defs/specification-extensions","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/callbacks"}},"example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":true,"externalValue":{"$ref":"#/$defs/uri"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"example-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/example"}},"link":{"type":"object","properties":{"operationRef":{"$ref":"#/$defs/uri"},"operationId":true,"parameters":{"$ref":"#/$defs/map-of-strings"},"requestBody":true,"description":{"type":"string"},"body":{"$ref":"#/$defs/server"}},"oneOf":[{"required":["operationRef"]},{"required":["operationId"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"link-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/link"}},"header":{"type":"object","properties":{"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"}},"dependentSchemas":{"schema":{"properties":{"style":{"default":"simple","enum":["simple"]},"explode":{"default":false,"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"}},"$ref":"#/$defs/examples"},"content":{"properties":{"content":{"$ref":"#/$defs/content"}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"header-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/header"}},"tag":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["name"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"reference":{"type":"object","properties":{"$ref":{"$ref":"#/$defs/uri"},"summary":{"type":"string"},"description":{"type":"string"}},"unevaluatedProperties":false},"schema":{"$dynamicAnchor":"meta","type":["object","boolean"]},"security-scheme":{"type":"object","properties":{"type":{"enum":["apiKey","http","mutualTLS","oauth2","openIdConnect"]},"description":{"type":"string"}},"required":["type"],"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/security-scheme/$defs/type-apikey"},{"$ref":"#/$defs/security-scheme/$defs/type-http"},{"$ref":"#/$defs/security-scheme/$defs/type-http-bearer"},{"$ref":"#/$defs/security-scheme/$defs/type-oauth2"},{"$ref":"#/$defs/security-scheme/$defs/type-oidc"}],"unevaluatedProperties":false,"$defs":{"type-apikey":{"if":{"properties":{"type":{"const":"apiKey"}},"required":["type"]},"then":{"properties":{"name":{"type":"string"},"in":{"enum":["query","header","cookie"]}},"required":["name","in"]}},"type-http":{"if":{"properties":{"type":{"const":"http"}},"required":["type"]},"then":{"properties":{"scheme":{"type":"string"}},"required":["scheme"]}},"type-http-bearer":{"if":{"properties":{"type":{"const":"http"},"scheme":{"const":"bearer"}},"required":["type","scheme"]},"then":{"properties":{"bearerFormat":{"type":"string"}},"required":["scheme"]}},"type-oauth2":{"if":{"properties":{"type":{"const":"oauth2"}},"required":["type"]},"then":{"properties":{"flows":{"$ref":"#/$defs/oauth-flows"}},"required":["flows"]}},"type-oidc":{"if":{"properties":{"type":{"const":"openIdConnect"}},"required":["type"]},"then":{"properties":{"openIdConnectUrl":{"$ref":"#/$defs/uri"}},"required":["openIdConnectUrl"]}}}},"security-scheme-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/security-scheme"}},"oauth-flows":{"type":"object","properties":{"implicit":{"$ref":"#/$defs/oauth-flows/$defs/implicit"},"password":{"$ref":"#/$defs/oauth-flows/$defs/password"},"clientCredentials":{"$ref":"#/$defs/oauth-flows/$defs/client-credentials"},"authorizationCode":{"$ref":"#/$defs/oauth-flows/$defs/authorization-code"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"implicit":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"password":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"client-credentials":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"authorization-code":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false}}},"security-requirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"specification-extensions":{"patternProperties":{"^x-":true}},"examples":{"properties":{"example":true,"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}}}},"uri":{"type":"string","format":"uri"},"map-of-strings":{"type":"object","additionalProperties":{"type":"string"}}}}')},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6273:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},3932:e=>{"use strict";e.exports=JSON.parse('{"$id":"afterRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},6136:e=>{"use strict";e.exports=JSON.parse('{"$id":"beforeRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},805:e=>{"use strict";e.exports=JSON.parse('{"$id":"browser.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},1632:e=>{"use strict";e.exports=JSON.parse('{"$id":"cache.json#","$schema":"http://json-schema.org/draft-06/schema#","properties":{"beforeRequest":{"oneOf":[{"type":"null"},{"$ref":"beforeRequest.json#"}]},"afterRequest":{"oneOf":[{"type":"null"},{"$ref":"afterRequest.json#"}]},"comment":{"type":"string"}}}')},1567:e=>{"use strict";e.exports=JSON.parse('{"$id":"content.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["size","mimeType"],"properties":{"size":{"type":"integer"},"compression":{"type":"integer"},"mimeType":{"type":"string"},"text":{"type":"string"},"encoding":{"type":"string"},"comment":{"type":"string"}}}')},5725:e=>{"use strict";e.exports=JSON.parse('{"$id":"cookie.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"path":{"type":"string"},"domain":{"type":"string"},"expires":{"type":["string","null"],"format":"date-time"},"httpOnly":{"type":"boolean"},"secure":{"type":"boolean"},"comment":{"type":"string"}}}')},7218:e=>{"use strict";e.exports=JSON.parse('{"$id":"creator.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},4560:e=>{"use strict";e.exports=JSON.parse('{"$id":"entry.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","time","request","response","cache","timings"],"properties":{"pageref":{"type":"string"},"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"time":{"type":"number","min":0},"request":{"$ref":"request.json#"},"response":{"$ref":"response.json#"},"cache":{"$ref":"cache.json#"},"timings":{"$ref":"timings.json#"},"serverIPAddress":{"type":"string","oneOf":[{"format":"ipv4"},{"format":"ipv6"}]},"connection":{"type":"string"},"comment":{"type":"string"}}}')},5579:e=>{"use strict";e.exports=JSON.parse('{"$id":"har.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["log"],"properties":{"log":{"$ref":"log.json#"}}}')},5147:e=>{"use strict";e.exports=JSON.parse('{"$id":"header.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},3013:e=>{"use strict";e.exports=JSON.parse('{"$id":"log.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["version","creator","entries"],"properties":{"version":{"type":"string"},"creator":{"$ref":"creator.json#"},"browser":{"$ref":"browser.json#"},"pages":{"type":"array","items":{"$ref":"page.json#"}},"entries":{"type":"array","items":{"$ref":"entry.json#"}},"comment":{"type":"string"}}}')},4777:e=>{"use strict";e.exports=JSON.parse('{"$id":"page.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","id","title","pageTimings"],"properties":{"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"id":{"type":"string","unique":true},"title":{"type":"string"},"pageTimings":{"$ref":"pageTimings.json#"},"comment":{"type":"string"}}}')},5538:e=>{"use strict";e.exports=JSON.parse('{"$id":"pageTimings.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","properties":{"onContentLoad":{"type":"number","min":-1},"onLoad":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2096:e=>{"use strict";e.exports=JSON.parse('{"$id":"postData.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["mimeType"],"properties":{"mimeType":{"type":"string"},"text":{"type":"string"},"params":{"type":"array","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"fileName":{"type":"string"},"contentType":{"type":"string"},"comment":{"type":"string"}}},"comment":{"type":"string"}}}')},1251:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},9646:e=>{"use strict";e.exports=JSON.parse('{"$id":"request.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],"properties":{"method":{"type":"string"},"url":{"type":"string","format":"uri"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"queryString":{"type":"array","items":{"$ref":"query.json#"}},"postData":{"$ref":"postData.json#"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},9103:e=>{"use strict";e.exports=JSON.parse('{"$id":"response.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],"properties":{"status":{"type":"integer"},"statusText":{"type":"string"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"content":{"$ref":"content.json#"},"redirectURL":{"type":"string"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},2007:e=>{"use strict";e.exports=JSON.parse('{"$id":"timings.json#","$schema":"http://json-schema.org/draft-06/schema#","required":["send","wait","receive"],"properties":{"dns":{"type":"number","min":-1},"connect":{"type":"number","min":-1},"blocked":{"type":"number","min":-1},"send":{"type":"number","min":-1},"wait":{"type":"number","min":-1},"receive":{"type":"number","min":-1},"ssl":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2619:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-04/hyper-schema#","id":"http://json-schema.org/draft-04/hyper-schema#","title":"JSON Hyper-Schema","allOf":[{"$ref":"http://json-schema.org/draft-04/schema#"}],"properties":{"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"type":"array"}]}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}]},"definitions":{"additionalProperties":{"$ref":"#"}},"patternProperties":{"additionalProperties":{"$ref":"#"}},"properties":{"additionalProperties":{"$ref":"#"}},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"},"links":{"type":"array","items":{"$ref":"#/definitions/linkDescription"}},"fragmentResolution":{"type":"string"},"media":{"type":"object","properties":{"type":{"description":"A media type, as described in RFC 2046","type":"string"},"binaryEncoding":{"description":"A content encoding scheme, as described in RFC 2045","type":"string"}}},"pathStart":{"description":"Instances\' URIs must start with this value for this schema to apply to them","type":"string","format":"uri"}},"definitions":{"schemaArray":{"type":"array","items":{"$ref":"#"}},"linkDescription":{"title":"Link Description Object","type":"object","required":["href","rel"],"properties":{"href":{"description":"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing","type":"string"},"rel":{"description":"relation to the target resource of the link","type":"string"},"title":{"description":"a title for the link","type":"string"},"targetSchema":{"description":"JSON Schema describing the link target","$ref":"#"},"mediaType":{"description":"media type (as defined by RFC 2046) describing the link target","type":"string"},"method":{"description":"method for requesting the target of the link (e.g. for HTTP this might be \\"GET\\" or \\"DELETE\\")","type":"string"},"encType":{"description":"The media type in which to submit data along with the request","type":"string","default":"application/json"},"schema":{"description":"Schema describing the data to submit along with the request","$ref":"#"}}}}}')},1319:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')}},n={};function a(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var o=n[e]={id:e,loaded:!1,exports:{}};try{var i={id:e,module:o,factory:r[e],require:a};a.i.forEach((function(e){e(i)})),o=i.module,i.factory.call(o.exports,o,o.exports,i.require)}catch(e){throw o.error=e,e}return o.loaded=!0,o.exports}a.m=r,a.c=n,a.i=[],a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.hu=e=>e+"."+a.h()+".hot-update.js",a.hmrF=()=>"main."+a.h()+".hot-update.json",a.h=()=>"e5ec666a776024491683",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",a.l=(r,n,o,i)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e,t,r,n={},o=a.c,i=[],s=[],l="idle",c=0,p=[];function d(e){l=e;for(var t=[],r=0;r0)return d("abort").then((function(){throw a[0]}));var o=d("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var i,s=d("apply"),l=function(e){i||(i=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)})),d("ready");break;case"ready":Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,v),b.parents=i,b.children=[],i=[],p.require=x})),a.hmrC={},a.hmrI={}})(),a.p="",(()=>{var e,t,r,n,o,i=a.hmrS_jsonp=a.hmrS_jsonp||{179:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=a.p+a.hu(t),o=new Error;a.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,r(o)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var o=n.pop(),i=o.id,s=o.chain,c=a.c[i];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:i};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:i};for(var p=0;p ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(g=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(g)return{error:g};if(y)for(h in d[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)a.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),d[h]=u)}r=void 0;for(var x,w=[],$=0;$0;){var o=r.pop(),s=a.c[o];if(s){var l={},d=s.hot._disposeHandlers;for($=0;$=0&&u.parents.splice(e,1))}}}for(var h in c)if(a.o(c,h)&&(s=a.c[h]))for(x=c[h],$=0;$=0&&s.children.splice(e,1)},apply:function(t){for(var r in d)a.o(d,r)&&(a.m[r]=d[r]);for(var n=0;n{for(var l in n)a.o(n,l)&&(r[l]=n[l],e&&e.push(l));i&&o.push(i),s[t]&&(s[t](),s[t]=void 0)},a.hmrI.jsonp=function(e,t){r||(r={},o=[],n=[],t.push(c)),a.o(r,e)||(r[e]=a.m[e])},a.hmrC.jsonp=function(e,s,p,d,u,h){u.push(c),t={},n=s,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),o=[],e.forEach((function(e){a.o(i,e)&&void 0!==i[e]?(d.push(l(e,h)),t[e]=!0):t[e]=!1})),a.f&&(a.f.jsonpHmr=function(e,r){t&&a.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},a.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(a.p+a.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();a(6698)})(); + }`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Ve.setOptions({highlight:(e,t)=>("curl"===t&&(t="bash"),Ge().languages[t]?Ge().highlight(e,Ge().languages[t],t):e)})}render(){return qn.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await vt.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,Bn.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),i=o[0],l=o[1],c=new a(function(e,t,r){return 3*(t+r)/4-r}(0,i,l)),p=0,d=l>0?i-4:i;for(r=0;r>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=16383,s=0,c=n-a;sc?c:s+i));1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var a,o,i=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(e,t,r)=>{"use strict";var n=r(5108);const a=r(9742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=l(r);const a=n.write(e,t);a!==r&&(n=n.slice(0,a));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const a=function(e){if(c.isBuffer(e)){const t=0|m(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?l(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),l(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),r=l(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(a)return n?-1:V(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){let o,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;na&&(n=a):n=a;const o=t.length;let i;for(n>o/2&&(n=o/2),i=0;i>8,a=r%256,o.push(a),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);const n=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+i<=r){let r,n,s,l;switch(i){case 1:t<128&&(o=t);break;case 2:r=e[a+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[a+1],n=e[a+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),a+=i}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(o,i),l=this.slice(n,a),p=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function P(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;an)&&(r=n);let a="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function L(e,t,r,n,a){H(t,n,a,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function M(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return t=+t,r>>>=0,a||M(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],a=1,o=0;for(;++o>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(a)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,a=1,o=this[e+--n];for(;n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=0,o=1,i=0;for(this[t]=255&e;++a>0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let a=r-1,o=1,i=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/o>>0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,n,a,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,a,o)}function z(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>2**32?a=B(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=B(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const n=e.length;let a=null;const o=[];for(let i=0;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},584:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(e,t,r)=>{"use strict";var n=r(210),a=r(5559),o=a(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),a=r(210),o=a("%Function.prototype.apply%"),i=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(i,o),l=a("%Object.getOwnPropertyDescriptor%",!0),c=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,i,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},472:(e,t,r)=>{"use strict";var n=r(4663);e.exports=function(e,t){return e?void t.then((function(t){n((function(){e(null,t)}))}),(function(t){n((function(){e(t)}))})):t}},4663:(e,t,r)=>{"use strict";var n=r(4155);e.exports="object"==typeof n&&"function"==typeof n.nextTick?n.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}},5108:(e,t,r)=>{var n=r(9539),a=r(9282);function o(){return(new Date).getTime()}var i,s=Array.prototype.slice,l={};i=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=o()-t;i.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);a.ok(!1,n.format.apply(null,t))}},"assert"]],p=0;p{"use strict";var n=r(2215),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,l=r(1044)(),c=s&&l,p=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(a=n)||"[object Function]"!==o.call(a)||!n())return;var a;c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},d=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{var n=r(2830),a=["write","end","destroy"],o=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function l(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n{var n=r(4155),a=r(5108),o=r(8764).Buffer,i=r(2830).Stream,s=t,l=r(6547),c=r(4404),p=r(5122),d=r(2508),u=r(7549),h=r(4563),f=r(1815),m=r.g.setImmediate||n.nextTick;s.Stream=i,s.through=l,s.from=c,s.duplex=p,s.map=d,s.pause=u,s.split=h,s.pipeline=s.connect=s.pipe=f,s.concat=s.merge=function(){var e=[].slice.call(arguments);1===e.length&&e[0]instanceof Array&&(e=e[0]);var t=new i;t.setMaxListeners(0);var r=0;return t.writable=t.readable=!0,e.length?e.forEach((function(n){n.pipe(t,{end:!1});var a=!1;n.on("end",(function(){a||(a=!0,++r==e.length&&t.emit("end"))}))})):n.nextTick((function(){t.emit("end")})),t.write=function(e){this.emit("data",e)},t.destroy=function(){e.forEach((function(e){e.destroy&&e.destroy()}))},t},s.writeArray=function(e){if("function"!=typeof e)throw new Error("function writeArray (done): done must be function");var t=new i,r=[],n=!1;return t.write=function(e){r.push(e)},t.end=function(){n=!0,e(null,r)},t.writable=!0,t.readable=!1,t.destroy=function(){t.writable=t.readable=!1,n||e(new Error("destroyed before end"),r)},t},s.readArray=function(e){var t=new i,r=0,a=!1,o=!1;if(t.readable=!0,t.writable=!1,!Array.isArray(e))throw new Error("event-stream.read expects an array");return t.resume=function(){if(!o){a=!1;for(var n=e.length;r1&&r.emit("data",i),m((function(){if(!(s||o||l))try{l=!0,e.call(r,a++,(function(){l=!1,c.apply(null,arguments)}))}catch(e){r.emit("error",e)}}))}return r.on("end",(function(){s=!0})),r.resume=function(){o=!1,c()},n.nextTick(c),r.pause=function(){o=!0},r.destroy=function(){r.emit("end"),r.emit("close"),s=!0},r},s.mapSync=function(e){return s.through((function(t){var r;try{r=e(t)}catch(e){return this.emit("error",e)}void 0!==r&&this.emit("data",r)}))},s.log=function(e){return s.through((function(t){[].slice.call(arguments);e?a.error(e,t):a.error(t),this.emit("data",t)}))},s.child=function(e){return s.duplex(e.stdin,e.stdout)},s.parse=function(e){var t=!(!e||!e.error);return s.through((function(e){var r;try{e&&(r=JSON.parse(e.toString()))}catch(r){return t?this.emit("error",r):a.error(r,"attempting to parse:",e)}void 0!==r&&this.emit("data",r)}))},s.stringify=function(){var e=r(8764).Buffer;return s.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))},s.replace=function(e,t){return s.pipeline(s.split(e),s.join(t))},s.join=function(e){if("function"==typeof e)return s.wait(e);var t=!0;return s.through((function(r){return t||this.emit("data",e),t=!1,this.emit("data",r),!0}))},s.wait=function(e){var t=[];return s.through((function(e){t.push(e)}),(function(){var r=o.isBuffer(t[0])?o.concat(t):t.join("");this.emit("data",r),this.emit("end"),e&&e(null,r)}))},s.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},7187:(e,t,r)=>{"use strict";var n,a=r(5108),o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,a,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function p(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,s,l;if(p(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=d(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,a&&a.warn&&a.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=h.bind(n);return a.listener=r,n.wrapFn=a,a}function m(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,p=y(l,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!=a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,a=t.cmp&&(r=t.cmp,function(e){return function(t,n){var a={key:t,value:e[t]},o={key:n,value:e[n]};return r(a,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,i;if(Array.isArray(t)){for(i="[",r=0;r{"use strict";var n=r(5320),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===a.call(e)?function(e,t,r){for(var n=0,a=e.length;n{e.exports="object"==typeof self?self.FormData:window.FormData},4404:(e,t,r)=>{"use strict";var n=r(4155),a=r(2830);e.exports=function e(t){if(Array.isArray(t)){var r=0,o=t.length;return e((function(e){return r{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var a,o=t.call(arguments,1),i=Math.max(0,n.length-o.length),s=[],l=0;l{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,a=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new i},p=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(1405)(),u=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?n:u(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?u([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?u(u([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?u((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?u((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?u(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":p,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var g=u(u(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=u(a.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),x=r(7642),w=b.call(Function.call,Array.prototype.concat),$=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,O=function(e,t){var r,n=e;if(x(v,n)&&(n="%"+(r=v[n])[0]+"%"),x(m,n)){var o=m[n];if(o===h&&(o=y(n)),void 0===o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,A,(function(e,t,r,a){n[n.length]=r?S(a,_,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,c=o.value,p=!1,d=o.alias;d&&(n=d[0],$(r,w([0,1],d)));for(var u=1,h=!0;u=r.length){var v=l(c,f);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else h=x(c,f),c=c[f];h&&!p&&(m[s]=c)}}return c}},6841:(e,t)=>{"use strict";t.Z=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))},7296:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8023:(e,t,r)=>{"use strict";e.exports={afterRequest:r(3932),beforeRequest:r(6136),browser:r(805),cache:r(1632),content:r(1567),cookie:r(5725),creator:r(7218),entry:r(4560),har:r(5579),header:r(5147),log:r(3013),page:r(4777),pageTimings:r(5538),postData:r(2096),query:r(1251),request:r(9646),response:r(9103),timings:r(2007)}},3784:(e,t,r)=>{var n,a=r(5096),o=r(8300),i=r(8023);function s(e,t,s){t=t||{};var l=(n=n||function(){var e=new a({allErrors:!0});return e.addMetaSchema(r(6273)),e.addSchema(i),e}()).getSchema(e+".json"),c=l(t);return"function"==typeof s?s(c?null:new o(l.errors),c):c}t.afterRequest=function(e,t){return s("afterRequest",e,t)},t.beforeRequest=function(e,t){return s("beforeRequest",e,t)},t.browser=function(e,t){return s("browser",e,t)},t.cache=function(e,t){return s("cache",e,t)},t.content=function(e,t){return s("content",e,t)},t.cookie=function(e,t){return s("cookie",e,t)},t.creator=function(e,t){return s("creator",e,t)},t.entry=function(e,t){return s("entry",e,t)},t.har=function(e,t){return s("har",e,t)},t.header=function(e,t){return s("header",e,t)},t.log=function(e,t){return s("log",e,t)},t.page=function(e,t){return s("page",e,t)},t.pageTimings=function(e,t){return s("pageTimings",e,t)},t.postData=function(e,t){return s("postData",e,t)},t.query=function(e,t){return s("query",e,t)},t.request=function(e,t){return s("request",e,t)},t.response=function(e,t){return s("response",e,t)},t.timings=function(e,t){return s("timings",e,t)}},8300:e=>{function t(e){var t="validation failed";this.name="HARError",this.message=t,this.errors=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}t.prototype=Error.prototype,e.exports=t},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),a=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9267:(e,t,r)=>{var n=r(8501),a=r(8575),o=e.exports;for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);function s(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},3503:(e,t,r)=>{var n=r(5108),a=r(4155);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=r(2212)).log=function(){return"object"==typeof n&&n.log&&Function.prototype.apply.call(n.log,n,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},2212:(e,t,r)=>{var n,a=r(5108);function o(e){function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),l=0;l{var t=1e3,r=60*t,n=60*r,a=24*n,o=365.25*a;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?i(l=e,a,"day")||i(l,n,"hour")||i(l,r,"minute")||i(l,t,"second")||l+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9544:(e,t,r)=>{"use strict";const n=r(9539),a=function(e,t){this.code=[],this.indentation=e,this.lineJoin=t||"\n"};a.prototype.buildLine=function(e,t){let r="",a=2;if("[object String]"===Object.prototype.toString.call(e))a=1,t=e,e=0;else if(null===e)return null;for(;e;)r+=this.indentation,e--;const o=Array.prototype.slice.call(arguments,a,arguments.length);return o.unshift(r+t),n.format.apply(this,o)},a.prototype.unshift=function(){return this.code.unshift(this.buildLine.apply(this,arguments)),this},a.prototype.push=function(){return this.code.push(this.buildLine.apply(this,arguments)),this},a.prototype.blank=function(){return this.code.push(null),this},a.prototype.join=function(){return this.code.join(this.lineJoin)},e.exports=a},1747:e=>{const t="\r\n",r="-".repeat(2),n=Symbol.toStringTag,a=e=>"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[n]);function o(e,n,o){let i="";return i+=`${r}${e}${t}`,i+=`Content-Disposition: form-data; name="${n}"`,a(o)&&(i+=`; filename="${o.name}"${t}`,i+=`Content-Type: ${o.type||"application/octet-stream"}`),`${i}${t.repeat(2)}`}e.exports.getBoundary=()=>{let e="--------------------------";for(let t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);return e},e.exports.formDataIterator=function*(e,n){for(const[r,i]of e)yield o(n,r,i),a(i)?yield*i.stream():yield i,yield t;yield(e=>`${r}${e}${r}${t.repeat(2)}`)(n)},e.exports.isBlob=a},174:e=>{e.exports={getHeader:(e,t)=>e[Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()))],getHeaderName:(e,t)=>Object.keys(e).find((e=>{if(e.toLowerCase()===t.toLowerCase())return e})),hasHeader:(e,t)=>Boolean(Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())))}},4411:e=>{"use strict";e.exports=function(e,t){if(void 0===e[t.name])return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const r=[e[t.name],t.value];return e[t.name]=r,e}},9426:(e,t,r)=>{"use strict";const n=r(9539);e.exports={quote:function(e){return/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:n.format("'%s'",e.replace(/'/g,"'\\''"))},escape:function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}}},212:(e,t,r)=>{"use strict";const n=r(3503)("httpsnippet"),a=r(2704),o=r(6230),i=r(7673),s=r(4411),l=r(174),c=r(9245),p=r(8575),d=r(3784),{formDataIterator:u,isBlob:h}=r(1747),f=function(e){let t;const r=this,n=Object.assign({},e);r.requests=[],t=n.log&&n.log.entries?n.log.entries:[{request:n}],t.forEach((function(e){e.request.httpVersion=e.request.httpVersion||"HTTP/1.1",e.request.queryString=e.request.queryString||[],e.request.headers=e.request.headers||[],e.request.cookies=e.request.cookies||[],e.request.postData=e.request.postData||{},e.request.postData.mimeType=e.request.postData.mimeType||"application/octet-stream",e.request.bodySize=0,e.request.headersSize=0,e.request.postData.size=0,d.request(e.request,(function(t,n){if(!n)throw t;r.requests.push(r.prepare(e.request))}))}))};f.prototype.prepare=function(e){if(e.queryObj={},e.headersObj={},e.cookiesObj={},e.allHeaders={},e.postData.jsonObj=!1,e.postData.paramsObj=!1,e.queryString&&e.queryString.length&&(n("queryString found, constructing queryString pair map"),e.queryObj=e.queryString.reduce(s,{})),e.headers&&e.headers.length){const t=/^HTTP\/2/;e.headersObj=e.headers.reduce((function(r,n){let a=n.name;return e.httpVersion.match(t)&&(a=a.toLowerCase()),r[a]=n.value,r}),{})}e.cookies&&e.cookies.length&&(e.cookiesObj=e.cookies.reduceRight((function(e,t){return e[t.name]=t.value,e}),{}));const t=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));switch(t.length&&(e.allHeaders.cookie=t.join("; ")),e.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(e.postData.text="",e.postData.mimeType="multipart/form-data",e.postData.params){const t=new o,r="function"==typeof t[Symbol.iterator],n="---011000010111000001101001";if(r||(t._boundary=n),e.postData.params.forEach((function(e){const n=e.name,a=e.value||"",o=e.fileName||null;r?h(a)?t.append(n,a,o):t.append(n,a):t.append(n,a,{filename:o,contentType:e.contentType||null})})),r)for(const r of u(t,n))e.postData.text+=r;else t.pipe(a.map((function(t,r){e.postData.text+=t})));e.postData.boundary=n;const i=l.hasHeader(e.headersObj,"content-type")?l.getHeaderName(e.headersObj,"content-type"):"content-type";e.headersObj[i]="multipart/form-data; boundary="+n}break;case"application/x-www-form-urlencoded":e.postData.params?(e.postData.paramsObj=e.postData.params.reduce(s,{}),e.postData.text=i.stringify(e.postData.paramsObj)):e.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(e.postData.mimeType="application/json",e.postData.text)try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){n(t),e.postData.mimeType="text/plain"}}return e.allHeaders=Object.assign(e.allHeaders,e.headersObj),e.uriObj=p.parse(e.url,!0,!0),e.queryObj=Object.assign(e.queryObj,e.uriObj.query),e.uriObj.query=null,e.uriObj.search=null,e.uriObj.path=e.uriObj.pathname,e.url=p.format(e.uriObj),e.uriObj.query=e.queryObj,e.uriObj.search=i.stringify(e.queryObj),e.uriObj.search&&(e.uriObj.path=e.uriObj.pathname+"?"+e.uriObj.search),e.fullUrl=p.format(e.uriObj),e},f.prototype.convert=function(e,t,r){!r&&t&&(r=t);const n=this._matchTarget(e,t);if(n){const e=this.requests.map((function(e){return n(e,r)}));return 1===e.length?e[0]:e}return!1},f.prototype._matchTarget=function(e,t){return!!c.hasOwnProperty(e)&&("string"==typeof t&&"function"==typeof c[e][t]?c[e][t]:c[e][c[e].info.default])},e.exports=f,e.exports.addTarget=function(e){if(!("info"in e))throw new Error("The supplied custom target must contain an `info` object.");if(!("key"in e.info&&"title"in e.info&&"extname"in e.info&&"default"in e.info))throw new Error("The supplied custom target must have an `info` object with a `key`, `title`, `extname`, and `default` property.");if(c.hasOwnProperty(e.info.key))throw new Error("The supplied custom target already exists.");if(1===Object.keys(e).length)throw new Error("A custom target must have a client defined on it.");c[e.info.key]=e},e.exports.addTargetClient=function(e,t){if(!c.hasOwnProperty(e))throw new Error(`Sorry, but no ${e} target exists to add clients to.`);if(!("info"in t))throw new Error("The supplied custom target client must contain an `info` object.");if(!("key"in t.info)||!("title"in t.info))throw new Error("The supplied custom target client must have an `info` object with a `key` and `title` property.");if(c[e].hasOwnProperty(t.info.key))throw new Error("The supplied custom target client already exists, please use a different key");c[e][t.info.key]=t},e.exports.availableTargets=function(){return Object.keys(c).map((function(e){const t=Object.assign({},c[e].info),r=Object.keys(c[e]).filter((function(e){return!~["info","index"].indexOf(e)})).map((function(t){return c[e][t].info}));return r.length&&(t.clients=r),t}))},e.exports.extname=function(e){return c[e]?c[e].info.extname:""}},5767:(e,t,r)=>{"use strict";e.exports={info:{key:"c",title:"C",extname:".c",default:"libcurl"},libcurl:r(9897)}},9897:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("CURL *hnd = curl_easy_init();").blank().push('curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "%s");',e.method.toUpperCase()).push('curl_easy_setopt(hnd, CURLOPT_URL, "%s");',e.fullUrl);const a=Object.keys(e.headersObj);return a.length&&(r.blank().push("struct curl_slist *headers = NULL;"),a.forEach((function(t){r.push('headers = curl_slist_append(headers, "%s: %s");',t,e.headersObj[t])})),r.push("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),e.allHeaders.cookie&&r.blank().push('curl_easy_setopt(hnd, CURLOPT_COOKIE, "%s");',e.allHeaders.cookie),e.postData.text&&r.blank().push("curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, %s);",JSON.stringify(e.postData.text)),r.blank().push("CURLcode ret = curl_easy_perform(hnd);"),r.join()},e.exports.info={key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl/",description:"Simple REST and HTTP API Client for C"}},1972:(e,t,r)=>{"use strict";const n=r(9544),a=r(174),o=function(e){this.name=e};o.prototype.toString=function(){return":"+this.name};const i=function(e){this.path=e};i.prototype.toString=function(){return'(clojure.java.io/file "'+this.path+'")'};const s=function(e){return void 0!==e?e.constructor.name.toLowerCase():null},l=function(e){return"object"===s(e)&&0===Object.keys(e).length},c=function(e){return Object.keys(e).filter((function(t){return l(e[t])})).forEach((function(t){delete e[t]})),e},p=function(e,t){const r=Array.apply(null,Array(e)).map((function(e){return" "})).join("");return t.replace(/\n/g,"\n"+r)},d=function(e){switch(s(e)){case"string":return'"'+e.replace(/"/g,'\\"')+'"';case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return'#"'+e.source+'"';case"object":{const t=Object.keys(e).reduce((function(t,r){return t+":"+r+" "+p(r.length+2,d(e[r]))+"\n "}),"").trim();return"{"+p(1,t)+"}"}case"array":{const t=e.reduce((function(e,t){return e+" "+d(t)}),"").trim();return"["+p(1,t)+"]"}}};e.exports=function(e,t){const r=new n(t);if(-1===["get","post","put","delete","patch","head","options"].indexOf(e.method.toLowerCase()))return r.push("Method not supported").join();const s={headers:e.allHeaders,"query-params":e.queryObj};switch(e.postData.mimeType){case"application/json":s["content-type"]=new o("json"),s["form-params"]=e.postData.jsonObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"application/x-www-form-urlencoded":s["form-params"]=e.postData.paramsObj,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"text/plain":s.body=e.postData.text,delete s.headers[a.getHeaderName(s.headers,"content-type")];break;case"multipart/form-data":s.multipart=e.postData.params.map((function(e){return e.fileName&&!e.value?{name:e.name,content:new i(e.fileName)}:{name:e.name,content:e.value}})),delete s.headers[a.getHeaderName(s.headers,"content-type")]}if("application/json"===a.getHeader(s.headers,"accept"))s.accept=new o("json"),delete s.headers[a.getHeaderName(s.headers,"accept")];return r.push("(require '[clj-http.client :as client])\n"),l(c(s))?r.push('(client/%s "%s")',e.method.toLowerCase(),e.url):r.push('(client/%s "%s" %s)',e.method.toLowerCase(),e.url,p(11+e.method.length+e.url.length,d(c(s)))),r.join()},e.exports.info={key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."}},3686:(e,t,r)=>{"use strict";e.exports={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clj_http:r(1972)}},4681:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent);let i="";const s=!!e.allHeaders.cookie,l=function(e){const t=a.getHeader(e.allHeaders,"accept-encoding");if(!t)return[];const r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return t.split(",").forEach((function(e){const t=/\s*([^;\s]+)/.exec(e);if(t){const e=r[t[1]];e&&n.push(e)}})),n}(e);(s||l.length)&&(i="clientHandler",o.push("var clientHandler = new HttpClientHandler"),o.push("{"),s&&o.push(1,"UseCookies = false,"),l.length&&o.push(1,"AutomaticDecompression = %s,",l.join(" | ")),o.push("};")),o.push("var client = new HttpClient(%s);",i),o.push("var request = new HttpRequestMessage"),o.push("{");let c=e.method.toUpperCase();c=c&&-1!==["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].indexOf(c)?`HttpMethod.${c[0]}${c.substring(1).toLowerCase()}`:`new HttpMethod("${c}")`,o.push(1,"Method = %s,",c),o.push(1,'RequestUri = new Uri("%s"),',e.fullUrl);const p=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(p.length&&(o.push(1,"Headers ="),o.push(1,"{"),p.forEach((function(t){o.push(2,'{ "%s", "%s" },',t,e.allHeaders[t])})),o.push(1,"},")),e.postData.text){const t=e.postData.mimeType;switch(t){case"application/x-www-form-urlencoded":o.push(1,"Content = new FormUrlEncodedContent(new Dictionary"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,'{ "%s", "%s" },',e.name,e.value)})),o.push(1,"}),");break;case"multipart/form-data":o.push(1,"Content = new MultipartFormDataContent"),o.push(1,"{"),e.postData.params.forEach((function(e){o.push(2,"new StringContent(%s)",JSON.stringify(e.value||"")),o.push(2,"{"),o.push(3,"Headers ="),o.push(3,"{"),e.contentType&&o.push(4,'ContentType = new MediaTypeHeaderValue("%s"),',e.contentType),o.push(4,'ContentDisposition = new ContentDispositionHeaderValue("form-data")'),o.push(4,"{"),o.push(5,'Name = "%s",',e.name),e.fileName&&o.push(5,'FileName = "%s",',e.fileName),o.push(4,"}"),o.push(3,"}"),o.push(2,"},")})),o.push(1,"},");break;default:o.push(1,"Content = new StringContent(%s)",JSON.stringify(e.postData.text||"")),o.push(1,"{"),o.push(2,"Headers ="),o.push(2,"{"),o.push(3,'ContentType = new MediaTypeHeaderValue("%s")',t),o.push(2,"}"),o.push(1,"}")}}return o.push("};"),o.push("using (var response = await client.SendAsync(request))"),o.push("{"),o.push(1,"response.EnsureSuccessStatusCode();"),o.push(1,"var body = await response.Content.ReadAsStringAsync();"),o.push(1,"Console.WriteLine(body);"),o.push("}"),o.join()},e.exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"}},7838:(e,t,r)=>{"use strict";e.exports={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},restsharp:r(3764),httpclient:r(4681)}},3764:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase()))return"Method not supported";r.push('var client = new RestClient("%s");',e.fullUrl),r.push("var request = new RestRequest(Method.%s);",e.method.toUpperCase());const o=Object.keys(e.headersObj);return o.length&&o.forEach((function(t){r.push('request.AddHeader("%s", "%s");',t,e.headersObj[t])})),e.cookies.length&&e.cookies.forEach((function(e){r.push('request.AddCookie("%s", "%s");',e.name,e.value)})),e.postData.text&&r.push('request.AddParameter("%s", %s, ParameterType.RequestBody);',a.getHeader(e.allHeaders,"content-type"),JSON.stringify(e.postData.text)),r.push("IRestResponse response = client.Execute(request);"),r.join()},e.exports.info={key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"}},786:(e,t,r)=>{"use strict";e.exports={info:{key:"go",title:"Go",extname:".go",default:"native"},native:r(4398)}},4398:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n("\t"),a=Object.assign({showBoilerplate:!0,checkErrors:!1,printBody:!0,timeout:-1},t),o=a.checkErrors?"err":"_",i=a.showBoilerplate?1:0,s=function(){a.checkErrors&&r.push(i,"if err != nil {").push(i+1,"panic(err)").push(i,"}")};let l;return a.showBoilerplate&&(r.push("package main").blank().push("import (").push(i,'"fmt"'),a.timeout>0&&r.push(i,'"time"'),e.postData.text&&r.push(i,'"strings"'),r.push(i,'"net/http"'),a.printBody&&r.push(i,'"io/ioutil"'),r.push(")").blank().push("func main() {").blank()),a.timeout>0?(l="client",r.push(i,"client := http.Client{").push(i+1,"Timeout: time.Duration(%s * time.Second),",a.timeout).push(i,"}").blank()):l="http.DefaultClient",r.push(i,'url := "%s"',e.fullUrl).blank(),e.postData.text?r.push(i,"payload := strings.NewReader(%s)",JSON.stringify(e.postData.text)).blank().push(i,'req, %s := http.NewRequest("%s", url, payload)',o,e.method).blank():r.push(i,'req, %s := http.NewRequest("%s", url, nil)',o,e.method).blank(),s(),Object.keys(e.allHeaders).length&&(Object.keys(e.allHeaders).forEach((function(t){r.push(i,'req.Header.Add("%s", "%s")',t,e.allHeaders[t])})),r.blank()),r.push(i,"res, %s := %s.Do(req)",o,l),s(),a.printBody&&(r.blank().push(i,"defer res.Body.Close()").push(i,"body, %s := ioutil.ReadAll(res.Body)",o),s()),r.blank().push(i,"fmt.Println(res)"),a.printBody&&r.push(i,"fmt.Println(string(body))"),a.showBoilerplate&&r.blank().push("}"),r.join()},e.exports.info={key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"}},7659:(e,t,r)=>{"use strict";var n=r(8764).Buffer;const a=r(9544),o=r(9539);e.exports=function(e,t){const r=Object.assign({absoluteURI:!1,autoContentLength:!0,autoHost:!0},t),i=new a("","\r\n"),s=r.absoluteURI?e.fullUrl:e.uriObj.path;i.push("%s %s %s",e.method,s,e.httpVersion),Object.keys(e.allHeaders).forEach((function(t){const r=t.toLowerCase().replace(/(^|-)(\w)/g,(function(e){return e.toUpperCase()}));i.push("%s",o.format("%s: %s",r,e.allHeaders[t]))})),r.autoHost&&-1===Object.keys(e.allHeaders).indexOf("host")&&i.push("Host: %s",e.uriObj.host),r.autoContentLength&&e.postData.text&&-1===Object.keys(e.allHeaders).indexOf("content-length")&&i.push("Content-Length: %d",n.byteLength(e.postData.text,"ascii")),i.blank();const l=i.join();let c="";return e.postData.text&&(c=e.postData.text),l+"\r\n"+c},e.exports.info={key:"1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"}},8322:(e,t,r)=>{"use strict";e.exports={info:{key:"http",title:"HTTP",extname:"",default:"1.1"},1.1:r(7659)}},9245:(e,t,r)=>{"use strict";e.exports={c:r(5767),clojure:r(3686),csharp:r(7838),go:r(786),http:r(8322),java:r(3625),javascript:r(5100),kotlin:r(3217),node:r(3095),objc:r(6629),ocaml:r(4955),php:r(8663),powershell:r(3218),python:r(3979),r:r(2817),ruby:r(2682),shell:r(869),swift:r(4484)}},9868:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("AsyncHttpClient client = new DefaultAsyncHttpClient();"),a.push(`client.prepare("${e.method.toUpperCase()}", "${e.fullUrl}")`);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.setHeader("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".setBody(%s)",JSON.stringify(e.postData.text)),a.push(1,".execute()"),a.push(1,".toCompletableFuture()"),a.push(1,".thenAccept(System.out::println)"),a.push(1,".join();"),a.blank(),a.push("client.close();"),a.join()},e.exports.info={key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"}},3625:(e,t,r)=>{"use strict";e.exports={info:{key:"java",title:"Java",extname:".java",default:"unirest"},okhttp:r(6870),unirest:r(5492),asynchttp:r(9868),nethttp:r(7423)}},7423:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("HttpRequest request = HttpRequest.newBuilder()"),a.push(2,'.uri(URI.create("%s"))',e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(2,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text?a.push(2,'.method("%s", HttpRequest.BodyPublishers.ofString(%s))',e.method.toUpperCase(),JSON.stringify(e.postData.text)):a.push(2,'.method("%s", HttpRequest.BodyPublishers.noBody())',e.method.toUpperCase()),a.push(2,".build();"),a.push("HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),a.push("System.out.println(response.body());"),a.join()},e.exports.info={key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"}},6870:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("OkHttpClient client = new OkHttpClient();").blank(),e.postData.text&&(e.postData.boundary?a.push('MediaType mediaType = MediaType.parse("%s; boundary=%s");',e.postData.mimeType,e.postData.boundary):a.push('MediaType mediaType = MediaType.parse("%s");',e.postData.mimeType),a.push("RequestBody body = RequestBody.create(mediaType, %s);",JSON.stringify(e.postData.text))),a.push("Request request = new Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build();").blank().push("Response response = client.newCall(request).execute();"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},5492:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(e.method.toUpperCase())?a.push('HttpResponse response = Unirest.customMethod("%s","%s")',e.method.toUpperCase(),e.fullUrl):a.push('HttpResponse response = Unirest.%s("%s")',e.method.toLowerCase(),e.fullUrl);const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.header("%s", "%s")',t,e.allHeaders[t])})),e.postData.text&&a.push(1,".body(%s)",JSON.stringify(e.postData.text)),a.push(1,".asString();"),a.join()},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"}},7355:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('import axios from "axios";').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank(),s.data="[form]";break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("const options = %s;",a(s,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form")).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},2690:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const a=Object.assign({indent:" ",credentials:null},t),o=r(4110),i=new n(a.indent);switch(t={method:e.method},Object.keys(e.allHeaders).length&&(t.headers=e.allHeaders),null!==a.credentials&&(t.credentials=a.credentials),e.postData.mimeType){case"application/x-www-form-urlencoded":t.body=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":t.body=JSON.stringify(e.postData.jsonObj);break;case"multipart/form-data":i.push("const form = new FormData();"),e.postData.params.forEach((function(e){i.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.blank();break;default:e.postData.text&&(t.body=e.postData.text)}return i.push("const options = %s;",o(t,{indent:a.indent,inlineCharacterLimit:80,transform:(t,r,n)=>"body"===r&&"application/x-www-form-urlencoded"===e.postData.mimeType?`new URLSearchParams(${n})`:n})).blank(),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = form;").blank(),i.push("fetch('%s', options)",e.fullUrl).push(1,".then(response => response.json())").push(1,".then(response => console.log(response))").push(1,".catch(err => console.error(err));"),i.join()},e.exports.info={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"}},5100:(e,t,r)=>{"use strict";e.exports={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},jquery:r(354),fetch:r(2690),xhr:r(9936),axios:r(7355)}},354:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new n(r.indent),i={async:!0,crossDomain:!0,url:e.fullUrl,method:e.method,headers:e.allHeaders};switch(e.postData.mimeType){case"application/x-www-form-urlencoded":i.data=e.postData.paramsObj?e.postData.paramsObj:e.postData.text;break;case"application/json":i.processData=!1,i.data=e.postData.text;break;case"multipart/form-data":o.push("const form = new FormData();"),e.postData.params.forEach((function(e){o.push("form.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),i.processData=!1,i.contentType=!1,i.mimeType="multipart/form-data",i.data="[form]",a.hasHeader(i.headers,"content-type")&&a.getHeader(i.headers,"content-type").indexOf("boundary")&&delete i.headers[a.getHeaderName(i.headers,"content-type")],o.blank();break;default:e.postData.text&&(i.data=e.postData.text)}return o.push("const settings = "+JSON.stringify(i,null,r.indent).replace('"[form]"',"form")+";").blank().push("$.ajax(settings).done(function (response) {").push(1,"console.log(response);").push("});"),o.join()},e.exports.info={key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"}},9936:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e,t){const r=Object.assign({indent:" ",cors:!0},t),o=new n(r.indent);switch(e.postData.mimeType){case"application/json":o.push("const data = JSON.stringify(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).push(null);break;case"multipart/form-data":o.push("const data = new FormData();"),e.postData.params.forEach((function(e){o.push("data.append(%s, %s);",JSON.stringify(e.name),JSON.stringify(e.value||e.fileName||""))})),a.hasHeader(e.allHeaders,"content-type")&&a.getHeader(e.allHeaders,"content-type").indexOf("boundary")&&delete e.allHeaders[a.getHeaderName(e.allHeaders,"content-type")],o.blank();break;default:o.push("const data = %s;",JSON.stringify(e.postData.text||null)).blank()}return o.push("const xhr = new XMLHttpRequest();"),r.cors&&o.push("xhr.withCredentials = true;"),o.blank().push('xhr.addEventListener("readystatechange", function () {').push(1,"if (this.readyState === this.DONE) {").push(2,"console.log(this.responseText);").push(1,"}").push("});").blank().push("xhr.open(%s, %s);",JSON.stringify(e.method),JSON.stringify(e.fullUrl)),Object.keys(e.allHeaders).forEach((function(t){o.push("xhr.setRequestHeader(%s, %s);",JSON.stringify(t),JSON.stringify(e.allHeaders[t]))})),o.blank().push("xhr.send(data);"),o.join()},e.exports.info={key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"}},3217:(e,t,r)=>{"use strict";e.exports={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},okhttp:r(9173)}},9173:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("val client = OkHttpClient()").blank(),e.postData.text&&(e.postData.boundary?a.push('val mediaType = MediaType.parse("%s; boundary=%s")',e.postData.mimeType,e.postData.boundary):a.push('val mediaType = MediaType.parse("%s")',e.postData.mimeType),a.push("val body = RequestBody.create(mediaType, %s)",JSON.stringify(e.postData.text))),a.push("val request = Request.Builder()"),a.push(1,'.url("%s")',e.fullUrl),-1===["GET","POST","PUT","DELETE","PATCH","HEAD"].indexOf(e.method.toUpperCase())?e.postData.text?a.push(1,'.method("%s", body)',e.method.toUpperCase()):a.push(1,'.method("%s", null)',e.method.toUpperCase()):["POST","PUT","DELETE","PATCH"].indexOf(e.method.toUpperCase())>=0?e.postData.text?a.push(1,".%s(body)",e.method.toLowerCase()):a.push(1,".%s(null)",e.method.toLowerCase()):a.push(1,".%s()",e.method.toLowerCase());const o=Object.keys(e.allHeaders);return o.length&&o.forEach((function(t){a.push(1,'.addHeader("%s", "%s")',t,e.allHeaders[t])})),a.push(1,".build()").blank().push("val response = client.newCall(request).execute()"),a.join()},e.exports.info={key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"}},1256:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),i=new o(r.indent);i.push('var axios = require("axios").default;').blank();const s={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(s.params=e.queryObj),Object.keys(e.allHeaders).length&&(s.headers=e.allHeaders),e.postData.mimeType){case"application/x-www-form-urlencoded":s.data=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(s.data=e.postData.jsonObj);break;default:e.postData.text&&(s.data=e.postData.text)}return i.push("var options = %s;",a(s,{indent:" ",inlineCharacterLimit:80})).blank(),i.push(n.format("axios.request(options).then(%s","function (response) {")).push(1,"console.log(response.data);").push("}).catch(%s","function (error) {").push(1,"console.error(error);").push("});"),i.join()},e.exports.info={key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"}},7911:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let o=!1;const i=new a(r.indent);i.push("const fetch = require('node-fetch');");const s=e.fullUrl,l={method:e.method};switch(Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":i.unshift("const { URLSearchParams } = require('url');"),i.push("const encodedParams = new URLSearchParams();"),i.blank(),e.postData.params.forEach((function(e){i.push("encodedParams.set('"+e.name+"', '"+e.value+"');")})),l.body="encodedParams";break;case"application/json":e.postData.jsonObj&&(l.body=JSON.stringify(e.postData.jsonObj));break;case"multipart/form-data":i.unshift("const FormData = require('form-data');"),i.push("const formData = new FormData();"),i.blank(),e.postData.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(o=!0,i.push("formData.append('"+e.name+"', fs.createReadStream('"+e.fileName+"'));")):i.push("formData.append('"+e.name+"', '"+e.value+"');")}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){let t="";e.cookies.forEach((function(e){t=t+encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)+"; "})),l.headers||(l.headers={}),l.headers.cookie=t}return i.blank(),i.push("let url = '"+s+"';").blank(),i.push("let options = %s;",n(l,{indent:" ",inlineCharacterLimit:80})).blank(),o&&i.unshift("const fs = require('fs');"),"multipart/form-data"===e.postData.mimeType&&i.push("options.body = formData;").blank(),i.push("fetch(url, options)").push(1,".then(res => res.json())").push(1,".then(json => console.log(json))").push(1,".catch(err => console.error('error:' + err));"),i.join().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"}},3095:(e,t,r)=>{"use strict";e.exports={info:{key:"node",title:"Node.js",extname:".js",default:"native"},native:r(5965),request:r(4213),unirest:r(9314),axios:r(1256),fetch:r(7911)}},5965:(e,t,r)=>{"use strict";const n=r(4110),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),o=new a(r.indent),i={method:e.method,hostname:e.uriObj.hostname,port:e.uriObj.port,path:e.uriObj.path,headers:e.allHeaders};switch(o.push('const http = require("%s");',e.uriObj.protocol.replace(":","")),o.blank().push("const options = %s;",JSON.stringify(i,null,r.indent)).blank().push("const req = http.request(options, function (res) {").push(1,"const chunks = [];").blank().push(1,'res.on("data", function (chunk) {').push(2,"chunks.push(chunk);").push(1,"});").blank().push(1,'res.on("end", function () {').push(2,"const body = Buffer.concat(chunks);").push(2,"console.log(body.toString());").push(1,"});").push("});").blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&(o.unshift('const qs = require("querystring");'),o.push("req.write(qs.stringify(%s));",n(e.postData.paramsObj,{indent:" ",inlineCharacterLimit:80})));break;case"application/json":e.postData.jsonObj&&o.push("req.write(JSON.stringify(%s));",n(e.postData.jsonObj,{indent:" ",inlineCharacterLimit:80}));break;default:e.postData.text&&o.push("req.write(%s);",JSON.stringify(e.postData.text,null,r.indent))}return o.push("req.end();"),o.join()},e.exports.info={key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"}},4213:(e,t,r)=>{"use strict";const n=r(9539),a=r(4110),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let i=!1;const s=new o(r.indent);s.push("const request = require('request');").blank();const l={method:e.method,url:e.url};switch(Object.keys(e.queryObj).length&&(l.qs=e.queryObj),Object.keys(e.headersObj).length&&(l.headers=e.headersObj),e.postData.mimeType){case"application/x-www-form-urlencoded":l.form=e.postData.paramsObj;break;case"application/json":e.postData.jsonObj&&(l.body=e.postData.jsonObj,l.json=!0);break;case"multipart/form-data":l.formData={},e.postData.params.forEach((function(e){const t={};e.fileName||e.fileName||e.contentType?(e.fileName?(i=!0,t.value='fs.createReadStream("'+e.fileName+'")'):e.value&&(t.value=e.value),e.fileName&&(t.options={filename:e.fileName,contentType:e.contentType?e.contentType:null}),l.formData[e.name]=t):l.formData[e.name]=e.value}));break;default:e.postData.text&&(l.body=e.postData.text)}if(e.cookies.length){l.jar="JAR",s.push("const jar = request.jar();");const t=e.url;e.cookies.forEach((function(e){s.push("jar.setCookie(request.cookie('%s=%s'), '%s');",encodeURIComponent(e.name),encodeURIComponent(e.value),t)})),s.blank()}return i&&s.unshift("const fs = require('fs');"),s.push("const options = %s;",a(l,{indent:" ",inlineCharacterLimit:80})).blank(),s.push(n.format("request(options, %s","function (error, response, body) {")).push(1,"if (error) throw new Error(error);").blank().push(1,"console.log(body);").push("});").blank(),s.join().replace('"JAR"',"jar").replace(/'fs\.createReadStream\("(.+)"\)'/g,"fs.createReadStream('$1')")},e.exports.info={key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"}},9314:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t);let a=!1;const o=new n(r.indent);switch(o.push('const unirest = require("unirest");').blank().push('const req = unirest("%s", "%s");',e.method,e.url).blank(),e.cookies.length&&(o.push("const CookieJar = unirest.jar();"),e.cookies.forEach((function(t){o.push('CookieJar.add("%s=%s","%s");',encodeURIComponent(t.name),encodeURIComponent(t.value),e.url)})),o.push("req.jar(CookieJar);").blank()),Object.keys(e.queryObj).length&&o.push("req.query(%s);",JSON.stringify(e.queryObj,null,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("req.headers(%s);",JSON.stringify(e.headersObj,null,r.indent)).blank(),e.postData.mimeType){case"application/x-www-form-urlencoded":e.postData.paramsObj&&o.push("req.form(%s);",JSON.stringify(e.postData.paramsObj,null,r.indent)).blank();break;case"application/json":e.postData.jsonObj&&o.push('req.type("json");').push("req.send(%s);",JSON.stringify(e.postData.jsonObj,null,r.indent)).blank();break;case"multipart/form-data":{const t=[];e.postData.params.forEach((function(e){const r={};e.fileName&&!e.value?(a=!0,r.body='fs.createReadStream("'+e.fileName+'")'):e.value&&(r.body=e.value),r.body&&(e.contentType&&(r["content-type"]=e.contentType),t.push(r))})),o.push("req.multipart(%s);",JSON.stringify(t,null,r.indent)).blank();break}default:e.postData.text&&o.push("req.send(%s);",JSON.stringify(e.postData.text,null,r.indent)).blank()}return a&&o.unshift('const fs = require("fs");'),o.push("req.end(function (res) {").push(1,"if (res.error) throw new Error(res.error);").blank().push(1,"console.log(res.body);").push("});").blank(),o.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')},e.exports.info={key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"}},6714:(e,t,r)=>{"use strict";const n=r(9539);e.exports={blankString:function(e){return Array.apply(null,new Array(e)).map(String.prototype.valueOf," ").join("")},nsDeclaration:function(e,t,r,n){const a=e+" *"+t+" = ";return a+this.literalRepresentation(r,n?a.length:void 0)+";"},literalRepresentation:function(e,t){const r=void 0===t?", ":",\n "+this.blankString(t);switch(Object.prototype.toString.call(e)){case"[object Number]":return"@"+e;case"[object Array]":return"@[ "+e.map(function(e){return this.literalRepresentation(e)}.bind(this)).join(r)+" ]";case"[object Object]":{const t=[];for(const r in e)t.push(n.format('@"%s": %s',r,this.literalRepresentation(e[r])));return"@{ "+t.join(r)+" }"}case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":'@"'+e.toString().replace(/"/g,'\\"')+'"'}}}},6629:(e,t,r)=>{"use strict";e.exports={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},nsurlsession:r(3743)}},3743:(e,t,r)=>{"use strict";const n=r(6714),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("#import "),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.nsDeclaration("NSDictionary","headers",e.allHeaders,r.pretty))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"%s=%s" dataUsingEncoding:NSUTF8StringEncoding]];',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t{"use strict";const n=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" "},t),a=new n(r.indent);a.push("open Cohttp_lwt_unix").push("open Cohttp").push("open Lwt").blank().push('let uri = Uri.of_string "%s" in',e.fullUrl);const o=Object.keys(e.allHeaders);return 1===o.length?a.push('let headers = Header.add (Header.init ()) "%s" "%s" in',o[0],e.allHeaders[o[0]]):o.length>1&&(a.push("let headers = Header.add_list (Header.init ()) ["),o.forEach((function(t){a.push(1,'("%s", "%s");',t,e.allHeaders[t])})),a.push("] in")),e.postData.text&&a.push("let body = Cohttp_lwt_body.of_string %s in",JSON.stringify(e.postData.text)),a.blank(),a.push("Client.call %s%s%s uri",o.length?"~headers ":"",e.postData.text?"~body ":"",["get","post","head","delete","patch","put","options"].indexOf(e.method.toLowerCase())>=0?"`"+e.method.toUpperCase():'(Code.method_of_string "'+e.method+'")'),a.push(">>= fun (res, body_stream) ->").push(1,"(* Do stuff with the result *)"),a.join()},e.exports.info={key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"}},4955:(e,t,r)=>{"use strict";e.exports={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},cohttp:r(1501)}},7149:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",maxRedirects:10,namedErrors:!1,noTags:!1,shortTags:!1,timeout:30},t),o=new a(r.indent);r.noTags||o.push(r.shortTags?" %s,",e.name,e.escape?JSON.stringify(e.value):e.value))}));const l=e.cookies.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));l.length&&s.push(n.format('CURLOPT_COOKIE => "%s",',l.join("; ")));const c=Object.keys(e.headersObj).sort().map((function(t){return n.format('"%s: %s"',t,e.headersObj[t])}));return c.length&&s.push("CURLOPT_HTTPHEADER => [").push(1,c.join(",\n"+r.indent+r.indent)).push("],"),o.push(1,s.join()).push("]);").blank().push("$response = curl_exec($curl);").push("$err = curl_error($curl);").blank().push("curl_close($curl);").blank().push("if ($err) {"),r.namedErrors?o.push(1,'echo array_flip(get_defined_constants(true)["curl"])[$err];'):o.push(1,'echo "cURL Error #:" . $err;'),o.push("} else {").push(1,"echo $response;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"}},8865:e=>{"use strict";const t=function(e,r,n){let a,o;switch(n||(n=""),Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:o="null";break;case"[object String]":o="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"'")+"'";break;case"[object Number]":o=e.toString();break;case"[object Array]":o=[],e.forEach((function(e){o.push(t(e,r+r,r))})),o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]";break;case"[object Object]":for(a in o=[],e)e.hasOwnProperty(a)&&o.push(t(a,r)+" => "+t(e[a],r+r,r));o="[\n"+r+o.join(",\n"+r)+"\n"+n+"]"}return o};e.exports={convert:t,methods:["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"]}},6611:(e,t,r)=>{"use strict";const n=r(8865),a=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),o=new a(r.indent);if(r.noTags||o.push(r.shortTags?"setUrl(%s);",n.convert(e.url)),~n.methods.indexOf(e.method.toUpperCase())?o.push("$request->setMethod(HTTP_METH_%s);",e.method.toUpperCase()):o.push("$request->setMethod(HttpRequest::HTTP_METH_%s);",e.method.toUpperCase()),o.blank(),Object.keys(e.queryObj).length&&o.push("$request->setQueryData(%s);",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&o.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&o.push("$request->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),"application/x-www-form-urlencoded"===e.postData.mimeType)o.push("$request->setContentType(%s);",n.convert(e.postData.mimeType)).push("$request->setPostFields(%s);",n.convert(e.postData.paramsObj,r.indent)).blank();else e.postData.text&&o.push("$request->setBody(%s);",n.convert(e.postData.text)).blank();return o.push("try {").push(1,"$response = $request->send();").blank().push(1,"echo $response->getBody();").push("} catch (HttpException $ex) {").push(1,"echo $ex;").push("}"),!r.noTags&&r.closingTag&&o.blank().push("?>"),o.join()},e.exports.info={key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"}},2316:(e,t,r)=>{"use strict";const n=r(8865),a=r(174),o=r(9544);e.exports=function(e,t){const r=Object.assign({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),i=new o(r.indent);let s=!1;switch(r.noTags||i.push(r.shortTags?"append(new http\\QueryString(%s));",n.convert(e.postData.paramsObj,r.indent)).blank(),s=!0;break;case"multipart/form-data":{const t=[],o={};e.postData.params.forEach((function(e){e.fileName?t.push({name:e.name,type:e.contentType,file:e.fileName,data:e.value}):e.value&&(o[e.name]=e.value)})),i.push("$body = new http\\Message\\Body;").push("$body->addForm(%s, %s);",Object.keys(o).length?n.convert(o,r.indent):"null",t.length?n.convert(t,r.indent):"null"),a.hasHeader(e.headersObj,"content-type")&&a.getHeader(e.headersObj,"content-type").indexOf("boundary")&&delete e.headersObj[a.getHeaderName(e.headersObj,"content-type")],i.blank(),s=!0;break}default:e.postData.text&&(i.push("$body = new http\\Message\\Body;").push("$body->append(%s);",n.convert(e.postData.text)).blank(),s=!0)}return i.push("$request->setRequestUrl(%s);",n.convert(e.url)).push("$request->setRequestMethod(%s);",n.convert(e.method)),s&&i.push("$request->setBody($body);").blank(),Object.keys(e.queryObj).length&&i.push("$request->setQuery(new http\\QueryString(%s));",n.convert(e.queryObj,r.indent)).blank(),Object.keys(e.headersObj).length&&i.push("$request->setHeaders(%s);",n.convert(e.headersObj,r.indent)).blank(),Object.keys(e.cookiesObj).length&&i.blank().push("$client->setCookies(%s);",n.convert(e.cookiesObj,r.indent)).blank(),i.push("$client->enqueue($request)->send();").push("$response = $client->getResponse();").blank().push("echo $response->getBody();"),!r.noTags&&r.closingTag&&i.blank().push("?>"),i.join()},e.exports.info={key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"}},8663:(e,t,r)=>{"use strict";e.exports={info:{key:"php",title:"PHP",extname:".php",default:"curl"},curl:r(7149),http1:r(6611),http2:r(2316)}},3147:(e,t,r)=>{"use strict";const n=r(9544),a=r(174);e.exports=function(e){return function(t,r){const o=new n;if(-1===["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].indexOf(t.method.toUpperCase()))return"Method not supported";const i=[],s=Object.keys(t.headersObj);return s.length&&(o.push("$headers=@{}"),s.forEach((function(e){"connection"!==e&&o.push('$headers.Add("%s", "%s")',e,t.headersObj[e])})),i.push("-Headers $headers")),t.cookies.length&&(o.push("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),t.cookies.forEach((function(e){o.push("$cookie = New-Object System.Net.Cookie"),o.push("$cookie.Name = '%s'",e.name),o.push("$cookie.Value = '%s'",e.value),o.push("$cookie.Domain = '%s'",t.uriObj.host),o.push("$session.Cookies.Add($cookie)")})),i.push("-WebSession $session")),t.postData.text&&(i.push("-ContentType '"+a.getHeader(t.allHeaders,"content-type")+"'"),i.push("-Body '"+t.postData.text+"'")),o.push("$response = %s -Uri '%s' -Method %s %s",e,t.fullUrl,t.method,i.join(" ")),o.join()}}},3218:(e,t,r)=>{"use strict";e.exports={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},webrequest:r(3699),restmethod:r(775)}},775:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-RestMethod"),e.exports.info={key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"}},3699:(e,t,r)=>{"use strict";e.exports=r(3147)("Invoke-WebRequest"),e.exports.info={key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"}},246:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n,o){const i=a(o,n),s=a(o-1,n),l=r?",\n"+i:", ",c="object"===e?"{":"[",p="object"===e?"}":"]";return r?c+"\n"+i+t.join(l)+"\n"+s+p:c+t.join(l)+p}e.exports={literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o("array",e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o("object",a,t.pretty&&a.length>1,t.indent,r)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},3979:(e,t,r)=>{"use strict";e.exports={info:{key:"python",title:"Python",extname:".py",default:"python3"},python3:r(5887),requests:r(8493)}},5887:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("import http.client").blank();"https:"===e.uriObj.protocol?r.push('conn = http.client.HTTPSConnection("%s")',e.uriObj.host).blank():r.push('conn = http.client.HTTPConnection("%s")',e.uriObj.host).blank();const a=JSON.stringify(e.postData.text);a&&r.push("payload = %s",a).blank();const o=e.allHeaders,i=Object.keys(o).length;if(1===i)for(const e in o)r.push("headers = { '%s': \"%s\" }",e,o[e]).blank();else if(i>1){let e=1;r.push("headers = {");for(const t in o)e++!==i?r.push(" '%s': \"%s\",",t,o[t]):r.push(" '%s': \"%s\"",t,o[t]);r.push(" }").blank()}const s=e.method,l=e.uriObj.path;return a&&i?r.push('conn.request("%s", "%s", payload, headers)',s,l):a&&!i?r.push('conn.request("%s", "%s", payload)',s,l):!a&&i?r.push('conn.request("%s", "%s", headers=headers)',s,l):r.push('conn.request("%s", "%s")',s,l),r.blank().push("res = conn.getresponse()").push("data = res.read()").blank().push('print(data.decode("utf-8"))'),r.join()},e.exports.info={key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"}},8493:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544),o=r(246);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0},t),i=new a(r.indent);let s;i.push("import requests").blank(),i.push('url = "%s"',e.url).blank(),Object.keys(e.queryObj).length&&(s="querystring = "+JSON.stringify(e.queryObj),i.push(s).blank());let l=!1,c=!1;if("application/json"===e.postData.mimeType)e.postData.jsonObj&&(i.push("payload = %s",o.literalRepresentation(e.postData.jsonObj,r)),c=!0,l=!0);else{const t=JSON.stringify(e.postData.text);t&&(i.push("payload = %s",t),l=!0)}const p=e.allHeaders,d=Object.keys(p).length;if(1===d)for(const e in p)i.push('headers = {"%s": "%s"}',e,p[e]).blank();else if(d>1){let e=1;i.push("headers = {");for(const t in p)e++!==d?i.push(1,'"%s": "%s",',t,p[t]):i.push(1,'"%s": "%s"',t,p[t]);i.push("}").blank()}const u=e.method;let h=n.format('response = requests.request("%s", url',u);return l&&(h+=c?", json=payload":", data=payload"),d>0&&(h+=", headers=headers"),s&&(h+=", params=querystring"),h+=")",i.push(h).blank().push("print(response.text)"),i.join()},e.exports.info={key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"}},6064:(e,t,r)=>{"use strict";const n=r(9539),a=r(9544);e.exports=function(e,t){const r=new a;r.push("library(httr)").blank(),r.push('url <- "%s"',e.url).blank();const o=e.queryObj,i=Object.keys(o).length;if(delete e.queryObj.key,1===e.queryString.length)r.push('queryString <- list(%s = "%s")',Object.keys(o),Object.values(o).toString()).blank();else if(e.queryString.length>1){let e=1;r.push("queryString <- list(");for(const t in o)e++!=i-1?r.push(' %s = "%s",',t,o[t].toString()):r.push(' %s = "%s"',t,o[t].toString());r.push(")").blank()}const s=JSON.stringify(e.postData.text);if(s&&r.push("payload <- %s",s).blank(),e.postData.text||e.postData.jsonObj||e.postData.params)switch(e.postData.mimeType){case"application/x-www-form-urlencoded":r.push('encode <- "form"').blank();break;case"application/json":r.push('encode <- "json"').blank();break;case"multipart/form-data":r.push('encode <- "multipart"').blank();break;default:r.push('encode <- "raw"').blank()}const l=e.allHeaders;let c,p,d=Object.keys(l).length,u="";for(const e in l)"accept"===e.toLowerCase()?(p=', accept("'+l[e]+'")',d-=1):"cookie"===e.toLowerCase()?(c=", set_cookies(`"+l[e].replace(/;/g,'", `').replace(/` /g,"`").replace(/=/g,'` = "')+'")',d-=1):"content-type"!==e.toLowerCase()&&(u=u+e.replace("-","_")+" = '"+l[e],d>1&&(u+="', "));const h=e.method;let f=n.format('response <- VERB("%s", url',h);return s&&(f+=", body = payload"),""!==u&&(f+=", add_headers("+u+"')"),e.queryString.length&&(f+=", query = queryString"),f+=', content_type("'+e.postData.mimeType+'")',void 0!==p&&(f+=p),void 0!==c&&(f+=c),(e.postData.text||e.postData.jsonObj||e.postData.params)&&(f+=", encode = encode"),f+=")",r.push(f).blank().push('content(response, "text")'),r.join()},e.exports.info={key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"}},2817:(e,t,r)=>{"use strict";e.exports={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:r(6064)}},2682:(e,t,r)=>{"use strict";e.exports={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},native:r(5938)}},5938:(e,t,r)=>{"use strict";const n=r(9544);e.exports=function(e,t){const r=new n;r.push("require 'uri'").push("require 'net/http'"),"https:"===e.uriObj.protocol&&r.push("require 'openssl'"),r.blank();const a=e.method.toUpperCase(),o=a.charAt(0)+a.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].indexOf(a)<0&&r.push("class Net::HTTP::%s < Net::HTTPRequest",o).push(" METHOD = '%s'",a.toUpperCase()).push(" REQUEST_HAS_BODY = '%s'",e.postData.text?"true":"false").push(" RESPONSE_HAS_BODY = true").push("end").blank(),r.push('url = URI("%s")',e.fullUrl).blank().push("http = Net::HTTP.new(url.host, url.port)"),"https:"===e.uriObj.protocol&&r.push("http.use_ssl = true").push("http.verify_mode = OpenSSL::SSL::VERIFY_NONE"),r.blank().push("request = Net::HTTP::%s.new(url)",o);const i=Object.keys(e.allHeaders);return i.length&&i.forEach((function(t){r.push("request[\"%s\"] = '%s'",t,e.allHeaders[t])})),e.postData.text&&r.push("request.body = %s",JSON.stringify(e.postData.text)),r.blank().push("response = http.request(request)").push("puts response.read_body"),r.join()},e.exports.info={key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"}},9326:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(174),i=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,binary:!1,globOff:!1},t),s=new i(r.indent,!1!==r.indent?" \\\n"+r.indent:" "),l=r.short?"-g":"--globoff",c=r.short?"-X":"--request";let p=a.quote(e.fullUrl);if(s.push("curl %s %s",c,e.method),r.globOff&&(p=unescape(p),s.push(l)),s.push(n.format("%s%s",r.short?"":"--url ",p)),"HTTP/1.0"===e.httpVersion&&s.push(r.short?"-0":"--http1.0"),"multipart/form-data"===e.postData.mimeType){const t=o.getHeaderName(e.headersObj,"content-type"),r=e.headersObj[t];if(t&&r){const n=r.replace(/; boundary.+?(?=(;|$))/,"");e.headersObj[t]=n,e.allHeaders[t]=n}}switch(Object.keys(e.headersObj).sort().forEach((function(t){const o=n.format("%s: %s",t,e.headersObj[t]);s.push("%s %s",r.short?"-H":"--header",a.quote(o))})),e.allHeaders.cookie&&s.push("%s %s",r.short?"-b":"--cookie",a.quote(e.allHeaders.cookie)),e.postData.mimeType){case"multipart/form-data":e.postData.params.forEach((function(e){let t="";t=e.fileName?n.format("%s=@%s",e.name,e.fileName):n.format("%s=%s",e.name,e.value),s.push("%s %s",r.short?"-F":"--form",a.quote(t))}));break;case"application/x-www-form-urlencoded":e.postData.params?e.postData.params.forEach((function(e){s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(n.format("%s=%s",e.name,e.value)))})):s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text));break;default:e.postData.text&&s.push("%s %s",r.binary?"--data-binary":r.short?"-d":"--data",a.quote(e.postData.text))}return s.join()},e.exports.info={key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"}},9194:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");let s=!1;const l=[];if(r.headers&&l.push(r.short?"-h":"--headers"),r.body&&l.push(r.short?"-b":"--body"),r.verbose&&l.push(r.short?"-v":"--verbose"),r.print&&l.push(n.format("%s=%s",r.short?"-p":"--print",r.print)),r.verify&&l.push(n.format("--verify=%s",r.verify)),r.cert&&l.push(n.format("--cert=%s",r.cert)),r.pretty&&l.push(n.format("--pretty=%s",r.pretty)),r.style&&l.push(n.format("--style=%s",r.pretty)),r.timeout&&l.push(n.format("--timeout=%s",r.timeout)),r.queryParams){Object.keys(e.queryObj).forEach((function(t){const r=e.queryObj[t];Array.isArray(r)?r.forEach((function(e){i.push("%s==%s",t,a.quote(e))})):i.push("%s==%s",t,a.quote(r))}))}return Object.keys(e.allHeaders).sort().forEach((function(t){i.push("%s:%s",t,a.quote(e.allHeaders[t]))})),"application/x-www-form-urlencoded"===e.postData.mimeType?e.postData.params&&e.postData.params.length&&(l.push(r.short?"-f":"--form"),e.postData.params.forEach((function(e){i.push("%s=%s",e.name,a.quote(e.value))}))):s=!0,i.unshift("http %s%s %s",l.length?l.join(" ")+" ":"",e.method,a.quote(r.queryParams?e.url:e.fullUrl)),s&&e.postData.text&&i.unshift("echo %s | ",a.quote(e.postData.text)),i.join()},e.exports.info={key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"}},869:(e,t,r)=>{"use strict";e.exports={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},curl:r(9326),httpie:r(9194),wget:r(2616)}},2616:(e,t,r)=>{"use strict";const n=r(9539),a=r(9426),o=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",short:!1,verbose:!1},t),i=new o(r.indent,!1!==r.indent?" \\\n"+r.indent:" ");return r.verbose?i.push("wget %s",r.short?"-v":"--verbose"):i.push("wget %s",r.short?"-q":"--quiet"),i.push("--method %s",a.quote(e.method)),Object.keys(e.allHeaders).forEach((function(t){const r=n.format("%s: %s",t,e.allHeaders[t]);i.push("--header %s",a.quote(r))})),e.postData.text&&i.push("--body-data "+a.escape(a.quote(e.postData.text))),i.push(r.short?"-O":"--output-document").push("- %s",a.quote(e.fullUrl)),i.join()},e.exports.info={key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"}},3780:(e,t,r)=>{"use strict";const n=r(9539);function a(e,t){return Array.apply(null,new Array(e)).map(String.prototype.valueOf,t).join("")}function o(e,t,r,n){const o=a(n,r),i=a(n-1,r),s=t?",\n"+o:", ";return t?"[\n"+o+e.join(s)+"\n"+i+"]":"["+e.join(s)+"]"}e.exports={literalDeclaration:function(e,t,r){return n.format("let %s = %s",e,this.literalRepresentation(t,r))},literalRepresentation:function(e,t,r){switch(r=void 0===r?1:r+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let n=!1;return o(e.map(function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(n=Object.keys(e).length>1),this.literalRepresentation(e,t,r)}.bind(this)),n,t.indent,r)}case"[object Object]":{const a=[];for(const o in e)a.push(n.format('"%s": %s',o,this.literalRepresentation(e[o],t,r)));return o(a,t.pretty&&a.length>1,t.indent,r)}case"[object Boolean]":return e.toString();default:return null==e?"":'"'+e.toString().replace(/"/g,'\\"')+'"'}}}},4484:(e,t,r)=>{"use strict";e.exports={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},nsurlsession:r(7606)}},7606:(e,t,r)=>{"use strict";const n=r(3780),a=r(9544);e.exports=function(e,t){const r=Object.assign({indent:" ",pretty:!0,timeout:"10"},t),o=new a(r.indent),i={hasHeaders:!1,hasBody:!1};if(o.push("import Foundation"),Object.keys(e.allHeaders).length&&(i.hasHeaders=!0,o.blank().push(n.literalDeclaration("headers",e.allHeaders,r))),e.postData.text||e.postData.jsonObj||e.postData.params)switch(i.hasBody=!0,e.postData.mimeType){case"application/x-www-form-urlencoded":o.blank().push('let postData = NSMutableData(data: "%s=%s".data(using: String.Encoding.utf8)!)',e.postData.params[0].name,e.postData.params[0].value);for(let t=1,r=e.postData.params.length;t Void in").push(1,"if (error != nil) {").push(2,"print(error)").push(1,"} else {").push(2,"let httpResponse = response as? HTTPURLResponse").push(2,"print(httpResponse)").push(1,"}").push("})").blank().push("dataTask.resume()"),o.join()},e.exports.info={key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"}},645:(e,t)=>{t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,l=(1<>1,p=-7,d=r?a-1:0,u=r?-1:1,h=e[t+d];for(d+=u,o=h&(1<<-p)-1,h>>=-p,p+=s;p>0;o=256*o+e[t+d],d+=u,p-=8);for(i=o&(1<<-p)-1,o>>=-p,p+=n;p>0;i=256*i+e[t+d],d+=u,p-=8);if(0===o)o=1-c;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),o-=c}return(h?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,l,c=8*o-a-1,p=(1<>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=p?(s=0,i=p):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[r+h]=255&s,h+=f,s/=256,a-=8);for(i=i<0;e[r+h]=255&i,h+=f,i/=256,c-=8);e[r+h-f]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),a=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=s?o:i},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},a((function(){throw 42}),null,t)}catch(e){e!==r&&(a=null)}else a=null;var o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var u=document.all;l.call(u)===l.call(document.all)&&(d=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,r)=>{"use strict";var n,a=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,s=r(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),a=r(4289),o=r(8611),i=r(9415),s=r(3194),l=n(i(),Number);a(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),a=r(9415);e.exports=function(){var e=a();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},4290:e=>{"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},7777:e=>{"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},5692:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=o("Object.prototype.toString"),s=r(6410)(),l=r(7296),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!l&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},3320:(e,t,r)=>{"use strict";var n=r(7990),a=r(3150);function o(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(1364),e.exports.Schema=r(7657),e.exports.FAILSAFE_SCHEMA=r(4795),e.exports.JSON_SCHEMA=r(5966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(6601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=a.dump,e.exports.YAMLException=r(8425),e.exports.types={binary:r(3531),float:r(5215),map:r(945),null:r(151),pairs:r(6879),set:r(4982),timestamp:r(2156),bool:r(8771),int:r(1518),merge:r(7452),omap:r(1605),seq:r(6451),str:r(48)},e.exports.safeLoad=o("safeLoad","load"),e.exports.safeLoadAll=o("safeLoadAll","loadAll"),e.exports.safeDump=o("safeDump","dump")},8347:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r{"use strict";var n=r(8347),a=r(8425),o=r(6601),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l=65279,c=9,p=10,d=13,u=32,h=33,f=34,m=35,g=37,y=38,v=39,b=42,x=44,w=45,$=58,S=61,E=62,k=63,A=64,_=91,O=93,P=96,T=123,j=124,C=125,R={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function L(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new a("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}var M=1,N=2;function F(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,o,i,l,c;if(null===t)return{};for(r={},a=0,o=(n=Object.keys(t)).length;a=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function V(e){return/^\n* /.test(e)}var K=1,G=2,Y=3,J=4,X=5;function Q(e,t,r,n,a,o,i,s){var c,d,u=0,R=null,I=!1,D=!1,L=-1!==n,M=-1,F=H(d=Z(e,0))&&d!==l&&!B(d)&&d!==w&&d!==k&&d!==$&&d!==x&&d!==_&&d!==O&&d!==T&&d!==C&&d!==m&&d!==y&&d!==b&&d!==h&&d!==j&&d!==S&&d!==E&&d!==v&&d!==f&&d!==g&&d!==A&&d!==P&&function(e){return!B(e)&&e!==$}(Z(e,e.length-1));if(t||i)for(c=0;c=65536?c+=2:c++){if(!H(u=Z(e,c)))return X;F=F&&W(u,R,s),R=u}else{for(c=0;c=65536?c+=2:c++){if((u=Z(e,c))===p)I=!0,L&&(D=D||c-M-1>n&&" "!==e[M+1],M=c);else if(!H(u))return X;F=F&&W(u,R,s),R=u}D=D||L&&c-M-1>n&&" "!==e[M+1]}return I||D?r>9&&V(e)?X:i?o===N?X:G:D?J:Y:!F||i||a(e)?o===N?X:G:K}function ee(e,t,r,n,o){e.dump=function(){if(0===t.length)return e.quotingType===N?'""':"''";if(!e.noCompatMode&&(-1!==I.indexOf(t)||D.test(t)))return e.quotingType===N?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Q(t,l,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+te(t,e.indent)+re(U(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,ne(e.slice(0,s),t)),i="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var l=n[1],c=n[2];r=" "===c[0],o+=l+(i||r||""===c?"":"\n")+ne(c,t),i=r}return o}(t,s),i));case X:return'"'+function(e){for(var t,r="",n=0,a=0;a=65536?a+=2:a++)n=Z(e,a),!(t=R[n])&&H(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||L(n);return r}(t)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function te(e,t){var r=V(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function re(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ne(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,o=0,i=0,s=0,l="";r=a.exec(e);)(s=r.index)-o>t&&(n=i>o?i:s,l+="\n"+e.slice(o,n),o=n+1),i=s;return l+="\n",e.length-o>t&&i>o?l+=e.slice(o,i)+"\n"+e.slice(i+1):l+=e.slice(o),l.slice(1)}function ae(e,t,r,n){var a,o,i,s="",l=e.tag;for(a=0,o=r.length;a tag resolver accepts not "'+d+'" style');n=p.represent[d](t,d)}e.dump=n}return!0}return!1}function ie(e,t,r,n,o,s,l){e.tag=null,e.dump=r,oe(e,r,!1)||oe(e,r,!0);var c,d=i.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var h,f,m="[object Object]"===d||"[object Array]"===d;if(m&&(f=-1!==(h=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(m&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===d)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var o,i,s,l,c,d,u="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(o=0,i=f.length;o1024)&&(e.dump&&p===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,c&&(d+=q(e,t)),ie(e,t+1,l,!0,c)&&(e.dump&&p===e.dump.charCodeAt(0)?d+=":":d+=": ",u+=d+=e.dump));e.tag=h,e.dump=u||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i,s,l="",c=e.tag,p=Object.keys(r);for(n=0,a=p.length;n1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ie(e,t,i,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===d)n&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?ae(e,t-1,e.dump,o):ae(e,t,e.dump,o),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,r){var n,a,o,i="",s=e.tag;for(n=0,a=r.length;n",e.dump=c+" "+e.dump)}return!0}function se(e,t){var r,n,a=[],o=[];for(le(e,a,o),r=0,n=o.length;r{"use strict";function t(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},7990:(e,t,r)=>{"use strict";var n=r(8347),a=r(8425),o=r(192),i=r(6601),s=Object.prototype.hasOwnProperty,l=1,c=2,p=3,d=4,u=1,h=2,f=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function w(e){return 10===e||13===e}function $(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function E(e){return 44===e||91===e||93===e||123===e||125===e}function k(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),P=new Array(256),T=0;T<256;T++)O[T]=A(T)?1:0,P[T]=A(T);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function C(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=o(r),new a(t,r)}function R(e,t){throw C(e,t)}function I(e,t){e.onWarning&&e.onWarning.call(null,C(e,t))}var D={YAML:function(e,t,r){var n,a,o;null!==e.version&&R(e,"duplication of %YAML directive"),1!==r.length&&R(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&R(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),1!==a&&R(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&I(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&R(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],v.test(n)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&R(e,'there is a previously declared suffix for "'+n+'" tag handle'),b.test(a)||R(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){R(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function L(e,t,r,n){var a,o,i,s;if(t1&&(e.result+=n.repeat("\n",t-1))}function H(e,t){var r,n,a=e.tag,o=e.anchor,i=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),45===n)&&S(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Z(e,t,p,!1,!0),i.push(e.result),U(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)R(e,"bad indentation of a sequence entry");else if(e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt?j=1:e.lineIndent===t?j=0:e.lineIndentt)&&(b&&(i=e.line,s=e.lineStart,l=e.position),Z(e,t,d,!0,a)&&(b?y=e.result:v=e.result),b||(N(e,f,m,g,y,v,i,s,l),g=y=v=null),U(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==p)R(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?R(e,"repeat of an indentation width identifier"):(d=t+o-1,p=!0)}if($(i)){do{i=e.input.charCodeAt(++e.position)}while($(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!w(i)&&0!==i)}for(;0!==i;){for(F(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!p||e.lineIndentd&&(d=e.lineIndent),w(i))m++;else{if(e.lineIndent0){for(a=i,o=0;a>0;a--)(i=k(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+i:R(e,"expected hexadecimal character");e.result+=_(o),e.position++}else R(e,"unknown escape sequence");r=n=e.position}else w(s)?(L(e,r,n,!0),B(e,U(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}(e,A)?I=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!E(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&R(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),s.call(e.anchorMap,r)||R(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],U(e,!0,-1),!0}(e)?function(e,t,r){var n,a,o,i,s,l,c,p,d=e.kind,u=e.result;if(S(p=e.input.charCodeAt(e.position))||E(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(S(n=e.input.charCodeAt(e.position+1))||r&&E(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,i=!1;0!==p;){if(58===p){if(S(n=e.input.charCodeAt(e.position+1))||r&&E(n))break}else if(35===p){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&E(p))break;if(w(p)){if(s=e.line,l=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}i&&(L(e,a,o,!1),B(e,e.line-s),a=o=e.position,i=!1),$(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return L(e,a,o,!1),!!e.result||(e.kind=d,e.result=u,!1)}(e,A,l===r)&&(I=!0,null===e.tag&&(e.tag="?")):(I=!0,null===e.tag&&null===e.anchor||R(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===j&&(I=g&&H(e,T))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&R(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),y=0,v=e.implicitTypes.length;y"),null!==e.result&&x.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}function V(e){var t,r,n,a,o=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(U(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(i=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&R(e,"directive name must not be less than one character in length");0!==a;){for(;$(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!w(a));break}if(w(a))break;for(t=e.position;0!==a&&!S(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&F(e),s.call(D,r)?D[r](e,r,n):I(e,'unknown document directive "'+r+'"')}U(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,U(e,!0,-1)):i&&R(e,"directives end mark is expected"),Z(e,e.lineIndent-1,d,!1,!0),U(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(o,e.position))&&I(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,U(e,!0,-1)):e.position{"use strict";var n=r(8425),a=r(1364);function o(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function i(e){return this.extend(e)}i.prototype.extend=function(e){var t=[],r=[];if(e instanceof a)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof a))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(i.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=o(s,"implicit"),s.compiledExplicit=o(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";e.exports=r(5966)},6601:(e,t,r)=>{"use strict";e.exports=r(9471).extend({implicit:[r(2156),r(7452)],explicit:[r(3531),r(1605),r(6879),r(4982)]})},4795:(e,t,r)=>{"use strict";var n=r(7657);e.exports=new n({explicit:[r(48),r(6451),r(945)]})},5966:(e,t,r)=>{"use strict";e.exports=r(4795).extend({implicit:[r(151),r(8771),r(1518),r(5215)]})},192:(e,t,r)=>{"use strict";var n=r(8347);function a(e,t,r,n,a){var o="",i="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(i=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function o(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;r=i.exec(e.buffer);)l.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);var p,d,u="",h=Math.min(e.line+t.linesAfter,l.length).toString().length,f=t.maxLength-(t.indent+h+3);for(p=1;p<=t.linesBefore&&!(c-p<0);p++)d=a(e.buffer,s[c-p],l[c-p],e.position-(s[c]-s[c-p]),f),u=n.repeat(" ",t.indent)+o((e.line-p+1).toString(),h)+" | "+d.str+"\n"+u;for(d=a(e.buffer,s[c],l[c],e.position,f),u+=n.repeat(" ",t.indent)+o((e.line+1).toString(),h)+" | "+d.str+"\n",u+=n.repeat("-",t.indent+h+3+d.pos)+"^\n",p=1;p<=t.linesAfter&&!(c+p>=l.length);p++)d=a(e.buffer,s[c+p],l[c+p],e.position-(s[c]-s[c+p]),f),u+=n.repeat(" ",t.indent)+o((e.line+p+1).toString(),h)+" | "+d.str+"\n";return u.replace(/\n$/,"")}},1364:(e,t,r)=>{"use strict";var n=r(8425),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===a.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){i[String(t)]=e}))})),i),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3531:(e,t,r)=>{"use strict";var n=r(1364),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length,i=a;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=a,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(255&s)),s=s<<6|i.indexOf(n.charAt(t));return 0===(r=o%4*6)?(l.push(s>>16&255),l.push(s>>8&255),l.push(255&s)):18===r?(l.push(s>>10&255),l.push(s>>2&255)):12===r&&l.push(s>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length,s=a;for(t=0;t>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]),o=(o<<8)+e[t];return 0===(r=i%3)?(n+=s[o>>18&63],n+=s[o>>12&63],n+=s[o>>6&63],n+=s[63&o]):2===r?(n+=s[o>>10&63],n+=s[o>>4&63],n+=s[o<<2&63],n+=s[64]):1===r&&(n+=s[o>>2&63],n+=s[o<<4&63],n+=s[64],n+=s[64]),n}})},8771:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5215:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364),o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var i=/^[-+]?[0-9]+e/;e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},1518:(e,t,r)=>{"use strict";var n=r(8347),a=r(1364);function o(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}e.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,s=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},945:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},7452:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},151:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},1605:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,s,l=[],c=e;for(t=0,r=c.length;t{"use strict";var n=r(1364),a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},4982:(e,t,r)=>{"use strict";var n=r(1364),a=Object.prototype.hasOwnProperty;e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(a.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},48:(e,t,r)=>{"use strict";var n=r(1364);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},2156:(e,t,r)=>{"use strict";var n=r(1364),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==a.exec(e)||null!==o.exec(e))},construct:function(e){var t,r,n,i,s,l,c,p,d=0,u=null;if(null===(t=a.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],l=+t[5],c=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),p=new Date(Date.UTC(r,n,i,s,l,c,d)),u&&p.setTime(p.getTime()-u),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},9461:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,a,o,i,s,l,c,p,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in n(o,i,s,l,c,p,d),o){var h=o[u];if(Array.isArray(h)){if(u in t.arrayKeywords)for(var f=0;f{var n="__lodash_hash_undefined__",a=1/0,o="[object Function]",i="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=f||m||Function("return this")();var y,v=Array.prototype,b=Function.prototype,x=Object.prototype,w=g["__core-js_shared__"],$=(y=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",S=b.toString,E=x.hasOwnProperty,k=x.toString,A=RegExp("^"+S.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=g.Symbol,O=v.splice,P=U(g,"Map"),T=U(Object,"create"),j=_?_.prototype:void 0,C=j?j.toString:void 0;function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=L(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new R,map:new(P||I),string:new R}},D.prototype.delete=function(e){return F(this,e).delete(e)},D.prototype.get=function(e){return F(this,e).get(e)},D.prototype.has=function(e){return F(this,e).has(e)},D.prototype.set=function(e,t){return F(this,e).set(e,t),this};var q=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Z(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var r=[];return p.test(e)&&r.push(""),e.replace(d,(function(e,t,n,a){r.push(n?a.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||Z(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(H.Cache||D),r}H.Cache=D;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Z(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==s}e.exports=function(e,t,r){var n=null==e?void 0:M(e,t);return void 0===n?r:n}},2307:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",a=1,o=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",d="[object Date]",u="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",v="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",$="[object Set]",S="[object String]",E="[object Symbol]",k="[object Undefined]",A="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",P=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[l]=j[_]=j[p]=j[O]=j[d]=j[u]=j[h]=j[m]=j[g]=j[v]=j[w]=j[$]=j[S]=j[A]=!1;var C="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,I=C||R||Function("return this")(),D=t&&!t.nodeType&&t,L=D&&e&&!e.nodeType&&e,M=L&&L.exports===D,N=M&&C.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function q(e,t){for(var r=-1,n=null==e?0:e.length;++rc))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var u=-1,h=!0,f=r&o?new _e:void 0;for(s.set(e,t),s.set(t,e);++u-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(ue||ke),string:new Ee}},Ae.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Ne(this,e).get(e)},Ae.prototype.has=function(e){return Ne(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Ne(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,n),this},_e.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new ke,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!ue||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ae(n)}return r.set(e,t),this.size=r.size,this};var Ue=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Xe=U?function(e){return function(t){return e(t)}}(U):function(e){return Je(e)&&Ge(e.length)&&!!j[je(e)]};function Qe(e){return null!=(t=e)&&Ge(t.length)&&!Ke(t)?Pe(e):De(e);var t}e.exports=function(e,t){return Re(e,t)}},2508:(e,t,r)=>{var n=r(4155),a=r(2830).Stream;e.exports=function(e,t){var r=new a,o=this,i=0,s=0,l=!1,c=!1,p=!1,d=0,u=!1;this.opts=t||{};var h=this.opts.failures?"failure":"error",f={};function m(e,t){var n=d+1;if(t===n?(void 0!==e&&r.emit.apply(r,["data",e]),d++,n++):f[t]=e,f.hasOwnProperty(n)){var a=f[n];return delete f[n],m(a,n)}s++,i===s&&(c&&(c=!1,r.emit("drain")),l&&y())}function g(e,t,n){p||(u=!0,e&&!o.opts.failures||m(t,n),e&&r.emit.apply(r,[h,e]),u=!1)}function y(e){if(l=!0,r.writable=!1,void 0!==e)return m(e,i);i==s&&(r.readable=!1,r.emit("end"),r.destroy())}return r.writable=!0,r.readable=!0,r.write=function(t){if(l)throw new Error("map stream is not writable");u=!1,i++;try{var r=(n=t,a=i,o=g,e.call(null,n,(function(e,t){o(e,t,a)})));return!(c=!1===r)}catch(e){if(u)throw e;return g(e),!c}var n,a,o},r.end=function(e){l||y()},r.destroy=function(){l=p=!0,r.writable=r.readable=c=!1,n.nextTick((function(){r.emit("close")}))},r.pause=function(){c=!0},r.resume=function(){c=!1},r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),a=r(5559),o=r(4244),i=r(5624),s=r(2281),l=a(i(),Object);n(l,{getPolyfill:i,implementation:o,shim:s}),e.exports=l},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),a=r(4289);e.exports=function(){var e=n();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=r(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=i(e),s=t&&"[object String]"===o.call(e),u=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!a.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var n=Array.prototype.slice,a=r(1414),o=Object.keys,i=o?function(e){return o(e)}:r(8987),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return a(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7549:(e,t,r)=>{e.exports=r(6547)},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},8325:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof o)){var k,A=1;if(v){if(!(k=i(w,S,e,y))||k.index>=e.length)break;var _=k.index,O=k.index+k[0].length,P=S;for(P+=$.value.length;_>=P;)P+=($=$.next).value.length;if(S=P-=$.value.length,$.value instanceof o)continue;for(var T=$;T!==t.tail&&(Pd.reach&&(d.reach=I);var D=$.prev;if(C&&(D=c(t,D,C),S+=C.length),p(t,D,A),$=c(t,D,new o(u,g?a.tokenize(j,g):j,b,j)),R&&c(t,$,R),A>1){var L={cause:u+","+f,reach:I};s(e,t,r,$.prev,S,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function p(e,t,r){for(var n=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,o=r.code,i=r.immediateClose;e.postMessage(a.highlight(o,a.languages[n],n)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==r.g&&(r.g.Prism=n)},9016:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,n){return RegExp(t(e,r),n||"")}function n(e,t){for(var r=0;r>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(o),p=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),u=l(a+" "+o+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=n(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,u,m]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,$,p.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=k+"|"+E,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var C=/:[^}\r\n]+/.source,R=n(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,C]),D=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,C]);function M(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,C]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:M(I,R)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:M(L,D)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},5251:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},7046:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},57:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,n=e.languages,a={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var s in a)if(a[s]){r=r||{};var l=o[s]?i(s):s;r[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},2503:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},9980:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,n,a,o){if(r.language===n){var i=r.tokenStack=[];r.code=r.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==r.code.indexOf(a=t(n,s));)++s;return i[s]=e,a})),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,n){if(r.language===n&&r.tokenStack){r.grammar=e.languages[n];var a=0,o=Object.keys(r.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var p=o[a],d=r.tokenStack[p],u="string"==typeof c?c:c.content,h=t(n,p),f=u.indexOf(h);if(f>-1){++a;var m=u.substring(0,f),g=new e.Token(n,e.tokenize(d,r.grammar),"language-"+n,d),y=u.substring(f+h.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),y&&v.push.apply(v,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&i(c.content)}return s}(r.tokens)}}}})}(Prism)},4335:()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^$/i;var n={"included-cdata":{pattern://i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9945:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:a,punctuation:o};var i={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:i}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:i}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},366:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},9385:()=>{!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)},3358:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},5712:()=>{!function(){if("undefined"!=typeof Prism){var e,t,r="";Prism.plugins.customClass={add:function(t){e=t},map:function(e){t="function"==typeof e?e:function(t){return e[t]||t}},prefix:function(e){r=e||""},apply:n},Prism.hooks.add("wrap",(function(a){if(e){var o=e({content:a.content,type:a.type,language:a.language});Array.isArray(o)?a.classes.push.apply(a.classes,o):o&&a.classes.push(o)}(t||r)&&(a.classes=a.classes.map((function(e){return n(e,a.language)})))}))}function n(e,n){return r+(t?t(e,n):e)}}()},4155:e=>{var t,r,n=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],c=!1,p=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):p=-1,l.length&&u())}function u(){if(!c){var e=i(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++p1)for(var r=1;r{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(p=f.substr(0,m),d=f.substr(m+1)):(p=f,d=""),u=decodeURIComponent(p),h=decodeURIComponent(d),t(o,u)?Array.isArray(o[u])?o[u].push(h):o[u]=[o[u],h]:o[u]=h}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,a){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[a]))})).join(r):a?encodeURIComponent(t(a))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},4281:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var a,o,i,s;if("string"==typeof t&&(o="not ",t.substr(!i||i<0?0:+i,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,r)=>{"use strict";var n=r(4155),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(9481),i=r(4229);r(5717)(p,o);for(var s=a(i.prototype),l=0;l{"use strict";e.exports=a;var n=r(4605);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(5717)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n,a=r(4155);e.exports=k,k.ReadableState=E;r(7187).EventEmitter;var o=function(e,t){return e.listeners(t).length},i=r(222),s=r(8764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,p=r(4616);c=p&&p.debuglog?p.debuglog("stream"):function(){};var d,u,h,f=r(7327),m=r(1195),g=r(2457).getHighWaterMark,y=r(4281).q,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,x=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(k,i);var $=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,a){n=n||r(6753),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",a),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(6753),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var o,i=e._readableState;if(null===t)i.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,i);else if(a||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(i,t)),o)$(e,o);else if(i.objectMode||t&&t.length>0)if("string"==typeof t||i.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)i.endEmitted?$(e,new w):_(e,i,t,!0);else if(i.ended)$(e,new b);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):C(e,i)):_(e,i,t,!1)}else n||(i.reading=!1,C(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(j,e))}function j(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,M(e)}function C(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function L(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){$(this,new x("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==a.stdout&&e!==a.stderr?l:g;function s(t,a){c("onunpipe"),t===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",u),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){c("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",s);var p=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",p);var d=!1;function u(t){c("ondata");var a=e.write(t);c("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!d&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===o(e,"error")&&$(e,t)}function f(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?T(this):n.reading||a.nextTick(D,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(I,this),r},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(I,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(L,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o{"use strict";e.exports=p;var n=r(4281).q,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(6753);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";var n,a=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=E;var i={deprecate:r(4927)},s=r(222),l=r(8764).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,d=r(1195),u=r(2457).getHighWaterMark,h=r(4281).q,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,x=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,$=d.errorOrDestroy;function S(){}function E(e,t,i){n=n||r(6753),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(a.nextTick(o,n),a.nextTick(j,e,t),e._writableState.errorEmitted=!0,$(e,n)):(o(n),e._writableState.errorEmitted=!0,$(e,n),j(e,t))}(e,r,n,t,o);else{var i=P(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?a.nextTick(_,e,r,i,o):_(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(n=n||r(6753));if(!t&&!p.call(k,this))return new k(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,a,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,p=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,p,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===k&&(e&&e._writableState instanceof E)}})):p=function(e){return e instanceof this},k.prototype.pipe=function(){$(this,new y)},k.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,s=!o.objectMode&&(n=e,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new x;$(e,r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||($(e,o),a.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,a,o){if(!r){var i=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,a);n!==i&&(r=!0,a="buffer",n=i)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,r)=>{"use strict";var n,a=r(4155);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(8610),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),p=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){a.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){a.nextTick((function(){e[c]?r(e[c]):t(f(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[p]?r(f(void 0,!0)):t[u](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[u])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,p,{value:e._readableState.endEmitted,writable:!0}),o(t,u,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[p]=!0})),e.on("readable",g.bind(null,r)),r}},7327:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,a=l.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=a,n=i,l.prototype.copy.call(t,r,n),i+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,o),0==(e-=o)){o===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return c(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1195:(e,t,r)=>{"use strict";var n=r(4155);function a(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,r)=>{"use strict";var n;var a=r(4281).q,o=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a0,(function(e){p||(p=e),e&&u.forEach(l),o||(u.forEach(l),d(p))}))}));return t.reduce(c)}},2457:(e,t,r)=>{"use strict";var n=r(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,a){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},222:(e,t,r)=>{e.exports=r(7187).EventEmitter},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725),t.finished=r(8610),t.pipeline=r(9946)},6464:e=>{"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var a=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=a)return r.substr(0,a);for(;a>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,a)}},9509:(e,t,r)=>{var n=r(8764),a=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(a.prototype),o(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},4563:(e,t,r)=>{var n=r(6547),a=r(2553).s;e.exports=function(e,t,r){var o=new a,i="",s=r&&r.maxLength;"function"==typeof e&&(t=e,e=null);e||(e=/\r?\n/);function l(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}void 0!==r&&e.queue(r)}else e.queue(r)}function c(t,r){var n=((null!=i?i:"")+r).split(e);i=n.pop(),s&&i.length>s&&t.emit("error",new Error("maximum buffer reached"));for(var a=0;a{e.exports=a;var n=r(7187).EventEmitter;function a(){n.call(this)}r(5717)(a,n),a.Readable=r(9481),a.Writable=r(4229),a.Duplex=r(6753),a.Transform=r(4605),a.PassThrough=r(2725),a.finished=r(8610),a.pipeline=r(9946),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(p(),0===n.listenerCount(this,"error"))throw e}function p(){r.removeListener("data",a),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",p),r.removeListener("close",p),e.removeListener("close",p)}return r.on("error",c),e.on("error",c),r.on("end",p),r.on("close",p),e.on("close",p),e.emit("pipe",r),e}},1815:(e,t,r)=>{var n=r(5122);e.exports=function(){var e=[].slice.call(arguments),t=e[0],r=e[e.length-1],a=n(t,r);if(1==e.length)return e[0];if(!e.length)throw new Error("connect called with empty args");function o(){var e=[].slice.call(arguments);e.unshift("error"),a.emit.apply(a,e)}!function e(t){t.length<2||(t[0].pipe(t[1]),e(t.slice(1)))}(e);for(var i=1;i{var n=r(1989),a=r(5676),o=r(7529),i=r(584),s=r(8575),l=t;l.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var a=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||a,l=e.hostname||e.host,c=e.port,p=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?i+"//"+l:"")+(c?":"+c:"")+p,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=a.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=i,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(e,t,r)=>{var n;function a(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=a();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(r.g.fetch)&&i(r.g.ReadableStream),t.writableStream=i(r.g.WritableStream),t.abortController=i(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!a()&&i(a().overrideMimeType),n=null},1989:(e,t,r)=>{var n=r(8764).Buffer,a=r(4155),o=r(8725),i=r(5717),s=r(5676),l=r(8473),c=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var a=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)a=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,a),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(d,l.Writable),d.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===u.indexOf(r)&&(this._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var l=null;if(o.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new r.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(i)}catch(t){return void a.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,r){this._body.push(e),r()},d.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},d.prototype.abort=d.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},d.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},d.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},d.prototype.flushHeaders=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(e,t,r)=>{var n=r(4155),a=r(8764).Buffer,o=r(8725),i=r(5717),s=r(8473),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,i){var l=this;if(s.Readable.call(l),l._mode=r,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){n.nextTick((function(){l.emit("close")}))})),"fetch"===r){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){l._destroyed?r():l.push(a.from(e))?t():l._resumeFetch=t}))},close:function(){i(!0),l._destroyed||l.push(null)},abort:function(e){i(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}catch(e){}}var p=t.body.getReader();!function e(){p.read().then((function(t){l._destroyed||(i(t.done),t.done?l.push(null):(l.push(a.from(t.value)),e()))})).catch((function(e){i(!0),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var u=d.match(/;\s*charset=([^;])(;|$)/);u&&(l._charset=u[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=a.alloc(i.length),c=0;ct._pos&&(t.push(a.from(new Uint8Array(p.result.slice(t._pos)))),t._pos=p.result.byteLength)},p.onload=function(){e(!0),t.push(null)},p.readAsArrayBuffer(o)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},2553:(e,t,r)=>{"use strict";var n=r(9509).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=p,this.end=d,t=3;break;default:return this.write=u,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4110:(e,t,r)=>{"use strict";const n=r(7777),a=r(4290),o=r(6841).Z;e.exports=(e,t,r)=>{const i=[];return function e(t,r,s){let l;(r=r||{}).indent=r.indent||"\t",s=s||"",l=void 0===r.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:s,indent:s+r.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const c=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),"\n").replace(new RegExp(l.pad,"g"),s).replace(new RegExp(l.indent,"g"),s+r.indent)};if(-1!==i.indexOf(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||n(t))return String(t);if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";i.push(t);const n="["+l.newLine+t.map(((n,a)=>{const o=t.length-1===a?l.newLine:","+l.newLineOrSpace;let i=e(n,r,s+r.indent);return r.transform&&(i=r.transform(t,a,i)),l.indent+i+o})).join("")+l.pad+"]";return i.pop(),c(n)}if(a(t)){let n=Object.keys(t).concat(o(t));if(r.filter&&(n=n.filter((e=>r.filter(t,e)))),0===n.length)return"{}";i.push(t);const a="{"+l.newLine+n.map(((a,o)=>{const i=n.length-1===o?l.newLine:","+l.newLineOrSpace,c="symbol"==typeof a,p=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(a),d=c||p?a:e(a,r);let u=e(t[a],r,s+r.indent);return r.transform&&(u=r.transform(t,a,u)),l.indent+String(d)+": "+u+i})).join("")+l.pad+"}";return i.pop(),c(a)}return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),!1===r.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`}(e,t,r)}},9682:(e,t,r)=>{"use strict";e.exports=r(7325)},6547:(e,t,r)=>{var n=r(4155),a=r(2830);function o(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,i=!1,s=[],l=!1,c=new a;function p(){for(;s.length&&!c.paused;){var e=s.shift();if(null===e)return c.emit("end");c.emit("data",e)}}return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&!1===r.autoDestroy),c.write=function(t){return e.call(this,t),!c.paused},c.queue=c.push=function(e){return l||(null===e&&(l=!0),s.push(e),p()),c},c.on("end",(function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick((function(){c.destroy()}))})),c.end=function(e){if(!o)return o=!0,arguments.length&&c.write(e),c.writable=!1,t.call(c),!c.readable&&c.autoDestroy&&c.destroy(),c},c.destroy=function(){if(!i)return i=!0,o=!0,s.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),p(),c.paused||c.emit("drain"),c},c}e.exports=o,o.through=o},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=h-f,A=Math.floor,_=String.fromCharCode;function O(e){throw new RangeError(E[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function T(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function j(e){for(var t=[],r=0,n=e.length;r=55296&&a<=56319&&r>1,e+=A(e/t);e>k*m>>1;n+=h)e=A(e/k);return A(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,a=b,o=v,i=e.lastIndexOf(x);i<0&&(i=0);for(var s=0;s=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l=r&&O("invalid-input");var g=C(e.charCodeAt(l++));(g>=h||g>A((u-n)/p))&&O("overflow"),n+=g*p;var y=d<=o?f:d>=o+m?m:d-o;if(gA(u/w)&&O("overflow"),p*=w}var $=t.length+1;o=I(n-c,$,0==c),A(n/$)>u-a&&O("overflow"),a+=A(n/$),n%=$,t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=j(e)).length,n=b,a=0,o=v,i=!0,s=!1,l=void 0;try{for(var c,p=e[Symbol.iterator]();!(i=(c=p.next()).done);i=!0){var d=c.value;d<128&&t.push(_(d))}}catch(e){s=!0,l=e}finally{try{!i&&p.return&&p.return()}finally{if(s)throw l}}var g=t.length,y=g;for(g&&t.push(x);y=n&&TA((u-a)/C)&&O("overflow"),a+=(w-n)*C,n=w;var D=!0,L=!1,M=void 0;try{for(var N,F=e[Symbol.iterator]();!(D=(N=F.next()).done);D=!0){var U=N.value;if(Uu&&O("overflow"),U==n){for(var q=a,B=h;;B+=h){var H=B<=o?f:B>=o+m?m:B-o;if(q>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function B(e){for(var t="",r=0,n=e.length;r=194&&a<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&a)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(a>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function H(e,t){function r(e){var r=B(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,a)),e}function z(e){return e.replace(/^0*(.*)/,"$1")||"0"}function W(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=p(r,2)[1];return n?n.split(".").map(z).join("."):e}function Z(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=p(r,3),a=n[1],o=n[2];if(a){for(var i=a.toLowerCase().split("::").reverse(),s=p(i,2),l=s[0],c=s[1],d=c?c.split(":").map(z):[],u=l.split(":").map(z),h=t.IPV4ADDRESS.test(u[u.length-1]),f=h?7:8,m=u.length-f,g=Array(f),y=0;y1){var x=g.slice(0,v.index),w=g.slice(v.index+v.length);b=x.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?c:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(V);if(a){K?(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5])):(r.scheme=a[1]||void 0,r.userinfo=-1!==e.indexOf("@")?a[3]:void 0,r.host=-1!==e.indexOf("//")?a[4]:void 0,r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=-1!==e.indexOf("?")?a[7]:void 0,r.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),r.host&&(r.host=Z(W(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)H(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=F.toASCII(r.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}H(r,l)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?c:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(Z(W(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Q=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Q))e=e.replace(Q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?c:l,n=[],a=U[(t.scheme||e.scheme||"").toLowerCase()];if(a&&a.serialize&&a.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||a&&a.domainHost)try{e.host=t.iri?F.toUnicode(e.host):F.toASCII(e.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}H(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||a&&a.absolutePath||(i=te(i)),void 0===o&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=G(re(e,r),r),t=G(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ae(e,t,r){var n=i({scheme:"null"},r);return re(ne(G(e,n),G(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(G(e,t),t):"object"===n(e)&&(e=G(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(G(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(G(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?c.ESCAPE:l.ESCAPE,q)}function le(e,t){return e&&e.toString().replace(t&&t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ce={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var ue={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=p(r,2),a=n[0],o=n[1];e.path=a&&"/"!==a?a:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize},fe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),$e=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ee=new RegExp(t("[^]",me,xe),"g"),ke=Ee;function Ae(e){var t=B(e);return t.match(we)?t:e}var _e={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var a=!1,o={},i=r.query.split("&"),s=0,l=i.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,w=Math.floor,$=String.fromCharCode;function S(e){throw RangeError(b[e])}function E(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+E((e=e.replace(v,".")).split("."),t).join(".")}function A(e){for(var t,r,n=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=$((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=$(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?w(e/u):e>>1,e+=w(e/t);e>x*p>>1;n+=l)e=w(e/x);return w(n+(x+1)*e/(e+d))}function T(e){var t,r,n,a,o,i,d,u,g,y,v,b=[],x=e.length,$=0,E=f,k=h;for((r=e.lastIndexOf(m))<0&&(r=0),n=0;n=128&&S("not-basic"),b.push(e.charCodeAt(n));for(a=r>0?r+1:0;a=x&&S("invalid-input"),((u=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||u>w((s-$)/i))&&S("overflow"),$+=u*i,!(u<(g=d<=k?c:d>=k+p?p:d-k));d+=l)i>w(s/(y=l-g))&&S("overflow"),i*=y;k=P($-o,t=b.length+1,0==o),w($/t)>s-E&&S("overflow"),E+=w($/t),$%=t,b.splice($++,0,E)}return _(b)}function j(e){var t,r,n,a,o,i,d,u,g,y,v,b,x,E,k,_=[];for(b=(e=A(e)).length,t=f,r=0,o=h,i=0;i=t&&vw((s-r)/(x=n+1))&&S("overflow"),r+=(d-t)*x,t=d,i=0;is&&S("overflow"),v==t){for(u=r,g=l;!(u<(y=g<=o?c:g>=o+p?p:g-o));g+=l)k=u-y,E=l-y,_.push($(O(y+k%E,0))),u=w(k/E);_.push($(O(u,0))),o=P(r,x,n==a),r=0,++n}++r,++t}return _.join("")}i={version:"1.3.2",ucs2:{decode:A,encode:_},decode:T,encode:j,toASCII:function(e){return k(e,(function(e){return y.test(e)?"xn--"+j(e):e}))},toUnicode:function(e){return k(e,(function(e){return g.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),a=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),d=["%","/","?",";","#"].concat(p),u=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function b(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?R+="x":R+=C[I];if(!R.match(h)){var L=T.slice(0,_),M=T.slice(_+1),N=C.match(f);N&&(L.push(N[1]),M.unshift(N[2])),M.length&&(b="/"+M.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[$])for(_=0,j=p.length;_0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,_=0,O=S.length;O>=0;O--)"."===(k=S[O])?S.splice(O,1):".."===k?(S.splice(O,1),_++):_&&(S.splice(O,1),_--);if(!w&&!$)for(;_--;_)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var P,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(r.hostname=r.host=T?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function a(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(a("noDeprecation"))return e;var r=!1;return function(){if(!r){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),a=r(8662),o=r(6430),i=r(5692);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,p=s(Object.prototype.toString),d=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function b(e){return"[object WeakMap]"===p(e)}function x(e){return"[object WeakSet]"===p(e)}function w(e){return"[object ArrayBuffer]"===p(e)}function $(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===p(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=a,t.isTypedArray=i,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=$,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function _(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function O(e){return g(e,d)}function P(e){return g(e,u)}function T(e){return g(e,h)}function j(e){return l&&g(e,f)}function C(e){return c&&g(e,m)}t.isSharedArrayBuffer=_,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=O,t.isStringObject=P,t.isBooleanObject=T,t.isBigIntObject=j,t.isSymbolObject=C,t.isBoxedPrimitive=function(e){return O(e)||P(e)||T(e)||j(e)||C(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&($(e)||_(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),a=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var r=p.styles[t];return r?"["+p.colors[r][0]+"m"+e+"["+p.colors[r][1]+"m":e}function u(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return x(a)||(a=h(e,a,n)),a}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var i=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),k(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return f(r);if(0===i.length){if(A(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,p="",d=!1,u=["{","}"];(g(r)&&(d=!0,u=["[","]"]),A(r))&&(p=" [Function"+(r.name?": "+r.name:"")+"]");return $(r)&&(p=" "+RegExp.prototype.toString.call(r)),E(r)&&(p=" "+Date.prototype.toUTCString.call(r)),k(r)&&(p=" "+f(r)),0!==i.length||d&&0!=r.length?n<0?$(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=d?function(e,t,r,n,a){for(var o=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,p,u)):u[0]+p+u[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,o){var i,s,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(n,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(i)){if(o&&a.match(/^\d+$/))return s;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function x(e){return"string"==typeof e}function w(e){return void 0===e}function $(e){return S(e)&&"[object RegExp]"===_(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===_(e)}function k(e){return S(e)&&("[object Error]"===_(e)||e instanceof Error)}function A(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);a.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=$,t.types.isRegExp=$,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;a.log("%s - %s",(e=new Date,r=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),a=[],o=0;o{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=Ke(r(8469)),o=Ke(r(7536)),i=Ke(r(1359)),s=Ke(r(557)),l=Ke(r(2315)),c=Ke(r(9466)),p=Ke(r(661)),d=Ke(r(3868)),u=Ke(r(2492)),h=Ke(r(8999)),f=Ke(r(1028)),m=Ke(r(7795)),g=Ke(r(221)),y=Ke(r(2549)),v=Ke(r(3494)),b=Ke(r(9493)),x=Ke(r(7380)),w=Ve(r(9234)),$=Ve(r(4583)),S=Ke(r(4986)),E=Ke(r(1513)),k=Ke(r(4595)),A=Ke(r(3928)),_=Ke(r(7245)),O=Ke(r(5566)),P=Ke(r(4094)),T=Ke(r(7146)),j=Ke(r(2941)),C=Ke(r(9019)),R=Ke(r(3590)),I=Ke(r(6826)),D=Ke(r(2828)),L=Ke(r(937)),M=Ve(r(9146)),N=Ke(r(5218)),F=Ke(r(7117)),U=Ke(r(6090)),q=Ke(r(8335)),B=Ke(r(6298)),H=Ke(r(6454)),z=Ke(r(6648)),W=Ke(r(4339)),Z=Ve(r(8177)),V=Ke(r(2438)),K=Ke(r(368)),G=Ke(r(8874)),Y=Ke(r(4979)),J=Ke(r(1008)),X=Ke(r(4069)),Q=Ke(r(4958)),ee=Ke(r(3235)),te=Ke(r(7278)),re=Ke(r(9131)),ne=Ke(r(3315)),ae=Ke(r(1464)),oe=Ke(r(7228)),ie=Ke(r(1592)),se=Ke(r(682)),le=Ke(r(9396)),ce=Ke(r(5807)),pe=Ke(r(7148)),de=Ke(r(7612)),ue=Ke(r(9887)),he=Ke(r(3058)),fe=Ve(r(8355)),me=Ke(r(2129)),ge=Ke(r(94)),ye=Ke(r(8021)),ve=Ke(r(9211)),be=Ke(r(5061)),xe=Ke(r(4611)),we=Ke(r(1727)),$e=Ke(r(6776)),Se=Ke(r(9963)),Ee=Ke(r(2782)),ke=Ke(r(5008)),Ae=Ke(r(2689)),_e=Ke(r(8983)),Oe=Ke(r(2776)),Pe=Ke(r(4554)),Te=Ke(r(478)),je=Ve(r(8140)),Ce=Ke(r(4959)),Re=Ke(r(9778)),Ie=Ke(r(4790)),De=Ke(r(5152)),Le=Ke(r(4816)),Me=Ke(r(8035)),Ne=Ke(r(4714)),Fe=Ke(r(4928)),Ue=Ke(r(8346)),qe=Ke(r(2900)),Be=Ke(r(8220)),He=Ke(r(2786)),ze=Ke(r(7633)),We=Ke(r(5977));function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ve(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function Ke(e){return e&&e.__esModule?e:{default:e}}var Ge={version:"13.9.0",toDate:a.default,toFloat:o.default,toInt:i.default,toBoolean:s.default,equals:l.default,contains:c.default,matches:p.default,isEmail:d.default,isURL:u.default,isMACAddress:h.default,isIP:f.default,isIPRange:m.default,isFQDN:g.default,isBoolean:b.default,isIBAN:Z.default,isBIC:V.default,isAlpha:w.default,isAlphaLocales:w.locales,isAlphanumeric:$.default,isAlphanumericLocales:$.locales,isNumeric:S.default,isPassportNumber:E.default,isPort:k.default,isLowercase:A.default,isUppercase:_.default,isAscii:P.default,isFullWidth:T.default,isHalfWidth:j.default,isVariableWidth:C.default,isMultibyte:R.default,isSemVer:I.default,isSurrogatePair:D.default,isInt:L.default,isIMEI:O.default,isFloat:M.default,isFloatLocales:M.locales,isDecimal:N.default,isHexadecimal:F.default,isOctal:U.default,isDivisibleBy:q.default,isHexColor:B.default,isRgbColor:H.default,isHSL:z.default,isISRC:W.default,isMD5:K.default,isHash:G.default,isJWT:Y.default,isJSON:J.default,isEmpty:X.default,isLength:Q.default,isLocale:x.default,isByteLength:ee.default,isUUID:te.default,isMongoId:re.default,isAfter:ne.default,isBefore:ae.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:se.default,isIdentityCard:le.default,isEAN:ce.default,isISIN:pe.default,isISBN:de.default,isISSN:ue.default,isMobilePhone:fe.default,isMobilePhoneLocales:fe.locales,isPostalCode:je.default,isPostalCodeLocales:je.locales,isEthereumAddress:me.default,isCurrency:ge.default,isBtcAddress:ye.default,isISO6391:ve.default,isISO8601:be.default,isRFC3339:xe.default,isISO31661Alpha2:we.default,isISO31661Alpha3:$e.default,isISO4217:Se.default,isBase32:Ee.default,isBase58:ke.default,isBase64:Ae.default,isDataURI:_e.default,isMagnetURI:Oe.default,isMimeType:Pe.default,isLatLong:Te.default,ltrim:Ce.default,rtrim:Re.default,trim:Ie.default,escape:De.default,unescape:Le.default,stripLow:Me.default,whitelist:Ne.default,blacklist:Fe.default,isWhitelisted:Ue.default,normalizeEmail:qe.default,toString,isSlug:Be.default,isStrongPassword:ze.default,isTaxID:he.default,isDate:y.default,isTime:v.default,isLicensePlate:He.default,isVAT:We.default,ibanLocales:Z.locales};t.default=Ge,e.exports=t.default,e.exports.default=t.default},79:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.bengaliLocales=t.farsiLocales=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var r={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};t.alpha=r;var n={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};t.alphanumeric=n;var a={"en-US":".",ar:"٫"};t.decimal=a;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=o;for(var i,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,n.default)(e),(r=(0,o.default)(r,s)).ignoreCase)return e.toLowerCase().split((0,a.default)(t).toLowerCase()).length>r.minOccurrences;return e.split((0,a.default)(t)).length>r.minOccurrences};var n=i(r(5571)),a=i(r(1913)),o=i(r(4808));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},2315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e===t};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),n=(0,a.default)(r),o=(0,a.default)(e);return!!(o&&n&&o>n)};var n,a=(n=r(8469))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alpha)return o.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alpha);t.locales=i},4583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in o.alphanumeric)return o.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.alphanumeric);t.locales=i},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},2438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.slice(4,6).toUpperCase();if(!o.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(1727);var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},2782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,l)).crockford)return s.test(e);if(e.length%8==0&&i.test(e))return!0;return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,s=/^[A-HJKMNP-TV-Z0-9]+$/,l={crockford:!1};e.exports=t.default,e.exports.default=t.default},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),o.test(e))return!0;return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},2689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,a.default)(t,l);var r=e.length;if(t.urlSafe)return s.test(e);if(r%4!=0||i.test(e))return!1;var o=e.indexOf("=");return-1===o||o===r-1||o===r-2&&"="===e[r-1]};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,l={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,a.default)(t),o=(0,a.default)(e);return!!(o&&r&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if((0,a.default)(e),t.loose)return s.includes(e.toLowerCase());return i.includes(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={loose:!1},i=["true","false","1","0"],s=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},8021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},3235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===n||i<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var r=t.provider,o=e.replace(/[- ]+/g,"");if(r&&r.toLowerCase()in i){if(!i[r.toLowerCase()].test(o))return!1}else{if(r&&!(r.toLowerCase()in i))throw new Error("".concat(r," is not a valid credit card provider."));if(!s.test(o))return!1}return(0,a.default)(e)};var n=o(r(5571)),a=o(r(1592));function o(e){return e&&e.__esModule?e:{default:e}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},s=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",a="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",a].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t=(0,n.default)(t,i)).test(e)};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},8983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.split(",");if(t.length<2)return!1;var r=t.shift().trim().split(";"),n=r.shift();if("data:"!==n.slice(0,5))return!1;var l=n.slice(5);if(""!==l&&!o.test(l))return!1;for(var c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,a.default)({format:t},s):(0,a.default)(t,s);if("string"==typeof e&&(g=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g))){var r,n=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),i=t.strictMode?n:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),l=function(e,t){for(var r=[],n=Math.min(e.length,t.length),a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(l);try{for(p.s();!(r=p.n()).done;){var d=(f=r.value,m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(f,m)||o(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],h=d[1];if(u.length!==h.length)return!1;c[h.charAt(0)]=u}}catch(e){p.e(e)}finally{p.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var f,m;var g;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,l)).locale in i.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(4808)),a=s(r(5571)),o=s(r(8343)),i=r(79);function s(e){return e&&e.__esModule?e:{default:e}}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},8335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,a.default)(e)%parseInt(t,10)==0};var n=o(r(5571)),a=o(r(7536));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},5807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=Number(e.slice(-1));return s.test(e)&&t===(r=e,n=10-r.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===o||e===i?t%2==0?3:1:t%2==0?1:3}(r.length,t)})).reduce((function(e,t){return e+t}),0)%10,n<10?n:0);var r,n};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=8,i=14,s=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,a.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(p);if(r){var l=r[1];if(e=e.replace(l,"").replace(/(^<|>$)/g,""),l.endsWith(" ")&&(l=l.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(l))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var x=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var w=(x=x.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var $=w.split("."),S=0;S<$.length;S++)if(!u.test($[S]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(x,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.slice(1,-1);if(0===E.length||!(0,s.default)(E))return!1}}if('"'===x[0])return x=x.slice(1,x.length-1),t.allow_utf8_local_part?m.test(x):h.test(x);for(var k=t.allow_utf8_local_part?f:d,A=x.split("."),_=0;_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,a.default)(t,i)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,a.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=Object.keys(o.decimal);t.locales=i},7146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.fullWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},6648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return o.test(t);return i.test(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},2941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)},t.halfWidth=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},8874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-fA-F0-9]{".concat(o[t],"}$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},8177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in o&&o[r].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var i=Object.keys(o);t.locales=i},5566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o;(t=t||{}).allow_hyphens&&(r=i);if(!r.test(e))return!1;e=e.replace(/-/g,"");for(var n=0,s=2,l=0;l<14;l++){var c=e.substring(14-l-1,14-l),p=parseInt(c,10)*s;n+=p>=10?p%10+1:p,1===s?s+=1:s-=1}if((10-n%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},1028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,a.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return s.test(t);if("6"===r)return c.test(t);return!1};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(o,"[.]){3}").concat(o),s=new RegExp("^".concat(i,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(i,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(i,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(i,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(i,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(i,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(i,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(i,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},7795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var r=e.split("/");if(2!==r.length)return!1;if(!i.test(r[1]))return!1;if(r[1].length>1&&r[1].startsWith("0"))return!1;if(!(0,a.default)(r[0],t))return!1;var o=null;switch(String(t)){case"4":o=s;break;case"6":o=l;break;default:o=(0,a.default)(r[0],"6")?l:s}return r[1]<=o&&r[1]>=0};var n=o(r(5571)),a=o(r(1028));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,s=32,l=128;e.exports=t.default,e.exports.default=t.default},7612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t);var n=String((null==r?void 0:r.version)||r);if(!(null!=r&&r.version||r))return e(t,{version:10})||e(t,{version:13});var l=t.replace(/[\s-]+/g,""),c=0;if("10"===n){if(!o.test(l))return!1;for(var p=0;p{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),!o.test(e))return!1;for(var t=!0,r=0,n=e.length-2;n>=0;n--)if(e[n]>="A"&&e[n]<="Z")for(var i=e[n].charCodeAt(0)-55,s=0,l=[i%10,Math.trunc(i/10)];s=5?1+2*(c-5):2*c:c,t=!t}else{var p=e[n].charCodeAt(0)-"0".charCodeAt(0);r+=t?p>=5?1+2*(p-5):2*p:p,t=!t}var d=10*Math.trunc((r+9)/10)-r;return+e[e.length-1]===d};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},1727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CountryCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var i=o;t.CountryCodes=i},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},9963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e.toUpperCase())},t.CurrencyCodes=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var i=o;t.CurrencyCodes=i},9211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.has(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},5061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=t.strictSeparator?i.test(e):o.test(e);return r&&t.strict?s(e):r};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var a=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=a[1],i=a[2],s=a[3],l=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,p=new Date("".concat(o,"-").concat(l||"01","-").concat(c||"01"));return!i||!s||p.getUTCFullYear()===o&&p.getUTCMonth()+1===i&&p.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default},4339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},9887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),i=0,s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in i)return i[t](e);if("any"===t){for(var r in i){if(i.hasOwnProperty(r))if((0,i[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=o(r(5571)),a=o(r(937));function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,a.default)(e,{allow_leading_zeroes:!0})){var r=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0)%10,o=Number(e.charAt(e.length-1));if(0===r&&0===o||o===10-r)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var a=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][a%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var a=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){a=t[a][r[n%8][e]]})),0===a},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,a=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&a===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,a=0,o=0;o9?r-9:r;return a%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],a=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),a=new Date(t,r-1,n);return!(a>new Date)&&(a.getFullYear()===t&&a.getMonth()===r-1&&a.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return a[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=i(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var a=t[r];return a%10*9+Math.floor(a/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default},7228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(r in t)({}).hasOwnProperty.call(t,r)&&(o[r]=(0,a.default)(t[r]));return o.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(5571)),a=o(r(1913));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:i,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,l=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&l&&c};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},1008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,a.default)(t,s);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var o=JSON.parse(e);return r.includes(o)||!!o&&"object"===i(o)}catch(e){}return!1};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},4979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),r=t.length;if(r>3||r<2)return!1;return t.reduce((function(e,t){return e&&(0,a.default)(t,{urlSafe:!0})}),!0)};var n=o(r(5571)),a=o(r(2689));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,a.default)(t,p),!e.includes(","))return!1;var r=e.split(",");if(r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("("))return!1;if(t.checkDMS)return l.test(r[0])&&c.test(r[1]);return i.test(r[0])&&s.test(r[1])};var n=o(r(5571)),a=o(r(4808));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},4958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,a.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1]||0,n=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],l=e.length-i.length-s.length;return l>=r&&(void 0===n||l<=n)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}e.exports=t.default,e.exports.default=t.default},2786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o){if((0,o[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},7380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default},3928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);for(var t,r,n,o=e.replace(/[- ]+/g,""),i=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),r=parseInt(t,10),i+=n&&(r*=2)>=10?r%10+1:r,n=!n;return!(i%10!=0||!o)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){(0,a.default)(t),null!=r&&r.eui&&(r.eui=String(r.eui));if(null!=r&&r.no_colons||null!=r&&r.no_separators)return"48"===r.eui?i.test(t):"64"===r.eui?c.test(t):i.test(t)||c.test(t);if("48"===(null==r?void 0:r.eui))return o.test(t)||s.test(t);if("64"===(null==r?void 0:r.eui))return l.test(t)||p.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,l=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,c=/^([0-9a-fA-F]){16}$/,p=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(e),0!==e.indexOf("magnet:?"))return!1;return o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},4554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)||i.test(e)||s.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},8355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if((0,a.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(o.hasOwnProperty(t)&&o[t].test(e))return!0;return!1}));if(t in o)return o[t].test(e);if(!t||"any"===t){for(var n in o){if(o.hasOwnProperty(n))if(o[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};o["en-CA"]=o["en-US"],o["fr-CA"]=o["en-CA"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],o["zh-MO"]=o["en-MO"],o["ga-IE"]=o["en-IE"],o["fr-CH"]=o["de-CH"],o["it-CH"]=o["fr-CH"];var i=Object.keys(o);t.locales=i},9131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,a.default)(e)&&24===e.length};var n=o(r(5571)),a=o(r(7117));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},3590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?o.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(79);var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},6090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},1513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in o&&o[t].test(r)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},4595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var n,a=(n=r(937))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in c)return c[t].test(e);if("any"===t){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^\d{3}$/,i=/^\d{4}$/,s=/^\d{5}$/,l=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:i,DO:s,DZ:s,EE:s,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:s,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:o,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:s,MG:o,MX:s,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:l,RU:l,SA:s,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:l,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:s,TN:i,TW:/^\d{3}(\d{2})?$/,UA:s,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:s},p=Object.keys(c);t.locales=p},4611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),u.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,s=new RegExp("[-+]".concat(o.source,":").concat(i.source)),l=new RegExp("([zZ]|".concat(s.source,")")),c=new RegExp("".concat(o.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),p=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(c.source).concat(l.source)),u=new RegExp("^".concat(p.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},6454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,a.default)(e),!t)return o.test(e)||i.test(e);return o.test(e)||i.test(e)||s.test(e)||l.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,l=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},6826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),o.test(e)};var n=a(r(5571));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,a(r(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},7633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,a.default)(e);var r=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:s.test(e)?r.lowercaseCount+=t[e]:l.test(e)?r.numberCount+=t[e]:c.test(e)&&(r.symbolCount+=t[e])})),r}(e);if((t=(0,n.default)(t||{},p)).returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(r,t);return r.length>=t.minLength&&r.lowercaseCount>=t.minLowercase&&r.uppercaseCount>=t.minUppercase&&r.numberCount>=t.minNumbers&&r.symbolCount>=t.minSymbols};var n=o(r(4808)),a=o(r(5571));function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,s=/^[a-z]$/,l=/^[0-9]$/,c=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},2828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},3058:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,a.default)(e);var r=e.slice(0);if(t in h)return t in g&&(r=r.replace(g[t],"")),!!h[t].test(r)&&(!(t in f)||f[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var a=l(r(5571)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672)),i=l(r(2549));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var h={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var f={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,l=0;l50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var a=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===a))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,l=0;l58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=4,s=0;s<9;s++)a+=n[s]*o,1===(o-=1)&&(o=7);return 1!==(a%=11)&&(0===a?0===n[9]:n[9]===11-a)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,c(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=0,o=1,s=0;s<10;s++)a+=n[s]*o,10===(o+=1)&&(o=1);if(a%11==10){a=0,o=3;for(var l=0;l<10;l++)a+=n[l]*o,10===(o+=1)&&(o=1);if(a%11==10)return 0===n[10]}return a%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!u(t.slice(0,3)))return!1;if(!u(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,a=[6,7,9,10,12,13,14];n40&&(l-=40),l<10&&(l="0".concat(l));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(l);if(!(0,i.default)(c,"YY/MM/DD"))return!1;for(var p=0,d=1;d4&&(g+=2)}p+=g}return String.fromCharCode(65+p%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var a=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n80?(a="18".concat(a),o-=80):o>60?(a="22".concat(a),o-=60):o>40?(a="21".concat(a),o-=40):o>20?(a="20".concat(a),o-=20):a="19".concat(a),o<10&&(o="0".concat(o));var s="".concat(a,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,i.default)(s,"YYYY/MM/DD"))return!1;for(var l=0,c=1,p=0;p10?c=1:5===c&&(c+=2);return(l=10-l%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var a=1;a<=10;a++)t+=parseInt(e.substring(a-1,a),10)*(12-a);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,i=e.substring(0,o),s=e.substring(o),l=0,c=o-7,p=o;p>=1;p--)l+=i.charAt(o-p)*c,(c-=1)<2&&(c=9);var d=l%11<2?0:11-l%11;if(d!==parseInt(s.charAt(0),10))return!1;o+=1,i=e.substring(0,o),l=0,c=o-7;for(var u=o;u>=1;u--)l+=i.charAt(o-u)*c,(c-=1)<2&&(c=9);return(d=l%11<2?0:11-l%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),a=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),l=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(l).concat(r),10)>s?"".concat(l-1).concat(r):"".concat(l).concat(r);else if(r="".concat(l-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.luhnCheck(e.replace(/\W/,""))}};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var m=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":m,"de-DE":/[\/\\]/g,"fr-BE":m};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},3494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,a.default)(t,o),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,i.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,s,u,h,f,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(r=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}($=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}($,S)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}($,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1];if(""===x&&""===w)return!1}var $,S;h=g.join("@"),m=null,y=null;var E=h.match(p);E?(u="",y=E[1],m=E[2]||null):(u=(g=h.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(f=parseInt(m,10),!/^[0-9]+$/.test(m)||f<=0||f>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(u,t.host_whitelist);if(""===u&&!t.require_host)return!0;if(!((0,o.default)(u)||(0,a.default)(u,t)||y&&(0,o.default)(y,6)))return!1;if(u=u||y,t.host_blacklist&&d(u,t.host_blacklist))return!1;return!0};var n=s(r(5571)),a=s(r(221)),o=s(r(1028)),i=s(r(4808));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=o[[void 0,null].includes(t)?"all":t];return!!r&&r.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},5977:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(0,o.default)(t),t in l)return l[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var a,o=(a=r(5571))&&a.__esModule?a:{default:a},i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(3672));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-i.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=l},9019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&i.halfWidth.test(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n},o=r(7146),i=r(2941);e.exports=t.default,e.exports.default=t.default},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},2900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,a.default)(t,o);var r=e.split("@"),n=r.pop(),d=[r.join("@"),n];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,p)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(i.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(l.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var u=d[0].split("-");d[0]=u.length>1?u.slice(0,-1).join("-"):u[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else c.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var n,a=(n=r(4808))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],l=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},9778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var n=e.length-1;for(;/\s/.test(e.charAt(n));)n-=1;return e.slice(0,n+1)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(e,r)};var n=o(r(5571)),a=o(r(4928));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},8469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},7536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e)?parseFloat(e):NaN};var n,a=(n=r(9146))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},1359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,a.default)(e,t),t)};var n=o(r(9778)),a=o(r(4959));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},4816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},3672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,r=0;r=0;n--){if(r){var a=2*parseInt(e[n],10);t+=a>9?a.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):a}else t+=parseInt(e[n],10);r=!r}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},8343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default},4808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default},1913:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},4714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,a=(n=r(5571))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},6430:(e,t,r)=>{"use strict";var n=r(4029),a=r(3083),o=r(1924),i=r(7296),s=o("Object.prototype.toString"),l=r(6410)(),c="undefined"==typeof globalThis?r.g:globalThis,p=a(),d=o("String.prototype.slice"),u={},h=Object.getPrototypeOf;l&&i&&h&&n(p,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=i(r,Symbol.toStringTag);if(!n){var a=h(r);n=i(a,Symbol.toStringTag)}u[e]=n.get}}}));var f=r(5692);e.exports=function(e){return!!f(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(u,(function(r,n){if(!t)try{var a=r.call(e);a===n&&(t=a)}catch(e){}})),t}(e):d(s(e),8,-1))}},3131:(e,t,r)=>{"use strict";var n=r(6464),a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},i=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!a(e)&&!o(e)};function s(e){return a(e)?"ClosingTag":i(e)?"OpeningTag":o(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,a=t.textNodesOnSameLine,o=0,i=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:s(e)}}))).map((function(e,t,s){var l=e.value,c=e.type;"ClosingTag"===c&&o--;var p=n(r,o),d=p+l;if("OpeningTag"===c&&o++,a){var u=s[t-1],h=s[t-2];"ClosingTag"===c&&"Text"===u.type&&"OpeningTag"===h.type&&(d=""+p+h.value+u.value+l,i.push(t-2,t-1))}return d}));return i.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}},7529:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";e.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ENUM_CASE_MISMATCH:"Enum does not match case for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"}},7797:(e,t,r)=>{var n=r(8966),a={date:function(e){if("string"!=typeof e)return!0;var t=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(e);return null!==t&&!(t[2]<"01"||t[2]>"12"||t[3]<"01"||t[3]>"31")},"date-time":function(e){if("string"!=typeof e)return!0;var t=e.toLowerCase().split("t");if(!a.date(t[0]))return!1;var r=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(t[1]);return null!==r&&!(r[1]>"23"||r[2]>"59"||r[3]>"59")},email:function(e){return"string"!=typeof e||n.isEmail(e,{require_tld:!0})},hostname:function(e){if("string"!=typeof e)return!0;var t=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(e);if(t){if(e.length>255)return!1;for(var r=e.split("."),n=0;n63)return!1}return t},"host-name":function(e){return a.hostname.call(this,e)},ipv4:function(e){return"string"!=typeof e||n.isIP(e,4)},ipv6:function(e){return"string"!=typeof e||n.isIP(e,6)},regex:function(e){try{return RegExp(e),!0}catch(e){return!1}},uri:function(e){return this.options.strictUris?a["strict-uri"].apply(this,arguments):"string"!=typeof e||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(e)},"strict-uri":function(e){return"string"!=typeof e||n.isURL(e)}};e.exports=a},4706:(e,t,r)=>{"use strict";var n=r(7797),a=r(9454),o=r(9750),i=function(e,t){return e&&Array.isArray(e.includeErrors)&&e.includeErrors.length>0&&!t.some((function(t){return e.includeErrors.includes(t)}))},s={multipleOf:function(e,t,r){if(!i(this.validateOptions,["MULTIPLE_OF"])&&"number"==typeof r){var n=String(t.multipleOf),a=Math.pow(10,n.length-n.indexOf(".")-1);"integer"!==o.whatIs(r*a/(t.multipleOf*a))&&e.addError("MULTIPLE_OF",[r,t.multipleOf],null,t)}},maximum:function(e,t,r){i(this.validateOptions,["MAXIMUM","MAXIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMaximum?r>t.maximum&&e.addError("MAXIMUM",[r,t.maximum],null,t):r>=t.maximum&&e.addError("MAXIMUM_EXCLUSIVE",[r,t.maximum],null,t))},exclusiveMaximum:function(){},minimum:function(e,t,r){i(this.validateOptions,["MINIMUM","MINIMUM_EXCLUSIVE"])||"number"==typeof r&&(!0!==t.exclusiveMinimum?rt.maxLength&&e.addError("MAX_LENGTH",[r.length,t.maxLength],null,t)},minLength:function(e,t,r){i(this.validateOptions,["MIN_LENGTH"])||"string"==typeof r&&o.ucs2decode(r).lengtht.items.length&&e.addError("ARRAY_ADDITIONAL_ITEMS",null,null,t)},items:function(){},maxItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_LONG"])||Array.isArray(r)&&r.length>t.maxItems&&e.addError("ARRAY_LENGTH_LONG",[r.length,t.maxItems],null,t)},minItems:function(e,t,r){i(this.validateOptions,["ARRAY_LENGTH_SHORT"])||Array.isArray(r)&&r.lengtht.maxProperties&&e.addError("OBJECT_PROPERTIES_MAXIMUM",[n,t.maxProperties],null,t)}},minProperties:function(e,t,r){if(!i(this.validateOptions,["OBJECT_PROPERTIES_MINIMUM"])&&"object"===o.whatIs(r)){var n=Object.keys(r).length;n0){var h=this.options.assumeAdditional.length;if(h)for(;h--;){var f=s.indexOf(this.options.assumeAdditional[h]);-1!==f&&s.splice(f,1)}var m=s.length;if(m)for(;m--;)e.addError("OBJECT_ADDITIONAL_PROPERTIES",[s[m]],null,t)}}}},dependencies:function(e,r,n){if(!i(this.validateOptions,["OBJECT_DEPENDENCY_KEY"])&&"object"===o.whatIs(n))for(var a=Object.keys(r.dependencies),s=a.length;s--;){var l=a[s];if(n[l]){var c=r.dependencies[l];if("object"===o.whatIs(c))t.validate.call(this,e,c,n);else for(var p=c.length;p--;){var d=c[p];void 0===n[d]&&e.addError("OBJECT_DEPENDENCY_KEY",[d,l],null,r)}}}},enum:function(e,t,r){if(!i(this.validateOptions,["ENUM_CASE_MISMATCH","ENUM_MISMATCH"])){for(var n=!1,a=!1,s=t.enum.length;s--;){if(o.areEqual(r,t.enum[s])){n=!0;break}o.areEqual(r,t.enum[s]),a=!0}if(!1===n){var l=a&&this.options.enumCaseInsensitiveComparison?"ENUM_CASE_MISMATCH":"ENUM_MISMATCH";e.addError(l,[r],null,t)}}},type:function(e,t,r){if(!i(this.validateOptions,["INVALID_TYPE"])){var n=o.whatIs(r);"string"==typeof t.type?n===t.type||"integer"===n&&"number"===t.type||e.addError("INVALID_TYPE",[t.type,n],null,t):-1!==t.type.indexOf(n)||"integer"===n&&-1!==t.type.indexOf("number")||e.addError("INVALID_TYPE",[t.type,n],null,t)}},allOf:function(e,r,n){for(var a=r.allOf.length;a--;){var o=t.validate.call(this,e,r.allOf[a],n);if(this.options.breakOnFirstError&&!1===o)break}},anyOf:function(e,r,n){for(var o=[],i=!1,s=r.anyOf.length;s--&&!1===i;){var l=new a(e);o.push(l),i=t.validate.call(this,l,r.anyOf[s],n)}!1===i&&e.addError("ANY_OF_MISSING",void 0,o,r)},oneOf:function(e,r,n){for(var o=0,i=[],s=r.oneOf.length;s--;){var l=new a(e,{maxErrors:1});i.push(l),!0===t.validate.call(this,l,r.oneOf[s],n)&&o++}0===o?e.addError("ONE_OF_MISSING",void 0,i,r):o>1&&e.addError("ONE_OF_MULTIPLE",null,null,r)},not:function(e,r,n){var o=new a(e);!0===t.validate.call(this,o,r.not,n)&&e.addError("NOT_PASSED",null,null,r)},definitions:function(){},format:function(e,t,r){var a=n[t.format];if("function"==typeof a){if(i(this.validateOptions,["INVALID_FORMAT"]))return;if(2===a.length){var s=o.clone(e.path);e.addAsyncTask(a,[r],(function(n){if(!0!==n){var a=e.path;e.path=s,e.addError("INVALID_FORMAT",[t.format,r],null,t),e.path=a}}))}else!0!==a.call(this,r)&&e.addError("INVALID_FORMAT",[t.format,r],null,t)}else!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format],null,t)}},l=function(e,r,n){var a=n.length;if(Array.isArray(r.items))for(;a--;)a0;){if(!t.__$refResolved){e.addError("REF_UNRESOLVED",[t.$ref],null,t);break}if(t.__$refResolved===t)break;t=t.__$refResolved,a=Object.keys(t),p--}if(0===p)throw new Error("Circular dependency by $ref references!")}var d=o.whatIs(r);if(t.type&&(a.splice(a.indexOf("type"),1),s.type.call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError))return!1;for(var u=a.length;u--&&!(s[a[u]]&&(s[a[u]].call(this,e,t,r),e.errors.length&&this.options.breakOnFirstError)););return 0!==e.errors.length&&!1!==this.options.breakOnFirstError||("array"===d?l.call(this,e,t,r):"object"===d&&c.call(this,e,t,r)),"function"==typeof this.options.customValidator&&this.options.customValidator.call(this,e,t,r),i&&(e.rootSchema=void 0),0===e.errors.length}},2630:()=>{"function"!=typeof Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&(e==e&&e!==1/0&&e!==-1/0)})},9454:(e,t,r)=>{"use strict";var n=r(4155),a=r(9208),o=r(3970),i=r(9750);function s(e,t){this.parentReport=e instanceof s?e:void 0,this.options=e instanceof s?e.options:e||{},this.reportOptions=t||{},this.errors=[],this.path=[],this.asyncTasks=[],this.rootSchema=void 0,this.commonErrorMessage=void 0,this.json=void 0}s.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},s.prototype.addAsyncTask=function(e,t,r){this.asyncTasks.push([e,t,r])},s.prototype.getAncestor=function(e){if(this.parentReport)return this.parentReport.getSchemaId()===e?this.parentReport:this.parentReport.getAncestor(e)},s.prototype.processAsyncTasks=function(e,t){var r=e||2e3,a=this.asyncTasks.length,o=a,i=!1,s=this;function l(){n.nextTick((function(){var e=0===s.errors.length,r=e?null:s.errors;t(r,e)}))}function c(e){return function(t){i||(e(t),0==--a&&l())}}if(0===a||this.errors.length>0&&this.options.breakOnFirstError)l();else{for(;o--;){var p=this.asyncTasks[o];p[0].apply(null,p[1].concat(c(p[2])))}setTimeout((function(){a>0&&(i=!0,s.addError("ASYNC_TIMEOUT",[a,r]),t(s.errors,!1))}),r)}},s.prototype.getPath=function(e){var t=[];return this.parentReport&&(t=t.concat(this.parentReport.path)),t=t.concat(this.path),!0!==e&&(t="#/"+t.map((function(e){return e=e.toString(),i.isAbsoluteUri(e)?"uri("+e+")":e.replace(/\~/g,"~0").replace(/\//g,"~1")})).join("/")),t},s.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var e=[];for(this.parentReport&&(e=e.concat(this.parentReport.path)),e=e.concat(this.path);e.length>0;){var t=a(this.rootSchema,e);if(t&&t.id)return t.id;e.pop()}return this.rootSchema.id},s.prototype.hasError=function(e,t){for(var r=this.errors.length;r--;)if(this.errors[r].code===e){for(var n=!0,a=this.errors[r].params.length;a--;)this.errors[r].params[a]!==t[a]&&(n=!1);if(n)return n}return!1},s.prototype.addError=function(e,t,r,n){if(!e)throw new Error("No errorCode passed into addError()");this.addCustomError(e,o[e],t,r,n)},s.prototype.getJson=function(){for(var e=this;void 0===e.json;)if(void 0===(e=e.parentReport))return;return e.json},s.prototype.addCustomError=function(e,t,r,n,a){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!t)throw new Error("No errorMessage known for code "+e);for(var o=(r=r||[]).length;o--;){var s=i.whatIs(r[o]),l="object"===s||"null"===s?JSON.stringify(r[o]):r[o];t=t.replace("{"+o+"}",l)}var c={code:e,params:r,message:t,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(c[i.schemaSymbol]=a,c[i.jsonSymbol]=this.getJson(),a&&"string"==typeof a?c.description=a:a&&"object"==typeof a&&(a.title&&(c.title=a.title),a.description&&(c.description=a.description)),null!=n){for(Array.isArray(n)||(n=[n]),c.inner=[],o=n.length;o--;)for(var p=n[o],d=p.errors.length;d--;)c.inner.push(p.errors[d]);0===c.inner.length&&(c.inner=void 0)}this.errors.push(c)}},e.exports=s},7994:(e,t,r)=>{"use strict";var n=r(2307),a=r(9454),o=r(2765),i=r(2088),s=r(9750);function l(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function c(e,t){if("object"==typeof e&&null!==e){if(!t)return e;if(e.id&&(e.id===t||"#"===e.id[0]&&e.id.substring(1)===t))return e;var r,n;if(Array.isArray(e)){for(r=e.length;r--;)if(n=c(e[r],t))return n}else{var a=Object.keys(e);for(r=a.length;r--;){var o=a[r];if(0!==o.indexOf("__$")&&(n=c(e[o],t)))return n}}}}t.cacheSchemaByUri=function(e,t){var r=l(e);r&&(this.cache[r]=t)},t.removeFromCacheByUri=function(e){var t=l(e);t&&delete this.cache[t]},t.checkCacheForUri=function(e){var t=l(e);return!!t&&null!=this.cache[t]},t.getSchema=function(e,r){return"object"==typeof r&&(r=t.getSchemaByReference.call(this,e,r)),"string"==typeof r&&(r=t.getSchemaByUri.call(this,e,r)),r},t.getSchemaByReference=function(e,t){for(var r=this.referenceCache.length;r--;)if(n(this.referenceCache[r][0],t))return this.referenceCache[r][1];var a=s.cloneDeep(t);return this.referenceCache.push([t,a]),a},t.getSchemaByUri=function(e,t,r){var n,s=l(t),p=function(e){var t=e.indexOf("#");return-1===t?void 0:e.slice(t+1)}(t),d=s?this.cache[s]:r;if(d&&s&&d!==r){var u;e.path.push(s);var h=e.getAncestor(d.id);if(h)u=h;else if(u=new a(e),o.compileSchema.call(this,u,d)){var f=this.options;try{this.options=d.__$validationOptions||this.options,i.validateSchema.call(this,u,d)}finally{this.options=f}}var m=u.isValid();if(m||e.addError("REMOTE_NOT_VALID",[t],u),e.path.pop(),!m)return}if(d&&p)for(var g=p.split("/"),y=0,v=g.length;d&&y{"use strict";var n=r(9454),a=r(7994),o=r(9750);function i(e,t){if(o.isAbsoluteUri(t))return t;var r,n=e.join(""),a=o.isAbsoluteUri(n),i=o.isRelativeUri(n),s=o.isRelativeUri(t);a&&s?(r=n.match(/\/[^\/]*$/))&&(n=n.slice(0,r.index+1)):i&&s?n="":(r=n.match(/[^#/]+$/))&&(n=n.slice(0,r.index));var l=n+t;return l=l.replace(/##/,"#")}function s(e,t,r,n){if(t=t||[],r=r||[],n=n||[],"object"!=typeof e||null===e)return t;var a;if("string"==typeof e.id&&r.push(e.id),"string"==typeof e.$ref&&void 0===e.__$refResolved&&t.push({ref:i(r,e.$ref),key:"$ref",obj:e,path:n.slice(0)}),"string"==typeof e.$schema&&void 0===e.__$schemaResolved&&t.push({ref:i(r,e.$schema),key:"$schema",obj:e,path:n.slice(0)}),Array.isArray(e))for(a=e.length;a--;)n.push(a.toString()),s(e[a],t,r,n),n.pop();else{var o=Object.keys(e);for(a=o.length;a--;)0!==o[a].indexOf("__$")&&(n.push(o[a]),s(e[o[a]],t,r,n),n.pop())}return"string"==typeof e.id&&r.pop(),t}var l=function(e,r){for(var a=r.length,o=0;a--;){var i=new n(e);t.compileSchema.call(this,i,r[a])&&o++,e.errors=e.errors.concat(i.errors)}return o};function c(e,t){for(var r=e.length;r--;)if(e[r].id===t)return e[r];return null}var p=function(e,t){var r,n=0;do{for(var a=e.errors.length;a--;)"UNRESOLVABLE_REFERENCE"===e.errors[a].code&&e.errors.splice(a,1);for(r=n,n=l.call(this,e,t),a=t.length;a--;){var o=t[a];if(o.__$missingReferences){for(var i=o.__$missingReferences.length;i--;){var s=o.__$missingReferences[i],p=c(t,s.ref);p&&(s.obj["__"+s.key+"Resolved"]=p,o.__$missingReferences.splice(i,1))}0===o.__$missingReferences.length&&delete o.__$missingReferences}}}while(n!==t.length&&n!==r);return e.isValid()};t.compileSchema=function(e,r){if(e.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof r){var i=a.getSchemaByUri.call(this,e,r);if(!i)return e.addError("SCHEMA_NOT_REACHABLE",[r]),!1;r=i}if(Array.isArray(r))return p.call(this,e,r);if(r.__$compiled&&r.id&&!1===a.checkCacheForUri.call(this,r.id)&&(r.__$compiled=void 0),r.__$compiled)return!0;r.id&&"string"==typeof r.id&&a.cacheSchemaByUri.call(this,r.id,r);var l=!1;e.rootSchema||(e.rootSchema=r,l=!0);var c=e.isValid();delete r.__$missingReferences;for(var d=s.call(this,r),u=d.length;u--;){var h=d[u],f=a.getSchemaByUri.call(this,e,h.ref,r);if(!f){var m=this.getSchemaReader();if(m){var g=m(h.ref);if(g){g.id=h.ref;var y=new n(e);t.compileSchema.call(this,y,g)?f=a.getSchemaByUri.call(this,e,h.ref,r):e.errors=e.errors.concat(y.errors)}}}if(!f){var v=e.hasError("REMOTE_NOT_VALID",[h.ref]),b=o.isAbsoluteUri(h.ref),x=!1,w=!0===this.options.ignoreUnresolvableReferences;b&&(x=a.checkCacheForUri.call(this,h.ref)),v||w&&b||x||(Array.prototype.push.apply(e.path,h.path),e.addError("UNRESOLVABLE_REFERENCE",[h.ref]),e.path=e.path.slice(0,-h.path.length),c&&(r.__$missingReferences=r.__$missingReferences||[],r.__$missingReferences.push(h)))}h.obj["__"+h.key+"Resolved"]=f}var $=e.isValid();return $?r.__$compiled=!0:r.id&&"string"==typeof r.id&&a.removeFromCacheByUri.call(this,r.id),l&&(e.rootSchema=void 0),$}},2088:(e,t,r)=>{"use strict";var n=r(7797),a=r(4706),o=r(9454),i=r(9750),s={$ref:function(e,t){"string"!=typeof t.$ref&&e.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(e,t){"string"!=typeof t.$schema&&e.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(e,t){"number"!=typeof t.multipleOf?e.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):t.multipleOf<=0&&e.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(e,t){"number"!=typeof t.maximum&&e.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(e,t){"boolean"!=typeof t.exclusiveMaximum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===t.maximum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(e,t){"number"!=typeof t.minimum&&e.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(e,t){"boolean"!=typeof t.exclusiveMinimum?e.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===t.minimum&&e.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(e,t){"integer"!==i.whatIs(t.maxLength)?e.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):t.maxLength<0&&e.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(e,t){"integer"!==i.whatIs(t.minLength)?e.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):t.minLength<0&&e.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(e,t){if("string"!=typeof t.pattern)e.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(t.pattern)}catch(r){e.addError("KEYWORD_PATTERN",["pattern",t.pattern])}},additionalItems:function(e,r){var n=i.whatIs(r.additionalItems);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===n&&(e.path.push("additionalItems"),t.validateSchema.call(this,e,r.additionalItems),e.path.pop())},items:function(e,r){var n=i.whatIs(r.items);if("object"===n)e.path.push("items"),t.validateSchema.call(this,e,r.items),e.path.pop();else if("array"===n)for(var a=r.items.length;a--;)e.path.push("items"),e.path.push(a.toString()),t.validateSchema.call(this,e,r.items[a]),e.path.pop(),e.path.pop();else e.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);!0===this.options.forceAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===r.additionalItems&&Array.isArray(r.items)&&(r.additionalItems=!1)},maxItems:function(e,t){"number"!=typeof t.maxItems?e.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):t.maxItems<0&&e.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(e,t){"integer"!==i.whatIs(t.minItems)?e.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):t.minItems<0&&e.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(e,t){"boolean"!=typeof t.uniqueItems&&e.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(e,t){"integer"!==i.whatIs(t.maxProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):t.maxProperties<0&&e.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(e,t){"integer"!==i.whatIs(t.minProperties)?e.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):t.minProperties<0&&e.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(e,t){if("array"!==i.whatIs(t.required))e.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===t.required.length)e.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var r=t.required.length;r--;)"string"!=typeof t.required[r]&&e.addError("KEYWORD_VALUE_TYPE",["required","string"]);!1===i.isUniqueArray(t.required)&&e.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(e,r){var n=i.whatIs(r.additionalProperties);"boolean"!==n&&"object"!==n?e.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===n&&(e.path.push("additionalProperties"),t.validateSchema.call(this,e,r.additionalProperties),e.path.pop())},properties:function(e,r){if("object"===i.whatIs(r.properties)){for(var n=Object.keys(r.properties),a=n.length;a--;){var o=n[a],s=r.properties[o];e.path.push("properties"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceAdditional&&void 0===r.additionalProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===r.additionalProperties&&(r.additionalProperties=!1),!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["properties","object"])},patternProperties:function(e,r){if("object"===i.whatIs(r.patternProperties)){for(var n=Object.keys(r.patternProperties),a=n.length;a--;){var o=n[a],s=r.patternProperties[o];try{RegExp(o)}catch(t){e.addError("KEYWORD_PATTERN",["patternProperties",o])}e.path.push("patternProperties"),e.path.push(o.toString()),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}!0===this.options.forceProperties&&0===n.length&&e.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])}else e.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"])},dependencies:function(e,r){if("object"!==i.whatIs(r.dependencies))e.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var n=Object.keys(r.dependencies),a=n.length;a--;){var o=n[a],s=r.dependencies[o],l=i.whatIs(s);if("object"===l)e.path.push("dependencies"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop();else if("array"===l){var c=s.length;for(0===c&&e.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);c--;)"string"!=typeof s[c]&&e.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);!1===i.isUniqueArray(s)&&e.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else e.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},enum:function(e,t){!1===Array.isArray(t.enum)?e.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===t.enum.length?e.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):!1===i.isUniqueArray(t.enum)&&e.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(e,t){var r=["array","boolean","integer","number","null","object","string"],n=r.join(","),a=Array.isArray(t.type);if(a){for(var o=t.type.length;o--;)-1===r.indexOf(t.type[o])&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]);!1===i.isUniqueArray(t.type)&&e.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof t.type?-1===r.indexOf(t.type)&&e.addError("KEYWORD_TYPE_EXPECTED",["type",n]):e.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);!0===this.options.noEmptyStrings&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.enum&&void 0===t.format&&(t.minLength=1),!0===this.options.noEmptyArrays&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&(t.minItems=1),!0===this.options.forceProperties&&("object"===t.type||a&&-1!==t.type.indexOf("object"))&&void 0===t.properties&&void 0===t.patternProperties&&e.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),!0===this.options.forceItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.items&&e.addError("KEYWORD_UNDEFINED_STRICT",["items"]),!0===this.options.forceMinItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.minItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),!0===this.options.forceMaxItems&&("array"===t.type||a&&-1!==t.type.indexOf("array"))&&void 0===t.maxItems&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),!0===this.options.forceMinLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.minLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),!0===this.options.forceMaxLength&&("string"===t.type||a&&-1!==t.type.indexOf("string"))&&void 0===t.maxLength&&void 0===t.format&&void 0===t.enum&&void 0===t.pattern&&e.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(e,r){if(!1===Array.isArray(r.allOf))e.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===r.allOf.length)e.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var n=r.allOf.length;n--;)e.path.push("allOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.allOf[n]),e.path.pop(),e.path.pop()},anyOf:function(e,r){if(!1===Array.isArray(r.anyOf))e.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===r.anyOf.length)e.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var n=r.anyOf.length;n--;)e.path.push("anyOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.anyOf[n]),e.path.pop(),e.path.pop()},oneOf:function(e,r){if(!1===Array.isArray(r.oneOf))e.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===r.oneOf.length)e.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var n=r.oneOf.length;n--;)e.path.push("oneOf"),e.path.push(n.toString()),t.validateSchema.call(this,e,r.oneOf[n]),e.path.pop(),e.path.pop()},not:function(e,r){"object"!==i.whatIs(r.not)?e.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(e.path.push("not"),t.validateSchema.call(this,e,r.not),e.path.pop())},definitions:function(e,r){if("object"!==i.whatIs(r.definitions))e.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var n=Object.keys(r.definitions),a=n.length;a--;){var o=n[a],s=r.definitions[o];e.path.push("definitions"),e.path.push(o),t.validateSchema.call(this,e,s),e.path.pop(),e.path.pop()}},format:function(e,t){"string"!=typeof t.format?e.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===n[t.format]&&!0!==this.options.ignoreUnknownFormats&&e.addError("UNKNOWN_FORMAT",[t.format])},id:function(e,t){"string"!=typeof t.id&&e.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(e,t){"string"!=typeof t.title&&e.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(e,t){"string"!=typeof t.description&&e.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},default:function(){}},l=function(e,r){for(var n=r.length;n--;)t.validateSchema.call(this,e,r[n]);return e.isValid()};t.validateSchema=function(e,t){if(e.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(t))return l.call(this,e,t);if(t.__$validated)return!0;var r=t.$schema&&t.id!==t.$schema;if(r)if(t.__$schemaResolved&&t.__$schemaResolved!==t){var n=new o(e);!1===a.validate.call(this,n,t.__$schemaResolved,t)&&e.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,n)}else!0!==this.options.ignoreUnresolvableReferences&&e.addError("REF_UNRESOLVED",[t.$schema]);if(!0===this.options.noTypeless){if(void 0!==t.type){var c=[];Array.isArray(t.anyOf)&&(c=c.concat(t.anyOf)),Array.isArray(t.oneOf)&&(c=c.concat(t.oneOf)),Array.isArray(t.allOf)&&(c=c.concat(t.allOf)),c.forEach((function(e){e.type||(e.type=t.type)}))}void 0===t.enum&&void 0===t.type&&void 0===t.anyOf&&void 0===t.oneOf&&void 0===t.not&&void 0===t.$ref&&e.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var p=Object.keys(t),d=p.length;d--;){var u=p[d];0!==u.indexOf("__")&&(void 0!==s[u]?s[u].call(this,e,t):r||!0===this.options.noExtraKeywords&&e.addError("KEYWORD_UNEXPECTED",[u]))}if(!0===this.options.pedanticCheck){if(t.enum){var h=i.clone(t);for(delete h.enum,delete h.default,e.path.push("enum"),d=t.enum.length;d--;)e.path.push(d.toString()),a.validate.call(this,e,h,t.enum[d]),e.path.pop();e.path.pop()}t.default&&(e.path.push("default"),a.validate.call(this,e,t,t.default),e.path.pop())}var f=e.isValid();return f&&(t.__$validated=!0),f}},9750:(e,t)=>{"use strict";t.jsonSymbol=Symbol.for("z-schema/json"),t.schemaSymbol=Symbol.for("z-schema/schema");var r=t.sortedKeys=function(e){return Object.keys(e).sort()};t.isAbsoluteUri=function(e){return/^https?:\/\//.test(e)},t.isRelativeUri=function(e){return/.+#/.test(e)},t.whatIs=function(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"array":"object":"number"===t?Number.isFinite(e)?e%1==0?"integer":"number":Number.isNaN(e)?"not-a-number":"unknown-number":t},t.areEqual=function e(n,a,o){var i,s,l=(o=o||{}).caseInsensitiveComparison||!1;if(n===a)return!0;if(!0===l&&"string"==typeof n&&"string"==typeof a&&n.toUpperCase()===a.toUpperCase())return!0;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(s=n.length,i=0;i=55296&&t<=56319&&a{"use strict";var n=r(4155);r(2630);var a=r(9208),o=r(9454),i=r(7797),s=r(4706),l=r(7994),c=r(2765),p=r(2088),d=r(9750),u=r(1319),h=r(2619),f={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,enumCaseInsensitiveComparison:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!1,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};function m(e){var t;if("object"==typeof e){for(var r,n=Object.keys(e),a=n.length;a--;)if(r=n[a],void 0===f[r])throw new Error("Unexpected option passed to constructor: "+r);for(a=(n=Object.keys(f)).length;a--;)void 0===e[r=n[a]]&&(e[r]=d.clone(f[r]));t=e}else t=d.clone(f);return!0===t.strictMode&&(t.forceAdditional=!0,t.forceItems=!0,t.forceMaxLength=!0,t.forceProperties=!0,t.noExtraKeywords=!0,t.noTypeless=!0,t.noEmptyStrings=!0,t.noEmptyArrays=!0),t}function g(e){this.cache={},this.referenceCache=[],this.validateOptions={},this.options=m(e);var t=m({});this.setRemoteReference("http://json-schema.org/draft-04/schema",u,t),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",h,t)}g.prototype.compileSchema=function(e){var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validateSchema=function(e){if(Array.isArray(e)&&0===e.length)throw new Error(".validateSchema was called with an empty array");var t=new o(this.options);return e=l.getSchema.call(this,t,e),c.compileSchema.call(this,t,e)&&p.validateSchema.call(this,t,e),this.lastReport=t,t.isValid()},g.prototype.validate=function(e,t,r,i){"function"===d.whatIs(r)&&(i=r,r={}),r||(r={}),this.validateOptions=r;var u=d.whatIs(t);if("string"!==u&&"object"!==u){var h=new Error("Invalid .validate call - schema must be a string or object but "+u+" was passed!");if(i)return void n.nextTick((function(){i(h,!1)}));throw h}var f=!1,m=new o(this.options);if(m.json=e,"string"==typeof t){var g=t;if(!(t=l.getSchema.call(this,m,g)))throw new Error("Schema with id '"+g+"' wasn't found in the validator cache!")}else t=l.getSchema.call(this,m,t);var y=!1;f||(y=c.compileSchema.call(this,m,t)),y||(this.lastReport=m,f=!0);var v=!1;if(f||(v=p.validateSchema.call(this,m,t)),v||(this.lastReport=m,f=!0),r.schemaPath&&(m.rootSchema=t,!(t=a(t,r.schemaPath))))throw new Error("Schema path '"+r.schemaPath+"' wasn't found in the schema!");if(f||s.validate.call(this,m,t,e),!i){if(m.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=m,m.isValid()}m.processAsyncTasks(this.options.asyncTimeout,i)},g.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var e=new Error;return e.name="z-schema validation error",e.message=this.lastReport.commonErrorMessage,e.details=this.lastReport.errors,e},g.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:null},g.prototype.getMissingReferences=function(e){for(var t=[],r=(e=e||this.lastReport.errors).length;r--;){var n=e[r];if("UNRESOLVABLE_REFERENCE"===n.code){var a=n.params[0];-1===t.indexOf(a)&&t.push(a)}n.inner&&(t=t.concat(this.getMissingReferences(n.inner)))}return t},g.prototype.getMissingRemoteReferences=function(){for(var e=this.getMissingReferences(),t=[],r=e.length;r--;){var n=l.getRemotePath(e[r]);n&&-1===t.indexOf(n)&&t.push(n)}return t},g.prototype.setRemoteReference=function(e,t,r){t="string"==typeof t?JSON.parse(t):d.cloneDeep(t),r&&(t.__$validationOptions=m(r)),l.cacheSchemaByUri.call(this,e,t)},g.prototype.getResolvedSchema=function(e){var t=new o(this.options);e=l.getSchema.call(this,t,e),e=d.cloneDeep(e);var r=[],n=function(e){var t,a=d.whatIs(e);if(("object"===a||"array"===a)&&!e.___$visited){if(e.___$visited=!0,r.push(e),e.$ref&&e.__$refResolved){var o=e.__$refResolved,i=e;for(t in delete e.$ref,delete e.__$refResolved,o)o.hasOwnProperty(t)&&(i[t]=o[t])}for(t in e)e.hasOwnProperty(t)&&(0===t.indexOf("__$")?delete e[t]:n(e[t]))}};if(n(e),r.forEach((function(e){delete e.___$visited})),this.lastReport=t,t.isValid())return e;throw this.getLastError()},g.prototype.setSchemaReader=function(e){return g.setSchemaReader(e)},g.prototype.getSchemaReader=function(){return g.schemaReader},g.schemaReader=void 0,g.setSchemaReader=function(e){g.schemaReader=e},g.registerFormat=function(e,t){i[e]=t},g.unregisterFormat=function(e){delete i[e]},g.getRegisteredFormats=function(){return Object.keys(i)},g.getDefaultOptions=function(){return d.cloneDeep(f)},g.schemaSymbol=d.schemaSymbol,g.jsonSymbol=d.jsonSymbol,e.exports=g},3471:()=>{},6214:()=>{},4616:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"id":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swaggerVersion","basePath","apis"],"properties":{"swaggerVersion":{"enum":["1.2"]},"apiVersion":{"type":"string"},"basePath":{"type":"string","format":"uri","pattern":"^https?://"},"resourcePath":{"type":"string","format":"uri","pattern":"^/"},"apis":{"type":"array","items":{"$ref":"#/definitions/apiObject"}},"models":{"type":"object","additionalProperties":{"$ref":"modelsObject.json#"}},"produces":{"$ref":"#/definitions/mimeTypeArray"},"consumes":{"$ref":"#/definitions/mimeTypeArray"},"authorizations":{"$ref":"authorizationObject.json#"}},"additionalProperties":false,"definitions":{"apiObject":{"type":"object","required":["path","operations"],"properties":{"path":{"type":"string","format":"uri-template","pattern":"^/"},"description":{"type":"string"},"operations":{"type":"array","items":{"$ref":"operationObject.json#"}}},"additionalProperties":false},"mimeTypeArray":{"type":"array","items":{"type":"string","format":"mime-type"},"uniqueItems":true}}}')},499:e=>{"use strict";e.exports=JSON.parse('{"title":"A JSON Schema for Swagger 2.0 API.","id":"http://swagger.io/v2/schema.json#","$schema":"http://json-schema.org/draft-04/schema#","type":"object","required":["swagger","info","paths"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"swagger":{"type":"string","enum":["2.0"],"description":"The Swagger version of this document."},"info":{"$ref":"#/definitions/info"},"host":{"type":"string","pattern":"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$","description":"The host (name or ip) of the API. Example: \'swagger.io\'"},"basePath":{"type":"string","pattern":"^/","description":"The base path to the API. Example: \'/api\'."},"schemes":{"$ref":"#/definitions/schemesList"},"consumes":{"description":"A list of MIME types accepted by the API.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"paths":{"$ref":"#/definitions/paths"},"definitions":{"$ref":"#/definitions/definitions"},"parameters":{"$ref":"#/definitions/parameterDefinitions"},"responses":{"$ref":"#/definitions/responseDefinitions"},"security":{"$ref":"#/definitions/security"},"securityDefinitions":{"$ref":"#/definitions/securityDefinitions"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},"termsOfService":{"type":"string","description":"The terms of service for the API."},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"paths":{"type":"object","description":"Relative paths to the individual endpoints. They must be relative to the \'basePath\'.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"},"^/":{"$ref":"#/definitions/pathItem"}},"additionalProperties":false},"definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"One or more JSON objects describing the schemas being consumed and produced by the API."},"parameterDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"One or more JSON representations for parameters"},"responseDefinitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/response"},"description":"One or more JSON representations for responses"},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"examples":{"type":"object","additionalProperties":true},"mimeType":{"type":"string","description":"The MIME type of the HTTP message."},"operation":{"type":"object","required":["responses"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the operation."},"description":{"type":"string","description":"A longer description of the operation, GitHub Flavored Markdown is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string","description":"A unique identifier of the operation."},"produces":{"description":"A list of MIME types the API can produce.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"consumes":{"description":"A list of MIME types the API can consume.","allOf":[{"$ref":"#/definitions/mediaTypeList"}]},"parameters":{"$ref":"#/definitions/parametersList"},"responses":{"$ref":"#/definitions/responses"},"schemes":{"$ref":"#/definitions/schemesList"},"deprecated":{"type":"boolean","default":false},"security":{"$ref":"#/definitions/security"}}},"pathItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"get":{"$ref":"#/definitions/operation"},"put":{"$ref":"#/definitions/operation"},"post":{"$ref":"#/definitions/operation"},"delete":{"$ref":"#/definitions/operation"},"options":{"$ref":"#/definitions/operation"},"head":{"$ref":"#/definitions/operation"},"patch":{"$ref":"#/definitions/operation"},"parameters":{"$ref":"#/definitions/parametersList"}}},"responses":{"type":"object","description":"Response objects names can either be any valid HTTP status code or \'default\'.","minProperties":1,"additionalProperties":false,"patternProperties":{"^([0-9]{3})$|^(default)$":{"$ref":"#/definitions/responseValue"},"^x-":{"$ref":"#/definitions/vendorExtension"}},"not":{"type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}}},"responseValue":{"oneOf":[{"$ref":"#/definitions/response"},{"$ref":"#/definitions/jsonReference"}]},"response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"schema":{"oneOf":[{"$ref":"#/definitions/schema"},{"$ref":"#/definitions/fileSchema"}]},"headers":{"$ref":"#/definitions/headers"},"examples":{"$ref":"#/definitions/examples"}},"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/header"}},"header":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"vendorExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"bodyParameter":{"type":"object","required":["name","in","schema"],"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["body"]},"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"schema":{"$ref":"#/definitions/schema"}},"additionalProperties":false},"headerParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["header"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"queryParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["query"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"formDataParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"required":{"type":"boolean","description":"Determines whether or not this parameter is required or optional.","default":false},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["formData"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"allowEmptyValue":{"type":"boolean","default":false,"description":"allows sending a parameter by name only or with an empty value."},"type":{"type":"string","enum":["string","number","boolean","integer","array","file"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormatWithMulti"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"pathParameterSubSchema":{"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["required"],"properties":{"required":{"type":"boolean","enum":[true],"description":"Determines whether or not this parameter is required or optional."},"in":{"type":"string","description":"Determines the location of the parameter.","enum":["path"]},"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"type":{"type":"string","enum":["string","number","boolean","integer","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}}},"nonBodyParameter":{"type":"object","required":["name","in","type"],"oneOf":[{"$ref":"#/definitions/headerParameterSubSchema"},{"$ref":"#/definitions/formDataParameterSubSchema"},{"$ref":"#/definitions/queryParameterSubSchema"},{"$ref":"#/definitions/pathParameterSubSchema"}]},"parameter":{"oneOf":[{"$ref":"#/definitions/bodyParameter"},{"$ref":"#/definitions/nonBodyParameter"}]},"schema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/xml"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"fileSchema":{"type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}},"required":["type"],"properties":{"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"type":{"type":"string","enum":["file"]},"readOnly":{"type":"boolean","default":false},"externalDocs":{"$ref":"#/definitions/externalDocs"},"example":{}},"additionalProperties":false},"primitivesItems":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","number","integer","boolean","array"]},"format":{"type":"string"},"items":{"$ref":"#/definitions/primitivesItems"},"collectionFormat":{"$ref":"#/definitions/collectionFormat"},"default":{"$ref":"#/definitions/default"},"maximum":{"$ref":"#/definitions/maximum"},"exclusiveMaximum":{"$ref":"#/definitions/exclusiveMaximum"},"minimum":{"$ref":"#/definitions/minimum"},"exclusiveMinimum":{"$ref":"#/definitions/exclusiveMinimum"},"maxLength":{"$ref":"#/definitions/maxLength"},"minLength":{"$ref":"#/definitions/minLength"},"pattern":{"$ref":"#/definitions/pattern"},"maxItems":{"$ref":"#/definitions/maxItems"},"minItems":{"$ref":"#/definitions/minItems"},"uniqueItems":{"$ref":"#/definitions/uniqueItems"},"enum":{"$ref":"#/definitions/enum"},"multipleOf":{"$ref":"#/definitions/multipleOf"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"security":{"type":"array","items":{"$ref":"#/definitions/securityRequirement"},"uniqueItems":true},"securityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"xml":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"securityDefinitions":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/basicAuthenticationSecurity"},{"$ref":"#/definitions/apiKeySecurity"},{"$ref":"#/definitions/oauth2ImplicitSecurity"},{"$ref":"#/definitions/oauth2PasswordSecurity"},{"$ref":"#/definitions/oauth2ApplicationSecurity"},{"$ref":"#/definitions/oauth2AccessCodeSecurity"}]}},"basicAuthenticationSecurity":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["basic"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"apiKeySecurity":{"type":"object","additionalProperties":false,"required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query"]},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ImplicitSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["implicit"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2PasswordSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["password"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2ApplicationSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["application"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2AccessCodeSecurity":{"type":"object","additionalProperties":false,"required":["type","flow","authorizationUrl","tokenUrl"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flow":{"type":"string","enum":["accessCode"]},"scopes":{"$ref":"#/definitions/oauth2Scopes"},"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"description":{"type":"string"}},"patternProperties":{"^x-":{"$ref":"#/definitions/vendorExtension"}}},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"mediaTypeList":{"type":"array","items":{"$ref":"#/definitions/mimeType"},"uniqueItems":true},"parametersList":{"type":"array","description":"The parameters needed to send a valid API call.","additionalItems":false,"items":{"oneOf":[{"$ref":"#/definitions/parameter"},{"$ref":"#/definitions/jsonReference"}]},"uniqueItems":true},"schemesList":{"type":"array","description":"The transfer protocol of the API.","items":{"type":"string","enum":["http","https","ws","wss"]},"uniqueItems":true},"collectionFormat":{"type":"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},"collectionFormatWithMulti":{"type":"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"jsonReference":{"type":"object","required":["$ref"],"additionalProperties":false,"properties":{"$ref":{"type":"string"}}}}}')},3659:e=>{"use strict";e.exports=JSON.parse('{"id":"https://spec.openapis.org/oas/3.0/schema/2019-04-02","$schema":"http://json-schema.org/draft-04/schema#","description":"Validation schema for OpenAPI Specification 3.0.X.","type":"object","required":["openapi","info","paths"],"properties":{"openapi":{"type":"string","pattern":"^3\\\\.0\\\\.\\\\d(-.+)?$"},"info":{"$ref":"#/definitions/Info"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/Tag"},"uniqueItems":true},"paths":{"$ref":"#/definitions/Paths"},"components":{"$ref":"#/definitions/Components"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"definitions":{"Reference":{"type":"object","required":["$ref"],"patternProperties":{"^\\\\$ref$":{"type":"string","format":"uri-reference"}}},"Info":{"type":"object","required":["title","version"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string","format":"uri-reference"},"contact":{"$ref":"#/definitions/Contact"},"license":{"$ref":"#/definitions/License"},"version":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"},"email":{"type":"string","format":"email"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"License":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Server":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/definitions/ServerVariable"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ServerVariable":{"type":"object","required":["default"],"properties":{"enum":{"type":"array","items":{"type":"string"}},"default":{"type":"string"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Components":{"type":"object","properties":{"schemas":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}}},"responses":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Response"}]}}},"parameters":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Parameter"}]}}},"examples":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Example"}]}}},"requestBodies":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/RequestBody"}]}}},"headers":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Header"}]}}},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"links":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Link"}]}}},"callbacks":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/Callback"}]}}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Schema":{"type":"object","properties":{"title":{"type":"string"},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"type":"integer","minimum":0},"minLength":{"type":"integer","minimum":0,"default":0},"pattern":{"type":"string","format":"regex"},"maxItems":{"type":"integer","minimum":0},"minItems":{"type":"integer","minimum":0,"default":0},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"type":"integer","minimum":0},"minProperties":{"type":"integer","minimum":0,"default":0},"required":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"enum":{"type":"array","items":{},"minItems":1,"uniqueItems":false},"type":{"type":"string","enum":["array","boolean","integer","number","object","string"]},"not":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"allOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"oneOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"anyOf":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"items":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"properties":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]}},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"},{"type":"boolean"}],"default":true},"description":{"type":"string"},"format":{"type":"string"},"default":{},"nullable":{"type":"boolean","default":false},"discriminator":{"$ref":"#/definitions/Discriminator"},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"example":{},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"deprecated":{"type":"boolean","default":false},"xml":{"$ref":"#/definitions/XML"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Discriminator":{"type":"object","required":["propertyName"],"properties":{"propertyName":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}}}},"XML":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string","format":"uri"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Response":{"type":"object","required":["description"],"properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Header"},{"$ref":"#/definitions/Reference"}]}},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"links":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Link"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"MediaType":{"type":"object","properties":{"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}},"encoding":{"type":"object","additionalProperties":{"$ref":"#/definitions/Encoding"}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"}]},"Example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":{},"externalValue":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Header":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string","enum":["simple"],"default":"simple"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"}]},"Paths":{"type":"object","patternProperties":{"^\\\\/":{"$ref":"#/definitions/PathItem"},"^x-":{}},"additionalProperties":false},"PathItem":{"type":"object","properties":{"$ref":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/definitions/Operation"},"^x-":{}},"additionalProperties":false},"Operation":{"type":"object","required":["responses"],"properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Parameter"},{"$ref":"#/definitions/Reference"}]},"uniqueItems":true},"requestBody":{"oneOf":[{"$ref":"#/definitions/RequestBody"},{"$ref":"#/definitions/Reference"}]},"responses":{"$ref":"#/definitions/Responses"},"callbacks":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Callback"},{"$ref":"#/definitions/Reference"}]}},"deprecated":{"type":"boolean","default":false},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"servers":{"type":"array","items":{"$ref":"#/definitions/Server"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Responses":{"type":"object","properties":{"default":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]}},"patternProperties":{"^[1-5](?:\\\\d{2}|XX)$":{"oneOf":[{"$ref":"#/definitions/Response"},{"$ref":"#/definitions/Reference"}]},"^x-":{}},"minProperties":1,"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"Tag":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/ExternalDocumentation"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExternalDocumentation":{"type":"object","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri-reference"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ExampleXORExamples":{"description":"Example and examples are mutually exclusive","not":{"required":["example","examples"]}},"SchemaXORContent":{"description":"Schema and content are mutually exclusive, at least one is required","not":{"required":["schema","content"]},"oneOf":[{"required":["schema"]},{"required":["content"],"description":"Some properties are not allowed if content is present","allOf":[{"not":{"required":["style"]}},{"not":{"required":["explode"]}},{"not":{"required":["allowReserved"]}},{"not":{"required":["example"]}},{"not":{"required":["examples"]}}]}]},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean","default":false},"deprecated":{"type":"boolean","default":false},"allowEmptyValue":{"type":"boolean","default":false},"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false},"schema":{"oneOf":[{"$ref":"#/definitions/Schema"},{"$ref":"#/definitions/Reference"}]},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"},"minProperties":1,"maxProperties":1},"example":{},"examples":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/Example"},{"$ref":"#/definitions/Reference"}]}}},"patternProperties":{"^x-":{}},"additionalProperties":false,"required":["name","in"],"allOf":[{"$ref":"#/definitions/ExampleXORExamples"},{"$ref":"#/definitions/SchemaXORContent"},{"$ref":"#/definitions/ParameterLocation"}]},"ParameterLocation":{"description":"Parameter location","oneOf":[{"description":"Parameter in path","required":["required"],"properties":{"in":{"enum":["path"]},"style":{"enum":["matrix","label","simple"],"default":"simple"},"required":{"enum":[true]}}},{"description":"Parameter in query","properties":{"in":{"enum":["query"]},"style":{"enum":["form","spaceDelimited","pipeDelimited","deepObject"],"default":"form"}}},{"description":"Parameter in header","properties":{"in":{"enum":["header"]},"style":{"enum":["simple"],"default":"simple"}}},{"description":"Parameter in cookie","properties":{"in":{"enum":["cookie"]},"style":{"enum":["form"],"default":"form"}}}]},"RequestBody":{"type":"object","required":["content"],"properties":{"description":{"type":"string"},"content":{"type":"object","additionalProperties":{"$ref":"#/definitions/MediaType"}},"required":{"type":"boolean","default":false}},"patternProperties":{"^x-":{}},"additionalProperties":false},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/APIKeySecurityScheme"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/OAuth2SecurityScheme"},{"$ref":"#/definitions/OpenIdConnectSecurityScheme"}]},"APIKeySecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"HTTPSecurityScheme":{"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"bearerFormat":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false,"oneOf":[{"description":"Bearer","properties":{"scheme":{"enum":["bearer"]}}},{"description":"Non Bearer","not":{"required":["bearerFormat"]},"properties":{"scheme":{"not":{"enum":["bearer"]}}}}]},"OAuth2SecurityScheme":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"flows":{"$ref":"#/definitions/OAuthFlows"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OpenIdConnectSecurityScheme":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"openIdConnectUrl":{"type":"string","format":"uri-reference"},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"OAuthFlows":{"type":"object","properties":{"implicit":{"$ref":"#/definitions/ImplicitOAuthFlow"},"password":{"$ref":"#/definitions/PasswordOAuthFlow"},"clientCredentials":{"$ref":"#/definitions/ClientCredentialsFlow"},"authorizationCode":{"$ref":"#/definitions/AuthorizationCodeOAuthFlow"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ImplicitOAuthFlow":{"type":"object","required":["authorizationUrl","scopes"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"PasswordOAuthFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"ClientCredentialsFlow":{"type":"object","required":["tokenUrl"],"properties":{"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"AuthorizationCodeOAuthFlow":{"type":"object","required":["authorizationUrl","tokenUrl"],"properties":{"authorizationUrl":{"type":"string","format":"uri-reference"},"tokenUrl":{"type":"string","format":"uri-reference"},"refreshUrl":{"type":"string","format":"uri-reference"},"scopes":{"type":"object","additionalProperties":{"type":"string"}}},"patternProperties":{"^x-":{}},"additionalProperties":false},"Link":{"type":"object","properties":{"operationId":{"type":"string"},"operationRef":{"type":"string","format":"uri-reference"},"parameters":{"type":"object","additionalProperties":{}},"requestBody":{},"description":{"type":"string"},"server":{"$ref":"#/definitions/Server"}},"patternProperties":{"^x-":{}},"additionalProperties":false,"not":{"description":"Operation Id and Operation Ref are mutually exclusive","required":["operationId","operationRef"]}},"Callback":{"type":"object","additionalProperties":{"$ref":"#/definitions/PathItem"},"patternProperties":{"^x-":{}}},"Encoding":{"type":"object","properties":{"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/definitions/Header"}},"style":{"type":"string","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"type":"boolean","default":false}},"additionalProperties":false}}}')},1201:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://spec.openapis.org/oas/3.1/schema/2021-04-15","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string","pattern":"^3\\\\.1\\\\.\\\\d+(-.+)?$"},"info":{"$ref":"#/$defs/info"},"jsonSchemaDialect":{"$ref":"#/$defs/uri","default":"https://spec.openapis.org/oas/3.1/dialect/base"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"paths":{"$ref":"#/$defs/paths"},"webhooks":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"components":{"$ref":"#/$defs/components"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"tags":{"type":"array","items":{"$ref":"#/$defs/tag"}},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["openapi","info"],"anyOf":[{"required":["paths"]},{"required":["components"]},{"required":["webhooks"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"info":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"$ref":"#/$defs/contact"},"license":{"$ref":"#/$defs/license"},"version":{"type":"string"}},"required":["title","version"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"identifier":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["name"],"oneOf":[{"required":["identifier"]},{"required":["url"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server":{"type":"object","properties":{"url":{"$ref":"#/$defs/uri"},"description":{"type":"string"},"variables":{"type":"object","additionalProperties":{"$ref":"#/$defs/server-variable"}}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"server-variable":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"},"minItems":1},"default":{"type":"string"},"descriptions":{"type":"string"}},"required":["default"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"components":{"type":"object","properties":{"schemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}},"responses":{"type":"object","additionalProperties":{"$ref":"#/$defs/response-or-reference"}},"parameters":{"type":"object","additionalProperties":{"$ref":"#/$defs/parameter-or-reference"}},"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}},"requestBodies":{"type":"object","additionalProperties":{"$ref":"#/$defs/request-body-or-reference"}},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"securitySchemes":{"type":"object","additionalProperties":{"$ref":"#/$defs/security-scheme-or-reference"}},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"pathItems":{"type":"object","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}}},"patternProperties":{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{"$comment":"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected","propertyNames":{"pattern":"^[a-zA-Z0-9._-]+$"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"paths":{"type":"object","patternProperties":{"^/":{"$ref":"#/$defs/path-item"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}}},"patternProperties":{"^(get|put|post|delete|options|head|patch|trace)$":{"$ref":"#/$defs/operation"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"path-item-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/path-item"}},"operation":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"},"operationId":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/$defs/parameter-or-reference"}},"requestBody":{"$ref":"#/$defs/request-body-or-reference"},"responses":{"$ref":"#/$defs/responses"},"callbacks":{"type":"object","additionalProperties":{"$ref":"#/$defs/callbacks-or-reference"}},"deprecated":{"default":false,"type":"boolean"},"security":{"type":"array","items":{"$ref":"#/$defs/security-requirement"}},"servers":{"type":"array","items":{"$ref":"#/$defs/server"}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"external-documentation":{"type":"object","properties":{"description":{"type":"string"},"url":{"$ref":"#/$defs/uri"}},"required":["url"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter":{"type":"object","properties":{"name":{"type":"string"},"in":{"enum":["query","header","path","cookie"]},"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"},"content":{"$ref":"#/$defs/content"}},"required":["in"],"oneOf":[{"required":["schema"]},{"required":["content"]}],"dependentSchemas":{"schema":{"properties":{"style":{"type":"string"},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/examples"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{"$ref":"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],"$defs":{"styles-for-path":{"if":{"properties":{"in":{"const":"path"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["matrix","label","simple"]},"required":{"const":true}},"required":["required"]}},"styles-for-header":{"if":{"properties":{"in":{"const":"header"}},"required":["in"]},"then":{"properties":{"style":{"default":"simple","enum":["simple"]}}}},"styles-for-query":{"if":{"properties":{"in":{"const":"query"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{"if":{"properties":{"in":{"const":"cookie"}},"required":["in"]},"then":{"properties":{"style":{"default":"form","enum":["form"]}}}},"styles-for-form":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"parameter-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/parameter"}},"request-body":{"type":"object","properties":{"description":{"type":"string"},"content":{"$ref":"#/$defs/content"},"required":{"default":false,"type":"boolean"}},"required":["content"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"request-body-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/request-body"}},"content":{"type":"object","additionalProperties":{"$ref":"#/$defs/media-type"},"propertyNames":{"format":"media-range"}},"media-type":{"type":"object","properties":{"schema":{"$dynamicRef":"#meta"},"encoding":{"type":"object","additionalProperties":{"$ref":"#/$defs/encoding"}}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/examples"}],"unevaluatedProperties":false},"encoding":{"type":"object","properties":{"contentType":{"type":"string","format":"media-range"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"style":{"default":"form","enum":["form","spaceDelimited","pipeDelimited","deepObject"]},"explode":{"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"}},"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/encoding/$defs/explode-default"}],"unevaluatedProperties":false,"$defs":{"explode-default":{"if":{"properties":{"style":{"const":"form"}},"required":["style"]},"then":{"properties":{"explode":{"default":true}}},"else":{"properties":{"explode":{"default":false}}}}}},"responses":{"type":"object","properties":{"default":{"$ref":"#/$defs/response-or-reference"}},"patternProperties":{"^[1-5][0-9X]{2}$":{"$ref":"#/$defs/response-or-reference"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response":{"type":"object","properties":{"description":{"type":"string"},"headers":{"type":"object","additionalProperties":{"$ref":"#/$defs/header-or-reference"}},"content":{"$ref":"#/$defs/content"},"links":{"type":"object","additionalProperties":{"$ref":"#/$defs/link-or-reference"}}},"required":["description"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"response-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/response"}},"callbacks":{"type":"object","$ref":"#/$defs/specification-extensions","additionalProperties":{"$ref":"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/callbacks"}},"example":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"value":true,"externalValue":{"$ref":"#/$defs/uri"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"example-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/example"}},"link":{"type":"object","properties":{"operationRef":{"$ref":"#/$defs/uri"},"operationId":true,"parameters":{"$ref":"#/$defs/map-of-strings"},"requestBody":true,"description":{"type":"string"},"body":{"$ref":"#/$defs/server"}},"oneOf":[{"required":["operationRef"]},{"required":["operationId"]}],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"link-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/link"}},"header":{"type":"object","properties":{"description":{"type":"string"},"required":{"default":false,"type":"boolean"},"deprecated":{"default":false,"type":"boolean"},"allowEmptyValue":{"default":false,"type":"boolean"}},"dependentSchemas":{"schema":{"properties":{"style":{"default":"simple","enum":["simple"]},"explode":{"default":false,"type":"boolean"},"allowReserved":{"default":false,"type":"boolean"},"schema":{"$dynamicRef":"#meta"}},"$ref":"#/$defs/examples"},"content":{"properties":{"content":{"$ref":"#/$defs/content"}}}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"header-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/header"}},"tag":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/$defs/external-documentation"}},"required":["name"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"reference":{"type":"object","properties":{"$ref":{"$ref":"#/$defs/uri"},"summary":{"type":"string"},"description":{"type":"string"}},"unevaluatedProperties":false},"schema":{"$dynamicAnchor":"meta","type":["object","boolean"]},"security-scheme":{"type":"object","properties":{"type":{"enum":["apiKey","http","mutualTLS","oauth2","openIdConnect"]},"description":{"type":"string"}},"required":["type"],"allOf":[{"$ref":"#/$defs/specification-extensions"},{"$ref":"#/$defs/security-scheme/$defs/type-apikey"},{"$ref":"#/$defs/security-scheme/$defs/type-http"},{"$ref":"#/$defs/security-scheme/$defs/type-http-bearer"},{"$ref":"#/$defs/security-scheme/$defs/type-oauth2"},{"$ref":"#/$defs/security-scheme/$defs/type-oidc"}],"unevaluatedProperties":false,"$defs":{"type-apikey":{"if":{"properties":{"type":{"const":"apiKey"}},"required":["type"]},"then":{"properties":{"name":{"type":"string"},"in":{"enum":["query","header","cookie"]}},"required":["name","in"]}},"type-http":{"if":{"properties":{"type":{"const":"http"}},"required":["type"]},"then":{"properties":{"scheme":{"type":"string"}},"required":["scheme"]}},"type-http-bearer":{"if":{"properties":{"type":{"const":"http"},"scheme":{"const":"bearer"}},"required":["type","scheme"]},"then":{"properties":{"bearerFormat":{"type":"string"}},"required":["scheme"]}},"type-oauth2":{"if":{"properties":{"type":{"const":"oauth2"}},"required":["type"]},"then":{"properties":{"flows":{"$ref":"#/$defs/oauth-flows"}},"required":["flows"]}},"type-oidc":{"if":{"properties":{"type":{"const":"openIdConnect"}},"required":["type"]},"then":{"properties":{"openIdConnectUrl":{"$ref":"#/$defs/uri"}},"required":["openIdConnectUrl"]}}}},"security-scheme-or-reference":{"if":{"required":["$ref"]},"then":{"$ref":"#/$defs/reference"},"else":{"$ref":"#/$defs/security-scheme"}},"oauth-flows":{"type":"object","properties":{"implicit":{"$ref":"#/$defs/oauth-flows/$defs/implicit"},"password":{"$ref":"#/$defs/oauth-flows/$defs/password"},"clientCredentials":{"$ref":"#/$defs/oauth-flows/$defs/client-credentials"},"authorizationCode":{"$ref":"#/$defs/oauth-flows/$defs/authorization-code"}},"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false,"$defs":{"implicit":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"password":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"client-credentials":{"type":"object","properties":{"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false},"authorization-code":{"type":"object","properties":{"authorizationUrl":{"type":"string"},"tokenUrl":{"type":"string"},"refreshUrl":{"type":"string"},"scopes":{"$ref":"#/$defs/map-of-strings"}},"required":["authorizationUrl","tokenUrl","scopes"],"$ref":"#/$defs/specification-extensions","unevaluatedProperties":false}}},"security-requirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"specification-extensions":{"patternProperties":{"^x-":true}},"examples":{"properties":{"example":true,"examples":{"type":"object","additionalProperties":{"$ref":"#/$defs/example-or-reference"}}}},"uri":{"type":"string","format":"uri"},"map-of-strings":{"type":"object","additionalProperties":{"type":"string"}}}}')},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6273:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},3932:e=>{"use strict";e.exports=JSON.parse('{"$id":"afterRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},6136:e=>{"use strict";e.exports=JSON.parse('{"$id":"beforeRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},805:e=>{"use strict";e.exports=JSON.parse('{"$id":"browser.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},1632:e=>{"use strict";e.exports=JSON.parse('{"$id":"cache.json#","$schema":"http://json-schema.org/draft-06/schema#","properties":{"beforeRequest":{"oneOf":[{"type":"null"},{"$ref":"beforeRequest.json#"}]},"afterRequest":{"oneOf":[{"type":"null"},{"$ref":"afterRequest.json#"}]},"comment":{"type":"string"}}}')},1567:e=>{"use strict";e.exports=JSON.parse('{"$id":"content.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["size","mimeType"],"properties":{"size":{"type":"integer"},"compression":{"type":"integer"},"mimeType":{"type":"string"},"text":{"type":"string"},"encoding":{"type":"string"},"comment":{"type":"string"}}}')},5725:e=>{"use strict";e.exports=JSON.parse('{"$id":"cookie.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"path":{"type":"string"},"domain":{"type":"string"},"expires":{"type":["string","null"],"format":"date-time"},"httpOnly":{"type":"boolean"},"secure":{"type":"boolean"},"comment":{"type":"string"}}}')},7218:e=>{"use strict";e.exports=JSON.parse('{"$id":"creator.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},4560:e=>{"use strict";e.exports=JSON.parse('{"$id":"entry.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","time","request","response","cache","timings"],"properties":{"pageref":{"type":"string"},"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"time":{"type":"number","min":0},"request":{"$ref":"request.json#"},"response":{"$ref":"response.json#"},"cache":{"$ref":"cache.json#"},"timings":{"$ref":"timings.json#"},"serverIPAddress":{"type":"string","oneOf":[{"format":"ipv4"},{"format":"ipv6"}]},"connection":{"type":"string"},"comment":{"type":"string"}}}')},5579:e=>{"use strict";e.exports=JSON.parse('{"$id":"har.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["log"],"properties":{"log":{"$ref":"log.json#"}}}')},5147:e=>{"use strict";e.exports=JSON.parse('{"$id":"header.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},3013:e=>{"use strict";e.exports=JSON.parse('{"$id":"log.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["version","creator","entries"],"properties":{"version":{"type":"string"},"creator":{"$ref":"creator.json#"},"browser":{"$ref":"browser.json#"},"pages":{"type":"array","items":{"$ref":"page.json#"}},"entries":{"type":"array","items":{"$ref":"entry.json#"}},"comment":{"type":"string"}}}')},4777:e=>{"use strict";e.exports=JSON.parse('{"$id":"page.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","id","title","pageTimings"],"properties":{"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"id":{"type":"string","unique":true},"title":{"type":"string"},"pageTimings":{"$ref":"pageTimings.json#"},"comment":{"type":"string"}}}')},5538:e=>{"use strict";e.exports=JSON.parse('{"$id":"pageTimings.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","properties":{"onContentLoad":{"type":"number","min":-1},"onLoad":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2096:e=>{"use strict";e.exports=JSON.parse('{"$id":"postData.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["mimeType"],"properties":{"mimeType":{"type":"string"},"text":{"type":"string"},"params":{"type":"array","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"fileName":{"type":"string"},"contentType":{"type":"string"},"comment":{"type":"string"}}},"comment":{"type":"string"}}}')},1251:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},9646:e=>{"use strict";e.exports=JSON.parse('{"$id":"request.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],"properties":{"method":{"type":"string"},"url":{"type":"string","format":"uri"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"queryString":{"type":"array","items":{"$ref":"query.json#"}},"postData":{"$ref":"postData.json#"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},9103:e=>{"use strict";e.exports=JSON.parse('{"$id":"response.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],"properties":{"status":{"type":"integer"},"statusText":{"type":"string"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"content":{"$ref":"content.json#"},"redirectURL":{"type":"string"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},2007:e=>{"use strict";e.exports=JSON.parse('{"$id":"timings.json#","$schema":"http://json-schema.org/draft-06/schema#","required":["send","wait","receive"],"properties":{"dns":{"type":"number","min":-1},"connect":{"type":"number","min":-1},"blocked":{"type":"number","min":-1},"send":{"type":"number","min":-1},"wait":{"type":"number","min":-1},"receive":{"type":"number","min":-1},"ssl":{"type":"number","min":-1},"comment":{"type":"string"}}}')},2619:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-04/hyper-schema#","id":"http://json-schema.org/draft-04/hyper-schema#","title":"JSON Hyper-Schema","allOf":[{"$ref":"http://json-schema.org/draft-04/schema#"}],"properties":{"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"type":"array"}]}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}]},"definitions":{"additionalProperties":{"$ref":"#"}},"patternProperties":{"additionalProperties":{"$ref":"#"}},"properties":{"additionalProperties":{"$ref":"#"}},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"},"links":{"type":"array","items":{"$ref":"#/definitions/linkDescription"}},"fragmentResolution":{"type":"string"},"media":{"type":"object","properties":{"type":{"description":"A media type, as described in RFC 2046","type":"string"},"binaryEncoding":{"description":"A content encoding scheme, as described in RFC 2045","type":"string"}}},"pathStart":{"description":"Instances\' URIs must start with this value for this schema to apply to them","type":"string","format":"uri"}},"definitions":{"schemaArray":{"type":"array","items":{"$ref":"#"}},"linkDescription":{"title":"Link Description Object","type":"object","required":["href","rel"],"properties":{"href":{"description":"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing","type":"string"},"rel":{"description":"relation to the target resource of the link","type":"string"},"title":{"description":"a title for the link","type":"string"},"targetSchema":{"description":"JSON Schema describing the link target","$ref":"#"},"mediaType":{"description":"media type (as defined by RFC 2046) describing the link target","type":"string"},"method":{"description":"method for requesting the target of the link (e.g. for HTTP this might be \\"GET\\" or \\"DELETE\\")","type":"string"},"encType":{"description":"The media type in which to submit data along with the request","type":"string","default":"application/json"},"schema":{"description":"Schema describing the data to submit along with the request","$ref":"#"}}}}}')},1319:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')}},n={};function a(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var o=n[e]={id:e,loaded:!1,exports:{}};try{var i={id:e,module:o,factory:r[e],require:a};a.i.forEach((function(e){e(i)})),o=i.module,i.factory.call(o.exports,o,o.exports,i.require)}catch(e){throw o.error=e,e}return o.loaded=!0,o.exports}a.m=r,a.c=n,a.i=[],a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.hu=e=>e+"."+a.h()+".hot-update.js",a.hmrF=()=>"main."+a.h()+".hot-update.json",a.h=()=>"d358a8b4ef7493681e85",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",a.l=(r,n,o,i)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e,t,r,n={},o=a.c,i=[],s=[],l="idle",c=0,p=[];function d(e){l=e;for(var t=[],r=0;r0)return d("abort").then((function(){throw a[0]}));var o=d("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var i,s=d("apply"),l=function(e){i||(i=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)})),d("ready");break;case"ready":Object.keys(a.hmrI).forEach((function(e){a.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,v),b.parents=i,b.children=[],i=[],p.require=x})),a.hmrC={},a.hmrI={}})(),a.p="",(()=>{var e,t,r,n,o,i=a.hmrS_jsonp=a.hmrS_jsonp||{179:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=a.p+a.hu(t),o=new Error;a.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,r(o)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var o=n.pop(),i=o.id,s=o.chain,c=a.c[i];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:i};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:i};for(var p=0;p ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(g=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(g)return{error:g};if(y)for(h in d[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)a.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),d[h]=u)}r=void 0;for(var x,w=[],$=0;$0;){var o=r.pop(),s=a.c[o];if(s){var l={},d=s.hot._disposeHandlers;for($=0;$=0&&u.parents.splice(e,1))}}}for(var h in c)if(a.o(c,h)&&(s=a.c[h]))for(x=c[h],$=0;$=0&&s.children.splice(e,1)},apply:function(t){for(var r in d)a.o(d,r)&&(a.m[r]=d[r]);for(var n=0;n{for(var l in n)a.o(n,l)&&(r[l]=n[l],e&&e.push(l));i&&o.push(i),s[t]&&(s[t](),s[t]=void 0)},a.hmrI.jsonp=function(e,t){r||(r={},o=[],n=[],t.push(c)),a.o(r,e)||(r[e]=a.m[e])},a.hmrC.jsonp=function(e,s,p,d,u,h){u.push(c),t={},n=s,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),o=[],e.forEach((function(e){a.o(i,e)&&void 0!==i[e]?(d.push(l(e,h)),t[e]=!0):t[e]=!1})),a.f&&(a.f.jsonpHmr=function(e,r){t&&a.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},a.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(a.p+a.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();a(2915)})(); //# sourceMappingURL=rapidoc-min.js.map \ No newline at end of file diff --git a/docs/rapidoc.js b/docs/rapidoc.js index 1b901cb8..c8c0121d 100644 --- a/docs/rapidoc.js +++ b/docs/rapidoc.js @@ -12019,7 +12019,7 @@ module.exports = { /***/ }), -/***/ 6698: +/***/ 2915: /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { "use strict"; @@ -15080,54 +15080,27 @@ var prism_csharp = __webpack_require__(9016); grid-template-columns: 20px 1fr; } + .m-markdown .callout-icon { + display: inline-block; + flex-shrink: 0; + grid-row: 1; + } + .m-markdown .info-blockquote { background: #f8f7fc; border: 1px solid #ccced8; } - .m-markdown .info-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/info.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .warning-blockquote { background: #fff2d4; border: 1px solid #ffb100; } - .m-markdown .warning-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/warning.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - .m-markdown .danger-blockquote { background: #fdefef; border: 1px solid #dc5a41; } - .m-markdown .danger-blockquote:before { - display: inline-block; - height: 20px; - width: 20px; - content: ''; - background: url('https://vtex-dev-portal-navigation.fra1.digitaloceanspaces.com/danger.svg') - no-repeat 0 0; - background-size: 20px 20px; - position: absolute; - } - blockquote p{ grid-column: 2 / -1; margin: 0; @@ -15273,7 +15246,6 @@ var prism_csharp = __webpack_require__(9016); /* Button */ .m-btn { display: flex; - flex-direction: column; align-items: center; border-radius: var(--border-radius); font-weight: 400; @@ -15289,6 +15261,10 @@ var prism_csharp = __webpack_require__(9016); text-transform: uppercase; letter-spacing: 0.5px; } +.m-btn-image { + flex-direction: row; + column-gap: 10px; +} .m-btn-primary { background-color: var(--primary-color); color: var(--primary-color-invert); @@ -16289,15 +16265,14 @@ pre[class*="language-"] { ;// CONCATENATED MODULE: ./src/styles/custom-styles.js -/* -This file is reserved for any custom css that developers want to add to -customize their theme. Simply add your css to this file and yarn build. +/* +This file is reserved for any custom css that developers want to add to +customize their theme. Simply add your css to this file and yarn build. */ /* harmony default export */ const custom_styles = (i` .code-container { - padding-inline: 32px; - padding-top: 16px; + tab-size: 4; } .code-container > code { font-size: 14px; @@ -16386,6 +16361,7 @@ customize their theme. Simply add your css to this file and yarn build. .right-box-container { margin-top: 16px; + padding-inline: 16px; } .right-box-label { @@ -16400,6 +16376,18 @@ customize their theme. Simply add your css to this file and yarn build. height: 44px; } +.right-box-content { + border: 1px solid rgb(204, 206, 216); + border-radius: 4px; + padding-block: 24px; + margin-top: 24px; +} + +.right-box-select { + padding-inline: 16px; + width: 100%; +} + .server-template { position: relative; } @@ -16689,27 +16677,27 @@ function advancedSearch(searchVal, allSpecTags, searchOptions = []) { return pathsMatched; } -/* -export function prettyXml(sourceXmlString) { - const xmlDoc = new DOMParser().parseFromString(sourceXmlString, 'text/xml'); - const xsltDoc = new DOMParser().parseFromString([ - // describes how we want to modify the XML - indent everything - ` - - - - - - - - - `, - ].join('\n'), 'application/xml'); - const xsltProcessor = new XSLTProcessor(); - xsltProcessor.importStylesheet(xsltDoc); - const resultDoc = xsltProcessor.transformToDocument(xmlDoc); - return new XMLSerializer().serializeToString(resultDoc); -} +/* +export function prettyXml(sourceXmlString) { + const xmlDoc = new DOMParser().parseFromString(sourceXmlString, 'text/xml'); + const xsltDoc = new DOMParser().parseFromString([ + // describes how we want to modify the XML - indent everything + ` + + + + + + + + + `, + ].join('\n'), 'application/xml'); + const xsltProcessor = new XSLTProcessor(); + xsltProcessor.importStylesheet(xsltDoc); + const resultDoc = xsltProcessor.transformToDocument(xmlDoc); + return new XMLSerializer().serializeToString(resultDoc); +} */ function downloadResource(url, fileName) { @@ -16813,7 +16801,10 @@ async function ProcessSpec(specUrl, spec, generateMissingTags = false, sortTags // Security Scheme const securitySchemes = []; + let security = []; if ((_jsonParsedSpec$compo = jsonParsedSpec.components) !== null && _jsonParsedSpec$compo !== void 0 && _jsonParsedSpec$compo.securitySchemes) { + var _jsonParsedSpec$compo2; + if (jsonParsedSpec.security) security = jsonParsedSpec.security;else security = [(_jsonParsedSpec$compo2 = jsonParsedSpec.components) === null || _jsonParsedSpec$compo2 === void 0 ? void 0 : _jsonParsedSpec$compo2.securitySchemes]; const securitySchemeSet = new Set(); Object.entries(jsonParsedSpec.components.securitySchemes).forEach(kv => { if (!securitySchemeSet.has(kv[0])) { @@ -16918,7 +16909,8 @@ async function ProcessSpec(specUrl, spec, generateMissingTags = false, sortTags components, externalDocs: jsonParsedSpec.externalDocs, securitySchemes, - servers + servers, + security }; return parsedSpec; } @@ -17162,6 +17154,13 @@ const directive_t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,EL //# sourceMappingURL=unsafe-html.js.map +;// CONCATENATED MODULE: ./src/utils/security-utils.js +function isSecuritySchemeIdValid(security, securitySchemeId) { + if (!security) return true; + return security.some(securityObject => { + return securityObject.hasOwnProperty(securitySchemeId) && Array.isArray(securityObject[securitySchemeId]) && securityObject[securitySchemeId].length === 0; + }); +} // EXTERNAL MODULE: ./node_modules/httpsnippet/src/index.js var src = __webpack_require__(212); var src_default = /*#__PURE__*/__webpack_require__.n(src); @@ -17293,17 +17292,17 @@ function nestExampleIfPresent(example) { } : example; } -/** - * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes) - * [{ - * exampleVal : 'value to be rendered on the input control (text-box)', - * exampleList : [ - * value : '', - * printableValue: '', - * summary : '', - * description : '' - * ] - * }] +/** + * Normalize example object in the following format (List of object which is used to render example links and fill the input boxes) + * [{ + * exampleVal : 'value to be rendered on the input control (text-box)', + * exampleList : [ + * value : '', + * printableValue: '', + * summary : '', + * description : '' + * ] + * }] * */ function normalizeExamples(examples, dataType = 'string') { if (!examples) { @@ -17471,29 +17470,29 @@ function getSampleValueByType(schemaObj) { return '?'; } -/* -json2xml- TestCase - { - 'prop1' : 'one', - 'prop2' : 'two', - 'prop3' : [ 'a', 'b', 'c' ], - 'prop4' : { - 'ob1' : 'val-1', - 'ob2' : 'val-2' - } - } - - simple - - <0>a - <1>b - <2>c - - - val-1 - val-2 - - +/* +json2xml- TestCase + { + 'prop1' : 'one', + 'prop2' : 'two', + 'prop3' : [ 'a', 'b', 'c' ], + 'prop4' : { + 'ob1' : 'val-1', + 'ob2' : 'val-2' + } + } + + simple + + <0>a + <1>b + <2>c + + + val-1 + val-2 + + */ function json2xml(obj, level = 1) { const indent = ' '.repeat(level); @@ -17631,38 +17630,38 @@ function schemaToSampleObj(schema, config = {}) { } } if (schema.oneOf.length > 0) { - /* - oneOf: - - type: object - properties: - option1_PropA: - type: string - option1_PropB: - type: string - - type: object - properties: - option2_PropX: - type: string - properties: - prop1: - type: string - prop2: - type: string - minLength: 10 - The aboove Schem should generate the following 2 examples - Example-1 - { - prop1: 'string', - prop2: 'AAAAAAAAAA', <-- min-length 10 - option1_PropA: 'string', - option1_PropB: 'string' - } - Example-2 - { - prop1: 'string', - prop2: 'AAAAAAAAAA', <-- min-length 10 - option2_PropX: 'string' - } + /* + oneOf: + - type: object + properties: + option1_PropA: + type: string + option1_PropB: + type: string + - type: object + properties: + option2_PropX: + type: string + properties: + prop1: + type: string + prop2: + type: string + minLength: 10 + The aboove Schem should generate the following 2 examples + Example-1 + { + prop1: 'string', + prop2: 'AAAAAAAAAA', <-- min-length 10 + option1_PropA: 'string', + option1_PropB: 'string' + } + Example-2 + { + prop1: 'string', + prop2: 'AAAAAAAAAA', <-- min-length 10 + option2_PropX: 'string' + } */ let i = 0; // Merge all examples of each oneOf-schema @@ -17811,7 +17810,7 @@ function generateMarkdownForArrayAndObjectDescription(schema, level = 0) { let markdown = (schema.description || schema.title) && (schema.minItems || schema.maxItems) ? '' : ''; if (schema.title) { if (schema.description) { - markdown = `${markdown} ${schema.title}: ${schema.description}
    `; + markdown = `${markdown} ${schema.description}
    `; } else { markdown = `${markdown} ${schema.title}
    `; } @@ -17836,13 +17835,13 @@ function generateMarkdownForArrayAndObjectDescription(schema, level = 0) { } return markdown; } -/** - * For changing OpenAPI-Schema to an Object Notation, - * This Object would further be an input to UI Components to generate an Object-Tree - * @param {object} schema - Schema object from OpenAPI spec - * @param {object} obj - recursivly pass this object to generate object notation - * @param {number} level - recursion level - * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion +/** + * For changing OpenAPI-Schema to an Object Notation, + * This Object would further be an input to UI Components to generate an Object-Tree + * @param {object} schema - Schema object from OpenAPI spec + * @param {object} obj - recursivly pass this object to generate object notation + * @param {number} level - recursion level + * @param {string} suffix - used for suffixing property names to avoid duplicate props during object composion */ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { if (!schema) { @@ -17873,7 +17872,8 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { } }); obj = objWithAllProps; - } else if (schema.anyOf || schema.oneOf) { + } + if (schema.anyOf || schema.oneOf) { obj['::description'] = schema.description || ''; // 1. First iterate the regular properties if (schema.type === 'object' || schema.properties) { @@ -18023,7 +18023,7 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') { obj['::array-type'] = schema.items.items.type; } obj['::props'] = schemaInObjectNotation(schema.items, {}, level + 1); - } else { + } else if (!schema.allOf) { const typeObj = getTypeInfo(schema); if (typeObj !== null && typeObj !== void 0 && typeObj.html) { return `${typeObj.html}`; @@ -18218,6 +18218,7 @@ function getSchemaFromParam(param) { /* provided dependency */ var update_code_example_console = __webpack_require__(5108); + function buildFetchURL(requestPanelEl) { let fetchUrl = this.path; const queryString = []; @@ -18527,6 +18528,7 @@ function buildFetchHeaders(requestPanelEl) { var _this$closest; let acceptValue = ''; let contentTypeValue = ''; + const reqCookieHeader = []; const reqHeaders = new Headers(); const headers = []; const requestBodyContainerEl = requestPanelEl.querySelector('.request-body-container'); @@ -18580,21 +18582,59 @@ function buildFetchHeaders(requestPanelEl) { }); } - // Add Authentication Header if provided - this.resolvedSpec.securitySchemes.forEach(key => { - reqHeaders.append(key.name, key.value); - headers.push({ - name: key.name, - value: key.value + // Add Authentication Header if provided and necessary + let securitySchemes = this.security ? this.security : this.resolvedSpec.security; + securitySchemes.forEach((scheme, id) => { + if (this.selectedAuthScheme !== id) return; + Object.keys(scheme).map(key => { + const schemeKey = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === key); + if (!isSecuritySchemeIdValid(this.security, schemeKey.securitySchemeId)) return; + if (schemeKey.in !== 'cookie') { + reqHeaders.append(schemeKey.name, schemeKey.value); + headers.push({ + name: schemeKey.name, + value: schemeKey.value + }); + } + if (schemeKey.in === 'cookie') { + reqCookieHeader.push({ + name: schemeKey.name, + value: schemeKey.value + }); + } }); + + // add cookie header + if (reqCookieHeader.length > 0) { + const cookie = reqCookieHeader.map(el => `${el.name}=${el.value}`); + headers.push({ + name: 'Cookie', + value: cookie.join('; path=/') + }); + } }); return { reqHeaders, - headers + headers, + reqCookieHeader + }; +} +function buildFetchCookies(requestPanelEl) { + const cookies = []; + const cookieParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='cookie']")]; + cookieParamEls.forEach(el => { + if (!el.value) return; + cookies.push({ + name: el.dataset.pname, + value: el.value + }); + }); + return { + cookies }; } function decodeCurlyBrackets(url) { - url = url.replace(/\/?%7B/gm, '{').replace(/\/?%7D/gm, '}'); + url = url.replace(/%7B/gm, '{').replace(/%7D/gm, '}'); return url; } function updateCodeExample(tryBtnEl) { @@ -18609,14 +18649,19 @@ function updateCodeExample(tryBtnEl) { } = buildFetchOptions.call(this, requestPanelEl); const { reqHeaders, - headers + headers, + reqCookieHeader } = buildFetchHeaders.call(this, requestPanelEl); + const { + cookies + } = buildFetchCookies.call(this, requestPanelEl); const snippet = new (src_default())({ method: this.method, url: fetchUrl, queryString, headers, - postData + postData, + cookies }); snippet.requests[0].url = decodeCurlyBrackets(snippet.requests[0].url); snippet.requests[0].fullUrl = decodeCurlyBrackets(snippet.requests[0].fullUrl); @@ -18628,7 +18673,8 @@ function updateCodeExample(tryBtnEl) { return { fetchUrl, fetchOptions, - reqHeaders + reqHeaders, + reqCookie: cookies.concat(reqCookieHeader) }; } ;// CONCATENATED MODULE: ./src/templates/security-scheme-template.js @@ -18639,6 +18685,7 @@ function updateCodeExample(tryBtnEl) { // eslint-disable-line import/extensions + const codeVerifier = '731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890'; const codeChallenge = '4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc'; // Base64 encoded SHA-256 @@ -18805,16 +18852,16 @@ async function onWindowMessageEvent(msgEvent, winObj, tokenUrl, clientId, client // code_challenge generator for PKCE flow // TODO: Implement dynamic generation of code-challenge based on code-verifier -/* -async function generateCodeChallenge() { - const encoder = new TextEncoder(); - const data = encoder.encode(codeVerifier); - const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array - // const utf8Decoder = new TextDecoder(); - // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash)); - const b64EncodedSha256 = base64encode(sha256Hash); - return b64EncodedSha256; -} +/* +async function generateCodeChallenge() { + const encoder = new TextEncoder(); + const data = encoder.encode(codeVerifier); + const sha256Hash = await window.crypto.subtle.digest('SHA-256', data); // returns Unit8Array + // const utf8Decoder = new TextDecoder(); + // const b64EncodedSha256 = btoa(utf8Decoder.decode(sha256Hash)); + const b64EncodedSha256 = base64encode(sha256Hash); + return b64EncodedSha256; +} */ async function onInvokeOAuthFlow(securitySchemeId, flowType, authUrl, tokenUrl, e) { @@ -19005,94 +19052,139 @@ function handleApiKeyChange(e, securitySchemeId, apiKey) { const requestPanelEl = this.getRequestPanel(e); updateCodeExample.call(this, requestPanelEl); } +function handleSecuritySchemeChange(e) { + const newSelectedAuthScheme = parseInt(e.target.value); + this.selectedAuthScheme = newSelectedAuthScheme; +} +function getSchemeTypes(scheme) { + let authTypes = ''; + const keys = Object.keys(scheme); + const keyCount = keys.length; + const v = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === keys[0]); + if (v.type === 'apiKey') { + authTypes += v.in.charAt(0).toUpperCase() + v.in.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else if (v.type === 'http') { + authTypes += v.scheme.charAt(0).toUpperCase() + v.scheme.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else if (v.type) { + authTypes += v.type.charAt(0).toUpperCase() + v.type.slice(1) + (keyCount > 1 ? ` + ${keyCount - 1}` : ''); + } else authTypes += 'Authentication'; + return authTypes; +} +function selectSecuritySchemeTemplate() { + return lit_html_x` +
    + +
    `; +} function securitySchemeTemplate() { var _this$resolvedSpec$se4; if (!this.resolvedSpec) { return ''; } + if (this.security && this.security.length === 0) return ''; // If security is explicitly defined as [], it indicates that an authentation header is not required const providedApiKeys = (_this$resolvedSpec$se4 = this.resolvedSpec.securitySchemes) === null || _this$resolvedSpec$se4 === void 0 ? void 0 : _this$resolvedSpec$se4.filter(v => v.finalKeyValue); if (!providedApiKeys) { return; } return lit_html_x` -
    -
    Header Auth
    - ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0 ? lit_html_x` -
    - ${this.resolvedSpec.securitySchemes.map(v => lit_html_x` -
    -
    ${v.name}
    - ${v.description ? lit_html_x` -
    - ${unsafe_html_o(marked(v.description || ''))} -
    ` : ''} - - ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer' ? lit_html_x` -
    - ${v.in !== 'cookie' ? lit_html_x` - ` : lit_html_x` cookies cannot be set from here`} -
    ` : ''} - ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic' ? lit_html_x` -
    - Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    Authentication
    +
    + ${selectSecuritySchemeTemplate.call(this)} +
    + ${this.resolvedSpec.security.map((scheme, id) => { + return lit_html_x` + ${id === this.selectedAuthScheme ? lit_html_x`
    + ${Object.keys(scheme).map(key => { + const v = this.resolvedSpec.securitySchemes.find(s => s.securitySchemeId === key); + if (!isSecuritySchemeIdValid(this.security, v.securitySchemeId)) return; + return lit_html_x` +
    +
    ${v.name}
    + ${v.description ? lit_html_x` +
    + ${unsafe_html_o(marked(v.description || ''))} +
    ` : ''} + + ${v.type.toLowerCase() === 'apikey' || v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer' ? lit_html_x` +
    + +
    ` : ''} + ${v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'basic' ? lit_html_x` +
    + Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password. +
    +
    + { + const requestPanelEl = this.getRequestPanel(e); + updateCodeExample.call(this, requestPanelEl); + }} + > + { + const requestPanelEl = this.getRequestPanel(e); + updateCodeExample.call(this, requestPanelEl); + }} + > + +
    ` : ''}
    -
    - { - const requestPanelEl = this.getRequestPanel(e); - updateCodeExample.call(this, requestPanelEl); - }} - > - { - const requestPanelEl = this.getRequestPanel(e); - updateCodeExample.call(this, requestPanelEl); - }} - > - -
    ` : ''} -
    - ${v.type.toLowerCase() === 'oauth2' ? lit_html_x` -
    - ${Object.keys(v.flows).map(f => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))} -
    - ` : ''} - `)} -
    ` : ''} - - - -
    + ${v.type.toLowerCase() === 'oauth2' ? lit_html_x` +
    + ${Object.keys(v.flows).map(f => oAuthFlowTemplate.call(this, f, v['x-client-id'], v['x-client-secret'], v.securitySchemeId, v.flows[f], v['x-default-scopes'], v['x-receive-token-in']))} +
    + ` : ''} + `; + })} +
    ` : ''} + `; + })} +
    + +
    ` : ''} `; } function pathSecurityTemplate(pathSecurity) { @@ -19671,12 +19763,13 @@ if (!customElements.get('json-tree')) customElements.define('json-tree', JsonTre } .xxx-of-key { - font-size: calc(var(--font-size-small) - 2px); + font-family: var(--font-mono); + font-size: 12px; font-weight:bold; - background-color:var(--primary-color); - border-radius:2px; + background-color:#f8f7fc; + border-radius:4px; line-height:calc(var(--font-size-small) + 6px); - padding:0px 5px; + padding: 0.2em 0.4em; margin-bottom:1px; display:inline-block; } @@ -21306,6 +21399,7 @@ class ApiRequest extends lit_element_s { this.activeResponseTab = 'response'; // allowed values: response, headers, curl this.selectedRequestBodyType = ''; this.selectedRequestBodyExample = ''; + this.selectedAuthScheme = 0; this.activeParameterSchemaTabs = {}; this.showCurlBeforeTry = true; this.selectedLanguage = 'shell'; @@ -21455,6 +21549,9 @@ class ApiRequest extends lit_element_s { }, // internal tracking of selected request-body example + selectedAuthScheme: { + type: Number + }, selectedLanguage: { type: String }, @@ -22319,6 +22416,7 @@ class ApiRequest extends lit_element_s { } } return lit_html_x` +
    ${this.codeExampleTemplate('flex')} @@ -22435,7 +22533,8 @@ class ApiRequest extends lit_element_s { const { fetchUrl, fetchOptions, - reqHeaders + reqHeaders, + reqCookie } = updateCodeExample.call(this, tryBtnEl); const encodedUrl = `/api/proxy/${encodeURIComponent(fetchUrl)}`; this.responseUrl = ''; @@ -22473,6 +22572,11 @@ class ApiRequest extends lit_element_s { credentials: tempRequest.credentials, body: tempRequest.body }; + + //fetch uses the cookies in the browser, so we add the needed cookies for the request + reqCookie.forEach(cookie => { + document.cookie = `${cookie.name}=${cookie.value}; path=/`; + }); const fetchRequest = new Request(tempRequest.url, updatedFetchOptions); let fetchResponse; let responseClone; @@ -22589,6 +22693,11 @@ class ApiRequest extends lit_element_s { } } this.requestUpdate(); + + //now we remove the cookies added + reqCookie.forEach(cookie => { + document.cookie = `${cookie.name}=; path=/`; + }); } getRequestPanel(e) { return e.target.closest('.request-panel'); @@ -22783,15 +22892,20 @@ class SchemaTable extends lit_element_s { border-radius:2px; border: 1px solid transparent; display: inline-block; - margin-left: -16px; - color:var(--primary-color); + color:var(--vtex-pink); cursor:pointer; font-size: calc(var(--font-size-small) + 4px); font-family: var(--font-mono); background-clip: border-box; } .obj-toggle:hover { - border-color: var(--primary-color); + border-color: var(--vtex-pink); + } + .obj-toggle.expanded::after { + content: '-'; + } + .obj-toggle.collapsed::after { + content: '+'; } .tr.expanded + .object-body { display:block; @@ -22872,11 +22986,17 @@ class SchemaTable extends lit_element_s { let isOneOfLabel = false; if (key.startsWith('::ONE~OF') || key.startsWith('::ANY~OF')) { keyLabel = key.replace('::', '').replace('~', ' '); + description = "Click + to expand or - to hide each valid schema."; isOneOfLabel = true; } else if (key.startsWith('::OPTION')) { const parts = key.split('~'); - keyLabel = parts[1]; // eslint-disable-line prefer-destructuring - keyDescr = parts[2]; // eslint-disable-line prefer-destructuring + if (parts[2]) { + keyLabel = parts[2]; + keyDescr = ''; + } else { + keyLabel = parts[1]; + keyDescr = parts[2]; + } } else { keyLabel = key; } @@ -22901,9 +23021,7 @@ class SchemaTable extends lit_element_s {
    ${keyLabel || keyDescr ? lit_html_x` - - ${schemaLevel < this.schemaExpandLevel ? '-' : '+'} - ` : ''} + ` : ''} ${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? lit_html_x`${keyLabel}${keyDescr}` : keyLabel.endsWith('*') ? lit_html_x`${data['::deprecated'] ? '❌' : ''} ${keyLabel.substring(0, keyLabel.length - 1)}*` : lit_html_x`${data['::deprecated'] ? '❌' : ''} ${keyLabel === '::props' ? '' : keyLabel}`} ${data['::type'] === 'xxx-of' && dataType === 'array' ? lit_html_x`ARRAY` : ''}
    @@ -22983,26 +23101,21 @@ class SchemaTable extends lit_element_s { handleAllEvents(e) { if (e.target.classList.contains('obj-toggle')) { this.toggleObjectExpand(e); - } else if (e.target.classList.contains('schema-multiline-toggle')) { - this.schemaDescriptionExpanded = this.schemaDescriptionExpanded === 'true' ? 'false' : 'true'; - } else if (e.target.classList.contains('descr-expand-toggle')) { - const trEl = e.target.closest('.tr'); - if (trEl) { - trEl.classList.toggle('expanded-descr'); - trEl.style.maxHeight = trEl.scrollHeight; - } } } toggleObjectExpand(e) { - const rowEl = e.target.closest('.tr'); + const toggleEl = e.target; + const rowEl = toggleEl.closest('.tr'); if (rowEl.classList.contains('expanded')) { rowEl.classList.add('collapsed'); rowEl.classList.remove('expanded'); - e.target.innerText = '+'; + toggleEl.classList.add('collapsed'); + toggleEl.classList.remove('expanded'); } else { rowEl.classList.remove('collapsed'); rowEl.classList.add('expanded'); - e.target.innerText = '-'; + toggleEl.classList.add('expanded'); + toggleEl.classList.remove('collapsed'); } } } @@ -23699,6 +23812,16 @@ function processPathDescription(description) { return replacedMarkdown; } ;// CONCATENATED MODULE: ./src/utils/renderBlockquote.js +const calloutColors = { + info: '#8C929D', + warning: '#FFB100', + danger: '#DC5A41' +}; +function calloutIcon(type) { + const fill = calloutColors[type] || calloutColors.info; + const glyph = type === 'info' ? '' : ''; + return `${glyph}`; +} function renderBlockquote(text) { const infoMarker = 'ℹ️'; const bookMarker = '📘'; @@ -23706,23 +23829,184 @@ function renderBlockquote(text) { const dangerMarker = '❗'; if (text.startsWith(`

    ${infoMarker}`)) { // Apply custom styling for the info blockquote - return `

    ${text.replace(infoMarker, '').trim()}
    `; + return `
    ${calloutIcon('info')}${text.replace(infoMarker, '').trim()}
    `; } if (text.startsWith(`

    ${bookMarker}`)) { // Apply custom styling for the info blockquote - return `

    ${text.replace(bookMarker, '').trim()}
    `; + return `
    ${calloutIcon('info')}${text.replace(bookMarker, '').trim()}
    `; } if (text.startsWith(`

    ${warningMarker} `)) { // Apply custom styling for the warning blockquote - return `

    ${text.replace(warningMarker, '').trim()}
    `; + return `
    ${calloutIcon('warning')}${text.replace(warningMarker, '').trim()}
    `; } if (text.startsWith(`

    ${dangerMarker} `)) { // Apply custom styling for the danger blockquote - return `

    ${text.replace(dangerMarker, '').trim()}
    `; + return `
    ${calloutIcon('danger')}${text.replace(dangerMarker, '').trim()}
    `; } // Default rendering for regular blockquotes - return `
    ${text}
    `; + return `
    ${calloutIcon('info')}${text}
    `; +} +;// CONCATENATED MODULE: ./src/components/assets/postman-icon.js +/* eslint-disable max-len */ + + +/* eslint-disable indent */ +function postmanIcon(dimensions) { + var _dimensions$width, _dimensions$height; + const width = (_dimensions$width = dimensions === null || dimensions === void 0 ? void 0 : dimensions.width) !== null && _dimensions$width !== void 0 ? _dimensions$width : 16; + const height = (_dimensions$height = dimensions === null || dimensions === void 0 ? void 0 : dimensions.height) !== null && _dimensions$height !== void 0 ? _dimensions$height : 16; + return lit_html_x` +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + `; +} +;// CONCATENATED MODULE: ./src/components/assets/openapi-icon.js +/* eslint-disable no-tabs */ +/* eslint-disable max-len */ + + +/* eslint-disable indent */ +function openapiIcon(dimensions) { + var _dimensions$width, _dimensions$height; + const width = (_dimensions$width = dimensions === null || dimensions === void 0 ? void 0 : dimensions.width) !== null && _dimensions$width !== void 0 ? _dimensions$width : 16; + const height = (_dimensions$height = dimensions === null || dimensions === void 0 ? void 0 : dimensions.height) !== null && _dimensions$height !== void 0 ? _dimensions$height : 16; + return lit_html_x` +
    + + + + + + + + + + + + +
    + `; } ;// CONCATENATED MODULE: ./src/templates/expanded-endpoint-template.js @@ -23739,6 +24023,8 @@ function renderBlockquote(text) { + + /* eslint-disable indent */ function headingRenderer(tagElementId) { const renderer = new marked.Renderer(); @@ -23782,18 +24068,40 @@ function expandedEndpointBodyTemplate(path, tagName = '') { ${path.xBadges.map(v => lit_html_x`${v.label}`)}
    ` : ''} -
    +
    ${this.renderStyle === 'focused' && tagName !== 'General ⦂' ? lit_html_x`

    ${this.resolvedSpec.info.title} › ${tagName}

    ` : ''} - ${this.specUrl && this.allowSpecFileDownload ? lit_html_x`
    - - + -
    ` : ''} + }}'> + ${openapiIcon()} + View OpenAPI spec + +
    ` : ''} + ${this.postmanUrl ? lit_html_x`
    + + +
    ` : ''}

    ${path.shortSummary || `${path.method.toUpperCase()} ${path.path}`}

    ${path.isWebhook ? lit_html_x` WEBHOOK ` : lit_html_x` @@ -23843,6 +24151,7 @@ function expandedEndpointBodyTemplate(path, tagName = '') { file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle" spec-url="${this.specUrl}" + postman-url="${this.postmanUrl}" allow-spec-file-download="${this.allowSpecFileDownload}" > @@ -23972,6 +24281,8 @@ function componentsTemplate() { + + /* eslint-disable indent */ function overview_template_headingRenderer() { const renderer = new marked.Renderer(); @@ -23986,15 +24297,36 @@ function overviewTemplate() {
    ${(_this$resolvedSpec = this.resolvedSpec) !== null && _this$resolvedSpec !== void 0 && _this$resolvedSpec.info ? lit_html_x` - ${this.specUrl && this.allowSpecFileDownload === 'true' ? lit_html_x` -
    - - + -
    ` : ''} + }}'> + ${openapiIcon()} + View OpenAPI spec + + ` : ''} + ${this.postmanUrl ? lit_html_x`
    + + +
    ` : ''} +
    ${this.resolvedSpec.info.title} ${!this.resolvedSpec.info.version ? '' : lit_html_x` @@ -24334,6 +24666,9 @@ function focusedEndpointTemplate() { } if (selectedPathObj) { // In focused mode we must expand the nav-bar tag element if it is collapsed + if (selectedPathObj.servers && selectedPathObj.servers.length > 0) { + setApiServer.call(this, selectedPathObj.servers[0].url); + } const newNavEl = this.shadowRoot.getElementById(`link-${focusElId}`); expandCollapseNavBarTag(newNavEl, 'expand'); focusedTemplate = wrapFocusedTemplate.call(this, expandedEndpointBodyTemplate.call(this, selectedPathObj, selectedTagObj.name || '', selectedTagObj.description || '')); @@ -24504,7 +24839,7 @@ function endpointBodyTemplate(path) {
    - ${path.description ? lit_html_x`
    ${unsafe_html_o(path.description)}
    ` : ''} + ${path.description ? lit_html_x`
    ${unsafe_html_o(marked(path.description))}
    ` : ''} ${pathSecurityTemplate.call(this, path.security)} ${codeSampleTabPanel} @@ -24605,7 +24940,7 @@ function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpan return true; }).map(path => lit_html_x`
    - + ${endpointHeadTemplate.call(this, path, pathsExpanded)} ${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
    `)} @@ -25082,12 +25417,12 @@ function setTheme(baseTheme, theme = {}) { const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : 'brown'; const headerColor = theme.headerColor ? theme.headerColor : color_utils.color.brightness(bg1, -180); - /* - const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10); - const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5); - const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1; - const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor; - const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor; + /* + const navBgColor = theme.navBgColor ? theme.navBgColor : ColorUtils.color.brightness(bg1, -10); + const navTextColor = theme.navTextColor ? theme.navTextColor : ColorUtils.color.brightness(fg1, 5); + const navHoverBgColor = theme.navHoverBgColor ? theme.navHoverBgColor : bg1; + const navHoverTextColor = theme.navHoverTextColor ? theme.navHoverTextColor : primaryColor; + const navAccentColor = theme.navAccentColor ? theme.navAccentColor : primaryColor; */ const navBgColor = theme.navBgColor ? theme.navBgColor : color_utils.color.brightness(bg1, -200); const navTextColor = theme.navTextColor ? theme.navTextColor : color_utils.color.opacity(color_utils.color.invert(navBgColor), '0.65'); @@ -25436,15 +25771,15 @@ function mainBodyTemplate(isMini = false, showExpandCollapse = true, showTags = class RapiDoc extends lit_element_s { constructor() { super(); - /* const intersectionObserverOptions = { - root: this.getRootNode().host, - rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom - threshold: 0, - }; - this.showSummaryWhenCollapsed = true; - // Will activate intersection observer only after spec load and hash analyze - // to scroll to the proper element without being reverted by observer behavior - this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions); + /* const intersectionObserverOptions = { + root: this.getRootNode().host, + rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom + threshold: 0, + }; + this.showSummaryWhenCollapsed = true; + // Will activate intersection observer only after spec load and hash analyze + // to scroll to the proper element without being reverted by observer behavior + this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions); */ this.isIntersectionObserverActive = false; } @@ -25492,6 +25827,11 @@ class RapiDoc extends lit_element_s { type: String, attribute: false }, + // Postman collection + postmanUrl: { + type: String, + attribute: 'postman-url' + }, // UI Layouts layout: { type: String @@ -26020,11 +26360,11 @@ class RapiDoc extends lit_element_s { super.connectedCallback(); const parent = this.parentElement; if (parent) { - /* if (parent.offsetWidth === 0 && parent.style.width === '') { - parent.style.width = '100vw'; - } - if (parent.offsetHeight === 0 && parent.style.height === '') { - parent.style.height = '100vh'; + /* if (parent.offsetWidth === 0 && parent.style.width === '') { + parent.style.width = '100vw'; + } + if (parent.offsetHeight === 0 && parent.style.height === '') { + parent.style.height = '100vh'; } */ if (parent.tagName === 'BODY') { if (!parent.style.marginTop) { @@ -26121,7 +26461,7 @@ class RapiDoc extends lit_element_s { this.updateRoute = 'true'; } if (!this.routePrefix) { - this.routePrefix = '#'; + this.routePrefix = window.location.href.indexOf('#') > -1 ? '#' : '?endpoint='; } if (!this.sortTags || !'true, false,'.includes(`${this.sortTags},`)) { this.sortTags = 'false'; @@ -26203,8 +26543,8 @@ class RapiDoc extends lit_element_s { // Cleanup disconnectedCallback() { - /* if (this.intersectionObserver) { - this.intersectionObserver.disconnect(); + /* if (this.intersectionObserver) { + this.intersectionObserver.disconnect(); } */ super.disconnectedCallback(); } @@ -26215,24 +26555,24 @@ class RapiDoc extends lit_element_s { } render() { // return render(mainBodyTemplate(this), this.shadowRoot, { eventContext: this }); - /* const cssLinkEl = document.querySelector(`link[href*="${this.cssFile}"]`); - // adding custom style for RapiDoc - if (cssLinkEl) { - this.shadowRoot.appendChild(cssLinkEl.cloneNode()); + /* const cssLinkEl = document.querySelector(`link[href*="${this.cssFile}"]`); + // adding custom style for RapiDoc + if (cssLinkEl) { + this.shadowRoot.appendChild(cssLinkEl.cloneNode()); } */ return mainBodyTemplate.call(this); } - /* observeExpandedContent() { - // Main Container - const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me'); - observeOverviewEls.forEach((targetEl) => { - this.intersectionObserver.observe(targetEl); - }); + /* observeExpandedContent() { + // Main Container + const observeOverviewEls = this.shadowRoot.querySelectorAll('.observe-me'); + observeOverviewEls.forEach((targetEl) => { + this.intersectionObserver.observe(targetEl); + }); } */ attributeChangedCallback(name, oldVal, newVal) { - if (name === 'spec-url') { + if (name === 'spec-url' || name === 'spec') { if (oldVal !== newVal) { // put it at the end of event-loop to load all the attributes window.setTimeout(async () => { @@ -26446,8 +26786,8 @@ class RapiDoc extends lit_element_s { } } - /** - * Return the URL from where is served the RapiDoc component, removing any hash and route prefix + /** + * Return the URL from where is served the RapiDoc component, removing any hash and route prefix */ getComponentBaseURL() { const { @@ -26459,20 +26799,28 @@ class RapiDoc extends lit_element_s { if (!cleanRouterPrefix) { return href.split('#')[0]; } - const indexOfRoutePrefix = href.lastIndexOf(cleanRouterPrefix); - if (indexOfRoutePrefix === -1) { + const splitRoute = href.split(cleanRouterPrefix); + if (splitRoute.length <= 0) { return href; } - return href.slice(0, indexOfRoutePrefix); + return splitRoute[0]; } - /** - * From the URL return the ID of the element whether it is in the hash or if used a router prefix without a hash + /** + * Returns the element id encoded in the URL's hash or router prefix, or + * an empty string when the prefix isn't present (so callers don't get the + * full href and pass it to scrollToPath, which would mis-focus the doc). */ getElementIDFromURL() { + const { + href + } = window.location; const baseURL = this.getComponentBaseURL(); - const elementId = window.location.href.replace(baseURL + this.routePrefix, ''); - return elementId; + const prefix = `${baseURL}${this.routePrefix}`; + if (!href.startsWith(prefix) || href === baseURL) { + return ''; + } + return href.slice(prefix.length); } replaceHistoryState(hashId) { const baseURL = this.getComponentBaseURL(); @@ -26585,16 +26933,16 @@ class RapiDoc extends lit_element_s { } } - /** - * Called by - * - onClick of Navigation Bar - * - onClick of Advanced Search items - * - * Functionality: - * 1. First deactivate IntersectionObserver - * 2. Scroll to the element - * 3. Activate IntersectionObserver (after little delay) - * + /** + * Called by + * - onClick of Navigation Bar + * - onClick of Advanced Search items + * + * Functionality: + * 1. First deactivate IntersectionObserver + * 2. Scroll to the element + * 3. Activate IntersectionObserver (after little delay) + * */ async scrollToEventTarget(event, scrollNavItemToView = true) { if (!(event.type === 'click' || event.type === 'keyup' && event.keyCode === 13)) { @@ -27193,9 +27541,9 @@ class OauthReceiver extends HTMLElement { window.addEventListener('storage', e => this.receiveStorage(e), true); } - /** - * Read OAuth2 parameters and sends them off - * to the window opener through `window.postMessage`. + /** + * Read OAuth2 parameters and sends them off + * to the window opener through `window.postMessage`. */ receiveAuthParms() { let authData = {}; @@ -70113,7 +70461,7 @@ module.exports = JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$s /******/ /******/ /* webpack/runtime/getFullHash */ /******/ (() => { -/******/ __webpack_require__.h = () => ("e5ec666a776024491683") +/******/ __webpack_require__.h = () => ("d358a8b4ef7493681e85") /******/ })(); /******/ /******/ /* webpack/runtime/global */ @@ -71132,7 +71480,7 @@ module.exports = JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$s /******/ // module cache are used so entry inlining is disabled /******/ // startup /******/ // Load entry module and return exports -/******/ var __webpack_exports__ = __webpack_require__(6698); +/******/ var __webpack_exports__ = __webpack_require__(2915); /******/ /******/ })() ; \ No newline at end of file