forked from ErikWittern/openapi-snippet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger-snippet-generator.min.js
2 lines (2 loc) · 431 KB
/
swagger-snippet-generator.min.js
1
2
/*! For license information please see swagger-snippet-generator.min.js.LICENSE.txt */
(()=>{var e={8019:(e,t,r)=>{"use strict";var n=r(7354),a=r(1030),o=r(4006),i=r(2585),s=r(2492),c=r(5950),l=r(3845),u=r(1897),p=r(6740);e.exports=g,g.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);return!0!==r.$async&&(this.errors=r.errors),a},g.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},g.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return S(this,t=a.normalizeId(t||i)),this._schemas[t]=this._addSchema(e,r,n,!0),this},g.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},g.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(h)?h:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var a="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(a);this.logger.error(a)}return n},g.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=a.schema.call(e,{schema:{}},t);if(r){var o=r.schema,s=r.root,c=r.baseId,l=n.call(e,o,s,void 0,c);return e._fragments[t]=new i({ref:t,fragment:!0,schema:o,root:s,baseId:c,validate:l}),l}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var o=this._getId(e);o&&(o=a.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},g.prototype.addFormat=function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this._formats[e]=t,this},g.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,a="",o=0;o<e.length;o++){var i=e[o];i&&(a+=n+i.dataPath+" "+i.message+r)}return a.slice(0,-r.length)},g.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,s=o?o(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var l=a.normalizeId(this._getId(e));l&&n&&S(this,l);var u,p=!1!==this._opts.validateSchema&&!t;p&&!(u=l&&l==a.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=a.ids.call(this,e),d=new i({id:l,schema:e,localRefs:f,cacheKey:s,meta:r});return"#"!=l[0]&&n&&(this._refs[l]=d),this._cache.put(s,d),p&&u&&this.validateSchema(e,!0),d},g.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,a;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{a=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=a,e.refs=a.refs,e.refVal=a.refVal,e.root=a.root,a;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},g.prototype.compileAsync=r(4686);var f=r(3635);g.prototype.addKeyword=f.add,g.prototype.getKeyword=f.get,g.prototype.removeKeyword=f.remove,g.prototype.validateKeyword=f.validate;var d=r(4551);g.ValidationError=d.Validation,g.MissingRefError=d.MissingRef,g.$dataMetaSchema=u;var h="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],y=["/properties"];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=p.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:O,warn:O,error:O};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return _;case"id":return w;default:return E}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=p.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;if(e._opts.$data&&(t=r(3420),e.addMetaSchema(t,t.$id,!0)),!1!==e._opts.meta){var n=r(8198);e._opts.$data&&(n=u(n,y)),e.addMetaSchema(n,h,!0),e._refs["http://json-schema.org/schema"]=h}}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=a.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var a=t[n];a.meta||r&&!r.test(n)||(e._cache.del(a.cacheKey),delete t[n])}}function w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function E(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function _(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function O(){}},4006:e=>{"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={}}},4686:(e,t,r)=>{"use strict";var n=r(4551).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||c(e)}));return a&&i.then((function(e){a(null,e)}),a),i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function c(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(l(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=o._loadingSchemas[n];return a||(a=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(i,i),a.then((function(e){if(!l(n))return s(e).then((function(){l(n)||o.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function i(){delete o._loadingSchemas[n]}function l(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}},4551:(e,t,r)=>{"use strict";var n=r(1030);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}},5950:(e,t,r)=>{"use strict";var n=r(6740),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,c=/^(?:[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,l=/^(?:(?:[^\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,u=/^(?:(?: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,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function y(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 g(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":l,url:u,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:E,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":h},m.full={date:y,time:g,"date-time":function(e){var t=e.split(v);return 2==t.length&&y(t[0])&&g(t[1],!0)},uri:function(e){return b.test(e)&&c.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":l,url:u,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:E,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":h};var v=/t|\s/i,b=/\/|:/,w=/[^\\]\\Z/;function E(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7354:(e,t,r)=>{"use strict";var n=r(1030),a=r(6740),o=r(4551),i=r(2492),s=r(1873),c=a.ucs2length,l=r(2017),u=o.Validation;function p(e,t,r){var n=d.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 f(e,t,r){var n=d.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function d(e,t,r){for(var n=0;n<this._compilations.length;n++){var a=this._compilations[n];if(a.schema==e&&a.root==t&&a.baseId==r)return n}return-1}function h(e,t){return"var pattern"+e+" = new RegExp("+a.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function y(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function g(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,d,b){var w=this,E=this._opts,_=[void 0],S={},O=[],P={},j=[],x={},R=[];r=r||{schema:t,refVal:_,refs:S};var T=p.call(this,t,r,b),k=this._compilations[T.index];if(T.compiling)return k.callValidate=function e(){var t=k.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var N=this._formats,A=this.RULES;try{var C=I(t,r,d,b);k.validate=C;var D=k.callValidate;return D&&(D.schema=C.schema,D.errors=null,D.refs=C.refs,D.refVal=C.refVal,D.root=C.root,D.$async=C.$async,E.sourceCode&&(D.source=C.source)),C}finally{f.call(this,t,r,b)}function I(t,i,p,f){var d=!i||i&&i.schema==t;if(i.schema!=r.schema)return e.call(w,t,i,p,f);var b,P=!0===t.$async,x=s({isTop:!0,schema:t,isRoot:d,baseId:f,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:A,validate:s,util:a,resolve:n,resolveRef:L,usePattern:F,useDefault:U,useCustomRule:q,opts:E,formats:N,logger:w.logger,self:w});x=v(_,y)+v(O,h)+v(j,m)+v(R,g)+x,E.processCode&&(x=E.processCode(x,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",x)(w,A,N,r,_,j,R,l,c,u),_[0]=b}catch(e){throw w.logger.error("Error compiling schema, function code:",x),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=_,b.root=d?b:i,P&&(b.$async=!0),!0===E.sourceCode&&(b.source={code:x,patterns:O,defaults:j}),b}function L(t,a,o){a=n.url(t,a);var i,s,c=S[a];if(void 0!==c)return $(i=_[c],s="refVal["+c+"]");if(!o&&r.refs){var l=r.refs[a];if(void 0!==l)return $(i=r.refVal[l],s=M(a,i))}s=M(a);var u=n.call(w,I,r,a);if(void 0===u){var p=d&&d[a];p&&(u=n.inlineRef(p,E.inlineRefs)?p:e.call(w,p,r,d,t))}if(void 0!==u)return function(e,t){var r=S[e];_[r]=t}(a,u),$(u,s);!function(e){delete S[e]}(a)}function M(e,t){var r=_.length;return _[r]=t,S[e]=r,"refVal"+r}function $(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function F(e){var t=P[e];return void 0===t&&(t=P[e]=O.length,O[t]=e),"pattern"+t}function U(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return a.toQuotedString(e);case"object":if(null===e)return"null";var t=i(e),r=x[t];return void 0===r&&(r=x[t]=j.length,j[r]=e),"default"+r}}function q(e,t,r,n){if(!1!==w._opts.validateSchema){var a=e.definition.dependencies;if(a&&!a.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+a.join(","));var o=e.definition.validateSchema;if(o&&!o(t)){var i="keyword schema is invalid: "+w.errorsText(o.errors);if("log"!=w._opts.validateSchema)throw new Error(i);w.logger.error(i)}}var s,c=e.definition.compile,l=e.definition.inline,u=e.definition.macro;if(c)s=c.call(w,t,r,n);else if(u)s=u.call(w,t,r,n),!1!==E.validateSchema&&w.validateSchema(s,!0);else if(l)s=l.call(w,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=R.length;return R[p]=s,{code:"customRule"+p,validate:s}}}},1030:(e,t,r)=>{"use strict";var n=r(6579),a=r(2017),o=r(6740),i=r(2585),s=r(7106);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof i)return h(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var a,o,s,u=l.call(this,t,r);return u&&(a=u.schema,t=u.root,s=u.baseId),a instanceof i?o=a.validate||e.call(this,a.schema,t,void 0,s):void 0!==a&&(o=h(a,this._opts.inlineRefs)?a:e.call(this,a,t,void 0,s)),o}function l(e,t){var r=n.parse(t),a=v(r),o=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==o){var s=w(a),c=this._refs[s];if("string"==typeof c)return u.call(this,e,c,r);if(c instanceof i)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof i))return;if(c.validate||this._compile(c),s==w(t))return{schema:c,root:e,baseId:o};e=c}if(!e.schema)return;o=g(this._getId(e.schema))}return f.call(this,r,o,e.schema,e)}function u(e,t,r){var n=l.call(this,e,t);if(n){var a=n.schema,o=n.baseId;e=n.root;var i=this._getId(a);return i&&(o=E(o,i)),f.call(this,r,o,a,e)}}e.exports=c,c.normalizeId=w,c.fullPath=g,c.url=E,c.ids=function(e){var t=w(this._getId(e)),r={"":t},i={"":g(t,!1)},c={},l=this;return s(e,{allKeys:!0},(function(e,t,s,u,p,f,d){if(""!==t){var h=l._getId(e),m=r[u],y=i[u]+"/"+p;if(void 0!==d&&(y+="/"+("number"==typeof d?d:o.escapeFragment(d))),"string"==typeof h){h=m=w(m?n.resolve(m,h):h);var g=l._refs[h];if("string"==typeof g&&(g=l._refs[g]),g&&g.schema){if(!a(e,g.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=w(y))if("#"==h[0]){if(c[h]&&!a(e,c[h]))throw new Error('id "'+h+'" resolves to more than one schema');c[h]=e}else l._refs[h]=y}r[t]=m,i[t]=y}})),c},c.inlineRef=h,c.schema=l;var p=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var a=e.fragment.split("/"),i=1;i<a.length;i++){var s=a[i];if(s){if(void 0===(r=r[s=o.unescapeFragment(s)]))break;var c;if(!p[s]&&((c=this._getId(r))&&(t=E(t,c)),r.$ref)){var u=E(t,r.$ref),f=l.call(this,n,u);f&&(r=f.schema,n=f.root,t=f.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var d=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function h(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?y(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function y(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=y(t)),r==1/0)return 1/0}else for(var a in e){if("$ref"==a)return 1/0;if(d[a])r++;else if("object"==typeof(t=e[a])&&(r+=y(t)+1),r==1/0)return 1/0}return r}function g(e,t){return!1!==t&&(e=w(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function w(e){return e?e.replace(b,""):""}function E(e,t){return t=w(t),n.resolve(e,t)}},3845:(e,t,r)=>{"use strict";var n=r(7403),a=r(6740).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}},2585:(e,t,r)=>{"use strict";var n=r(6740);e.exports=function(e){n.copy(e,this)}},9853:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,a=0;a<n;)r++,(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<n&&56320==(64512&(t=e.charCodeAt(a)))&&a++;return r}},6740:(e,t,r)=>{"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.length;n++){var o=t[n];(a[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(a[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:c,escapeQuotes:l,equal:r(2017),ucs2length:r(9853),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"!=typeof e)for(var r in e)if(!t[r])return r},toQuotedString:u,getPathExpr:function(e,t,r,n){return d(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){return d(e,u(r?"/"+h(t):c(t)))},getData:function(e,t,r){var n,a,o,i;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);a=e,o="rootData"}else{if(!(i=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(n=+i[1],"#"==(a=i[2])){if(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,l=a.split("/"),u=0;u<l.length;u++){var d=l[u];d&&(s+=" && "+(o+=c(m(d))))}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(h(e))},escapeJsonPointer:h};var a=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var i=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":i.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function d(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function h(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},1897:e=>{"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<r.length;n++){e=JSON.parse(JSON.stringify(e));var a,o=r[n].split("/"),i=e;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<t.length;a++){var s=t[a],c=i[s];c&&(i[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},2897:(e,t,r)=>{"use strict";var n=r(8198);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"}]}}}},4667:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s;var d="maximum"==t,h=d?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],y=e.opts.$data&&m&&m.$data,g=d?"<":">",v=d?">":"<",b=void 0;if(!f&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!y&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(h+" must be number or boolean");if(y){var w,E=e.util.getData(m.$data,i,e.dataPathArr),_="exclusive"+o,S="exclType"+o,O="exclIsNumber"+o,P="' + "+(x="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+E+"; ",a+=" var "+_+"; var "+S+" = typeof "+(E="schemaExcl"+o)+"; if ("+S+" != 'boolean' && "+S+" != 'undefined' && "+S+" != 'number') { ",b=h,(w=w||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var j=a;a=w.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+j+"]); ":a+=" validate.errors = ["+j+"]; return false; ":a+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+S+" == 'number' ? ( ("+_+" = "+n+" === undefined || "+E+" "+g+"= "+n+") ? "+p+" "+v+"= "+E+" : "+p+" "+v+" "+n+" ) : ( ("+_+" = "+E+" === true) ? "+p+" "+v+"= "+n+" : "+p+" "+v+" "+n+" ) || "+p+" !== "+p+") { var op"+o+" = "+_+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=h,l=e.errSchemaPath+"/"+h,n=E,f=y)}else if(P=g,(O="number"==typeof m)&&f){var x="'"+P+"'";a+=" if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" ( "+n+" === undefined || "+m+" "+g+"= "+n+" ? "+p+" "+v+"= "+m+" : "+p+" "+v+" "+n+" ) || "+p+" !== "+p+") { "}else O&&void 0===s?(_=!0,b=h,l=e.errSchemaPath+"/"+h,n=m,v+="="):(O&&(n=Math[d?"min":"max"](m,s)),m===(!O||n)?(_=!0,b=h,l=e.errSchemaPath+"/"+h,v+="="):(_=!1,P+="=")),x="'"+P+"'",a+=" if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+p+" "+v+" "+n+" || "+p+" !== "+p+") { ";return b=b||t,(w=w||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+n+", exclusive: "+_+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+P+" ",a+=f?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ",j=a,a=w.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+j+"]); ":a+=" validate.errors = ["+j+"]; return false; ":a+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",u&&(a+=" else { "),a}},2119:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;if(f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" "+p+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var d=t,h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"fewer",a+=" than ",a+=f?"' + "+n+" + '":""+s,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&u?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+="} ",u&&(a+=" else { "),a}},7935:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;if(f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");var d="maxLength"==t?">":"<";a+="if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?a+=" "+p+".length ":a+=" ucs2length("+p+") ",a+=" "+d+" "+n+") { ";var h=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=f?"' + "+n+" + '":""+s,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var y=a;return a=m.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+y+"]); ":a+=" validate.errors = ["+y+"]; return false; ":a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},1298:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;if(f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");a+="if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),a+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var d=t,h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"fewer",a+=" than ",a+=f?"' + "+n+" + '":""+s,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;return a=h.pop(),!e.compositeRule&&u?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+="} ",u&&(a+=" else { "),a}},353: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,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,p=c.baseId,f=!0,d=a;if(d)for(var h,m=-1,y=d.length-1;m<y;)h=d[m+=1],(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all))&&(f=!1,c.schema=h,c.schemaPath=o+"["+m+"]",c.errSchemaPath=i+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=p,s&&(n+=" if ("+u+") { ",l+="}"));return s&&(n+=f?" if (true) { ":" "+l.slice(0,-1)+" "),n}},9480: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f="errs__"+a,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,y=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(y){var g=d.baseId;n+=" var "+f+" = errors; var "+p+" = false; ";var v=e.compositeRule;e.compositeRule=d.compositeRule=!0;var b=i;if(b)for(var w,E=-1,_=b.length-1;E<_;)w=b[E+=1],d.schema=w,d.schemaPath=s+"["+E+"]",d.errSchemaPath=c+"/"+E,n+=" "+e.validate(d)+" ",d.baseId=g,n+=" "+p+" = "+p+" || "+m+"; if (!"+p+") { ",h+="}";e.compositeRule=d.compositeRule=v,n+=" "+h+" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else l&&(n+=" if (true) { ");return n}},4278: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}},224: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f=e.opts.$data&&i&&i.$data;f&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),f||(n+=" var schema"+a+" = validate.schema"+s+";"),n+="var "+p+" = equal("+u+", schema"+a+"); if (!"+p+") { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var h=n;return n=d.pop(),!e.compositeRule&&l?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++; ",n+=" }",l&&(n+=" else { "),n}},5674: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f="errs__"+a,d=e.util.copy(e);d.level++;var h="valid"+d.level,m="i"+a,y=d.dataLevel=e.dataLevel+1,g="data"+y,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 "+f+" = errors;var "+p+";",b){var w=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=i,d.schemaPath=s,d.errSchemaPath=c,n+=" var "+h+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var E=u+"["+m+"]";d.dataPathArr[y]=m;var _=e.validate(d);d.baseId=v,e.util.varOccurences(_,g)<2?n+=" "+e.util.varReplace(_,g,E)+" ":n+=" var "+g+" = "+E+"; "+_+" ",n+=" if ("+h+") break; } ",e.compositeRule=d.compositeRule=w,n+=" if (!"+h+") {"}else n+=" if ("+u+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var O=n;return n=S.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},7992:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,f="data"+(s||""),d="valid"+i,h="errs__"+i,m=e.opts.$data&&c&&c.$data;m?(o+=" var schema"+i+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",a="schema"+i):a=c;var y,g,v,b,w,E=this,_="definition"+i,S=E.definition,O="";if(m&&S.$data){w="keywordValidate"+i;var P=S.validateSchema;o+=" var "+_+" = RULES.custom['"+t+"'].definition; var "+w+" = "+_+".validate;"}else{if(!(b=e.useCustomRule(E,c,e.schema,e)))return;a="validate.schema"+l,w=b.code,y=S.compile,g=S.inline,v=S.macro}var j=w+".errors",x="i"+i,R="ruleErr"+i,T=S.async;if(T&&!e.async)throw new Error("async keyword in sync schema");if(g||v||(o+=j+" = null;"),o+="var "+h+" = errors;var "+d+";",m&&S.$data&&(O+="}",o+=" if ("+a+" === undefined) { "+d+" = true; } else { ",P&&(O+="}",o+=" "+d+" = "+_+".validateSchema("+a+"); if ("+d+") { ")),g)S.statements?o+=" "+b.validate+" ":o+=" "+d+" = "+b.validate+"; ";else if(v){var k=e.util.copy(e);O="",k.level++;var N="valid"+k.level;k.schema=b.validate,k.schemaPath="";var A=e.compositeRule;e.compositeRule=k.compositeRule=!0;var C=e.validate(k).replace(/validate\.schema/g,w);e.compositeRule=k.compositeRule=A,o+=" "+C}else{(M=M||[]).push(o),o="",o+=" "+w+".call( ",e.opts.passContext?o+="this":o+="self",y||!1===S.schema?o+=" , "+f+" ":o+=" , "+a+" , "+f+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var D=s?"data"+(s-1||""):"parentData",I=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+D+" , "+I+" , rootData ) ";o=M.pop(),!1===S.errors?(o+=" "+d+" = ",T&&(o+="await "),o+=L+"; "):o+=T?" var "+(j="customErrors"+i)+" = null; try { "+d+" = await "+L+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+j+" = e.errors; else throw e; } ":" "+j+" = null; "+d+" = "+L+"; "}if(S.modifying&&(o+=" if ("+D+") "+f+" = "+D+"["+I+"];"),o+=""+O,S.valid)p&&(o+=" if (true) { ");else{var M;o+=" if ( ",void 0===S.valid?(o+=" !",o+=v?""+N:""+d):o+=" "+!S.valid+" ",o+=") { ",n=E.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(u)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var $=o;o=M.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+$+"]); ":o+=" validate.errors = ["+$+"]; return false; ":o+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var F=o;o=M.pop(),g?S.errors?"full"!=S.errors&&(o+=" for (var "+x+"="+h+"; "+x+"<errors; "+x+"++) { var "+R+" = vErrors["+x+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+R+".schemaPath === undefined) { "+R+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+R+".schema = "+a+"; "+R+".data = "+f+"; "),o+=" } "):!1===S.errors?o+=" "+F+" ":(o+=" if ("+h+" == errors) { "+F+" } else { for (var "+x+"="+h+"; "+x+"<errors; "+x+"++) { var "+R+" = vErrors["+x+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+R+".schemaPath === undefined) { "+R+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+R+".schema = "+a+"; "+R+".data = "+f+"; "),o+=" } } "):v?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+F+" ":(o+=" if (Array.isArray("+j+")) { if (vErrors === null) vErrors = "+j+"; else vErrors = vErrors.concat("+j+"); errors = vErrors.length; for (var "+x+"="+h+"; "+x+"<errors; "+x+"++) { var "+R+" = vErrors["+x+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; "+R+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(o+=" "+R+".schema = "+a+"; "+R+".data = "+f+"; "),o+=" } } else { "+F+" } "),o+=" } ",p&&(o+=" else { ")}return o}},1926: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="errs__"+a,f=e.util.copy(e),d="";f.level++;var h="valid"+f.level,m={},y={},g=e.opts.ownProperties;for(E in i)if("__proto__"!=E){var v=i[E],b=Array.isArray(v)?y:m;b[E]=v}n+="var "+p+" = errors;";var w=e.errorPath;for(var E in n+="var missing"+a+";",y)if((b=y[E]).length){if(n+=" if ( "+u+e.util.getProperty(E)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(E)+"') "),l){n+=" && ( ";var _=b;if(_)for(var S=-1,O=_.length-1;S<O;)k=_[S+=1],S&&(n+=" || "),n+=" ( ( "+(D=u+(C=e.util.getProperty(k)))+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:C)+") ) ";n+=")) { ";var P="missing"+a,j="' + "+P+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,P,!0):w+" + "+P);var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+j+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var R=n;n=x.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+R+"]); ":n+=" validate.errors = ["+R+"]; return false; ":n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var T=b;if(T)for(var k,N=-1,A=T.length-1;N<A;){k=T[N+=1];var C=e.util.getProperty(k),D=(j=e.util.escapeQuotes(k),u+C);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,k,e.opts.jsonPointers)),n+=" if ( "+D+" === undefined ",g&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+j+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",l&&(d+="}",n+=" else { ")}e.errorPath=w;var I=f.baseId;for(var E in m)v=m[E],(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+h+" = true; if ( "+u+e.util.getProperty(E)+" !== undefined ",g&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(E)+"') "),n+=") { ",f.schema=v,f.schemaPath=s+e.util.getProperty(E),f.errSchemaPath=c+"/"+e.util.escapeFragment(E),n+=" "+e.validate(f)+" ",f.baseId=I,n+=" } ",l&&(n+=" if ("+h+") { ",d+="}"));return l&&(n+=" "+d+" if ("+p+" == errors) {"),n}},598: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f=e.opts.$data&&i&&i.$data;f&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var d="i"+a,h="schema"+a;f||(n+=" var "+h+" = validate.schema"+s+";"),n+="var "+p+";",f&&(n+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),n+=p+" = false;for (var "+d+"=0; "+d+"<"+h+".length; "+d+"++) if (equal("+u+", "+h+"["+d+"])) { "+p+" = true; break; }",f&&(n+=" } "),n+=" if (!"+p+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var y=n;return n=m.pop(),!e.compositeRule&&l?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+=" }",l&&(n+=" else { "),n}},400: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return l&&(n+=" if (true) { "),n;var p,f=e.opts.$data&&i&&i.$data;f?(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=i;var d=e.opts.unknownFormats,h=Array.isArray(d);if(f)n+=" var "+(m="format"+a)+" = formats["+p+"]; var "+(y="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(g="formatType"+a)+" = "+y+" && "+m+".type || 'string'; if ("+y+") { ",e.async&&(n+=" var async"+a+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",f&&(n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),n+=" (","ignore"!=d&&(n+=" ("+p+" && !"+m+" ",h&&(n+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),n+=") || "),n+=" ("+m+" && "+g+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+a+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {";else{var m;if(!(m=e.formats[i])){if("ignore"==d)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(h&&d.indexOf(i)>=0)return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var y,g=(y="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(y){var v=!0===m.async;m=m.validate}if(g!=r)return l&&(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")+"("+u+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);y&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+u+") ":" "+b+".test("+u+") ",n+=") { "}}var w=w||[];w.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=f?""+p:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=f?"' + "+p+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+s:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var E=n;return n=w.pop(),!e.compositeRule&&l?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+=" } ",l&&(n+=" else { "),n}},8532: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f="errs__"+a,d=e.util.copy(e);d.level++;var h="valid"+d.level,m=e.schema.then,y=e.schema.else,g=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!==y&&(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all)),b=d.baseId;if(g||v){var w;d.createErrors=!1,d.schema=i,d.schemaPath=s,d.errSchemaPath=c,n+=" var "+f+" = errors; var "+p+" = true; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=b,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=E,g?(n+=" if ("+h+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=b,n+=" "+p+" = "+h+"; ",g&&v?n+=" var "+(w="ifClause"+a)+" = 'then'; ":w="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+h+") { ",v&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=b,n+=" "+p+" = "+h+"; ",g&&v?n+=" var "+(w="ifClause"+a)+" = 'else'; ":w="'else'",n+=" } "),n+=" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",l&&(n+=" else { ")}else l&&(n+=" if (true) { ");return n}},7403:(e,t,r)=>{"use strict";e.exports={$ref:r(6990),allOf:r(353),anyOf:r(9480),$comment:r(4278),const:r(224),contains:r(5674),dependencies:r(1926),enum:r(598),format:r(400),if:r(8532),items:r(4371),maximum:r(4667),minimum:r(4667),maxItems:r(2119),minItems:r(2119),maxLength:r(7935),minLength:r(7935),maxProperties:r(1298),minProperties:r(1298),multipleOf:r(9294),not:r(8914),oneOf:r(5326),pattern:r(8317),properties:r(1374),propertyNames:r(3032),required:r(7850),uniqueItems:r(5898),validate:r(1873)}},4371: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f="errs__"+a,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,y="i"+a,g=d.dataLevel=e.dataLevel+1,v="data"+g,b=e.baseId;if(n+="var "+f+" = errors;var "+p+";",Array.isArray(i)){var w=e.schema.additionalItems;if(!1===w){n+=" "+p+" = "+u+".length <= "+i.length+"; ";var E=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+p+") { ";var _=_||[];_.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=_.pop(),!e.compositeRule&&l?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+=" } ",c=E,l&&(h+="}",n+=" else { ")}var O=i;if(O)for(var P,j=-1,x=O.length-1;j<x;)if(P=O[j+=1],e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+j+") { ";var R=u+"["+j+"]";d.schema=P,d.schemaPath=s+"["+j+"]",d.errSchemaPath=c+"/"+j,d.errorPath=e.util.getPathExpr(e.errorPath,j,e.opts.jsonPointers,!0),d.dataPathArr[g]=j;var T=e.validate(d);d.baseId=b,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,R)+" ":n+=" var "+v+" = "+R+"; "+T+" ",n+=" } ",l&&(n+=" if ("+m+") { ",h+="}")}"object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))&&(d.schema=w,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+i.length+") { for (var "+y+" = "+i.length+"; "+y+" < "+u+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0),R=u+"["+y+"]",d.dataPathArr[g]=y,T=e.validate(d),d.baseId=b,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,R)+" ":n+=" var "+v+" = "+R+"; "+T+" ",l&&(n+=" if (!"+m+") break; "),n+=" } } ",l&&(n+=" if ("+m+") { ",h+="}"))}else(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all))&&(d.schema=i,d.schemaPath=s,d.errSchemaPath=c,n+=" for (var "+y+" = 0; "+y+" < "+u+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0),R=u+"["+y+"]",d.dataPathArr[g]=y,T=e.validate(d),d.baseId=b,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,R)+" ":n+=" var "+v+" = "+R+"; "+T+" ",l&&(n+=" if (!"+m+") break; "),n+=" }");return l&&(n+=" "+h+" if ("+f+" == errors) {"),n}},9294:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;if(f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,!f&&"number"!=typeof s)throw new Error(t+" must be number");a+="var division"+o+";if (",f&&(a+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),a+=" (division"+o+" = "+p+" / "+n+", ",e.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",f&&(a+=" ) "),a+=" ) { ";var d=d||[];d.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=f?"' + "+n:n+"'"),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var h=a;return a=d.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+h+"]); ":a+=" validate.errors = ["+h+"]; return false; ":a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},8914: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="errs__"+a,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){f.schema=i,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+p+" = errors; ";var h,m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var y=y||[];y.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var g=n;n=y.pop(),!e.compositeRule&&l?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+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; 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(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ");return n}},5326: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f="errs__"+a,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,y=d.baseId,g="prevValid"+a,v="passingSchemas"+a;n+="var "+f+" = errors , "+g+" = false , "+p+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=!0;var w=i;if(w)for(var E,_=-1,S=w.length-1;_<S;)E=w[_+=1],(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))?(d.schema=E,d.schemaPath=s+"["+_+"]",d.errSchemaPath=c+"/"+_,n+=" "+e.validate(d)+" ",d.baseId=y):n+=" var "+m+" = true; ",_&&(n+=" if ("+m+" && "+g+") { "+p+" = false; "+v+" = ["+v+", "+_+"]; } else { ",h+="}"),n+=" if ("+m+") { "+p+" = "+g+" = true; "+v+" = "+_+"; }";return e.compositeRule=d.compositeRule=b,n+=h+"if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8317:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f=e.opts.$data&&s&&s.$data;f?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,a+="if ( ",f&&(a+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),a+=" !"+(f?"(new RegExp("+n+"))":e.usePattern(s))+".test("+p+") ) { ";var d=d||[];d.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",a+=f?""+n:""+e.util.toQuotedString(s),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=f?"' + "+n+" + '":""+e.util.escapeQuotes(s),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=f?"validate.schema"+c:""+e.util.toQuotedString(s),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var h=a;return a=d.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+h+"]); ":a+=" validate.errors = ["+h+"]; return false; ":a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",u&&(a+=" else { "),a}},1374: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="errs__"+a,f=e.util.copy(e),d="";f.level++;var h="valid"+f.level,m="key"+a,y="idx"+a,g=f.dataLevel=e.dataLevel+1,v="data"+g,b="dataProperties"+a,w=Object.keys(i||{}).filter(C),E=e.schema.patternProperties||{},_=Object.keys(E).filter(C),S=e.schema.additionalProperties,O=w.length||_.length,P=!1===S,j="object"==typeof S&&Object.keys(S).length,x=e.opts.removeAdditional,R=P||j||x,T=e.opts.ownProperties,k=e.baseId,N=e.schema.required;if(N&&(!e.opts.$data||!N.$data)&&N.length<e.opts.loopRequired)var A=e.util.toHash(N);function C(e){return"__proto__"!==e}if(n+="var "+p+" = errors;var "+h+" = true;",T&&(n+=" var "+b+" = undefined;"),R){if(n+=T?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+y+"=0; "+y+"<"+b+".length; "+y+"++) { var "+m+" = "+b+"["+y+"]; ":" for (var "+m+" in "+u+") { ",O){if(n+=" var isAdditional"+a+" = !(false ",w.length)if(w.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var D=w;if(D)for(var I=-1,L=D.length-1;I<L;)J=D[I+=1],n+=" || "+m+" == "+e.util.toQuotedString(J)+" "}if(_.length){var M=_;if(M)for(var $=-1,F=M.length-1;$<F;)oe=M[$+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+a+") { "}if("all"==x)n+=" delete "+u+"["+m+"]; ";else{var U=e.errorPath,q="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),P)if(x)n+=" delete "+u+"["+m+"]; ";else{n+=" "+h+" = false; ";var B=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+q+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var H=n;n=re.pop(),!e.compositeRule&&l?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++; ",c=B,l&&(n+=" break; ")}else if(j)if("failing"==x){n+=" var "+p+" = errors; ";var z=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=S,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=u+"["+m+"]";f.dataPathArr[g]=m;var V=e.validate(f);f.baseId=k,e.util.varOccurences(V,v)<2?n+=" "+e.util.varReplace(V,v,K)+" ":n+=" var "+v+" = "+K+"; "+V+" ",n+=" if (!"+h+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=f.compositeRule=z}else f.schema=S,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),K=u+"["+m+"]",f.dataPathArr[g]=m,V=e.validate(f),f.baseId=k,e.util.varOccurences(V,v)<2?n+=" "+e.util.varReplace(V,v,K)+" ":n+=" var "+v+" = "+K+"; "+V+" ",l&&(n+=" if (!"+h+") break; ");e.errorPath=U}O&&(n+=" } "),n+=" } ",l&&(n+=" if ("+h+") { ",d+="}")}var Q=e.opts.useDefaults&&!e.compositeRule;if(w.length){var W=w;if(W)for(var J,G=-1,Z=W.length-1;G<Z;){var Y=i[J=W[G+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var X=e.util.getProperty(J),ee=(K=u+X,Q&&void 0!==Y.default);if(f.schema=Y,f.schemaPath=s+X,f.errSchemaPath=c+"/"+e.util.escapeFragment(J),f.errorPath=e.util.getPath(e.errorPath,J,e.opts.jsonPointers),f.dataPathArr[g]=e.util.toQuotedString(J),V=e.validate(f),f.baseId=k,e.util.varOccurences(V,v)<2){V=e.util.varReplace(V,v,K);var te=K}else te=v,n+=" var "+v+" = "+K+"; ";if(ee)n+=" "+V+" ";else{if(A&&A[J]){n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),n+=") { "+h+" = false; ",U=e.errorPath,B=c;var re,ne=e.util.escapeQuotes(J);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,J,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",H=n,n=re.pop(),!e.compositeRule&&l?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++; ",c=B,e.errorPath=U,n+=" } else { "}else l?(n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),n+=") { "+h+" = true; } else { "):(n+=" if ("+te+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),n+=" ) { ");n+=" "+V+" } "}}l&&(n+=" if ("+h+") { ",d+="}")}}if(_.length){var ae=_;if(ae)for(var oe,ie=-1,se=ae.length-1;ie<se;)Y=E[oe=ae[ie+=1]],(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all))&&(f.schema=Y,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=T?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+y+"=0; "+y+"<"+b+".length; "+y+"++) { var "+m+" = "+b+"["+y+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),K=u+"["+m+"]",f.dataPathArr[g]=m,V=e.validate(f),f.baseId=k,e.util.varOccurences(V,v)<2?n+=" "+e.util.varReplace(V,v,K)+" ":n+=" var "+v+" = "+K+"; "+V+" ",l&&(n+=" if (!"+h+") break; "),n+=" } ",l&&(n+=" else "+h+" = true; "),n+=" } ",l&&(n+=" if ("+h+") { ",d+="}"))}return l&&(n+=" "+d+" if ("+p+" == errors) {"),n}},3032: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="errs__"+a,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(n+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){f.schema=i,f.schemaPath=s,f.errSchemaPath=c;var h="key"+a,m="idx"+a,y="i"+a,g="' + "+h+" + '",v="data"+(f.dataLevel=e.dataLevel+1),b="dataProperties"+a,w=e.opts.ownProperties,E=e.baseId;w&&(n+=" var "+b+" = undefined; "),n+=w?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+h+" = "+b+"["+m+"]; ":" for (var "+h+" in "+u+") { ",n+=" var startErrs"+a+" = errors; ";var _=h,S=e.compositeRule;e.compositeRule=f.compositeRule=!0;var O=e.validate(f);f.baseId=E,e.util.varOccurences(O,v)<2?n+=" "+e.util.varReplace(O,v,_)+" ":n+=" var "+v+" = "+_+"; "+O+" ",e.compositeRule=f.compositeRule=S,n+=" if (!"+d+") { for (var "+y+"=startErrs"+a+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+h+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+=" if ("+p+" == errors) {"),n}},6990:e=>{"use strict";e.exports=function(e,t,r){var n,a,o=" ",i=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(s||""),f="valid"+i;if("#"==c||"#/"==c)e.isRoot?(n=e.async,a="validate"):(n=!0===e.root.schema.$async,a="root.refVal[0]");else{var d=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===d){var h=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(h),(v=v||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var m=o;o=v.pop(),!e.compositeRule&&u?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++; ",u&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,h);e.logger.warn(h),u&&(o+=" if (true) { ")}}else if(d.inline){var y=e.util.copy(e);y.level++;var g="valid"+y.level;y.schema=d.schema,y.schemaPath="",y.errSchemaPath=c,o+=" "+e.validate(y).replace(/validate\.schema/g,d.code)+" ",u&&(o+=" if ("+g+") { ")}else n=!0===d.$async||e.async&&!1!==d.$async,a=d.code}if(a){var v;(v=v||[]).push(o),o="",e.opts.passContext?o+=" "+a+".call(this, ":o+=" "+a+"( ",o+=" "+p+", (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");u&&(o+=" var "+f+"; "),o+=" try { await "+b+"; ",u&&(o+=" "+f+" = 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; ",u&&(o+=" "+f+" = false; "),o+=" } ",u&&(o+=" if ("+f+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",u&&(o+=" else { ")}return o}},7850: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),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),p="valid"+a,f=e.opts.$data&&i&&i.$data;f&&(n+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var d="schema"+a;if(!f)if(i.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var h=[],m=i;if(m)for(var y,g=-1,v=m.length-1;g<v;){y=m[g+=1];var b=e.schema.properties[y];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(h[h.length]=y)}}else h=i;if(f||h.length){var w=e.errorPath,E=f||h.length>=e.opts.loopRequired,_=e.opts.ownProperties;if(l)if(n+=" var missing"+a+"; ",E){f||(n+=" var "+d+" = validate.schema"+s+"; ");var S="' + "+(T="schema"+a+"["+(x="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,T,e.opts.jsonPointers)),n+=" var "+p+" = true; ",f&&(n+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),n+=" for (var "+x+" = 0; "+x+" < "+d+".length; "+x+"++) { "+p+" = "+u+"["+d+"["+x+"]] !== undefined ",_&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+d+"["+x+"]) "),n+="; if (!"+p+") break; } ",f&&(n+=" } "),n+=" if (!"+p+") { ",(P=P||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ";var O=n;n=P.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var P,j=h;if(j)for(var x=-1,R=j.length-1;x<R;)N=j[x+=1],x&&(n+=" || "),n+=" ( ( "+(I=u+(D=e.util.getProperty(N)))+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:D)+") ) ";n+=") { ",S="' + "+(T="missing"+a)+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,T,!0):w+" + "+T),(P=P||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",O=n,n=P.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(E){var T;f||(n+=" var "+d+" = validate.schema"+s+"; "),S="' + "+(T="schema"+a+"["+(x="i"+a)+"]")+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,T,e.opts.jsonPointers)),f&&(n+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),n+=" for (var "+x+" = 0; "+x+" < "+d+".length; "+x+"++) { if ("+u+"["+d+"["+x+"]] === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+d+"["+x+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(n+=" } ")}else{var k=h;if(k)for(var N,A=-1,C=k.length-1;A<C;){N=k[A+=1];var D=e.util.getProperty(N),I=(S=e.util.escapeQuotes(N),u+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,N,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else l&&(n+=" if (true) {");return n}},5898:e=>{"use strict";e.exports=function(e,t,r){var n,a=" ",o=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f="valid"+o,d=e.opts.$data&&s&&s.$data;if(d?(a+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||d)&&!1!==e.opts.uniqueItems){d&&(a+=" var "+f+"; if ("+n+" === false || "+n+" === undefined) "+f+" = true; else if (typeof "+n+" != 'boolean') "+f+" = false; else { "),a+=" var i = "+p+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||"object"==h||"array"==h||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+f+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var y="checkDataType"+(m?"s":"");a+=" if ("+e.util[y](h,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",d&&(a+=" } "),a+=" if (!"+f+") { ";var g=g||[];g.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , 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+=d?"validate.schema"+c:""+s,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var v=a;a=g.pop(),!e.compositeRule&&u?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+=" } ",u&&(a+=" else { ")}else u&&(a+=" if (true) { ");return a}},1873: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 c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}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 l=e.level,u=e.dataLevel,p=e.schema[t],f=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,m="data"+(u||""),y="valid"+l;if(!1===e.schema){e.isTop?h=!0:n+=" var "+y+" = false; ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , 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 g=n;n=K.pop(),!e.compositeRule&&h?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++; "}else e.isTop?n+=a?" return data; ":" validate.errors = null; return true; ":n+=" var "+y+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;if(l=e.level=0,u=e.dataLevel=0,m="data",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{if(l=e.level,m="data"+((u=e.dataLevel)||""),i&&(e.baseId=e.resolve.url(e.baseId,i)),a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}y="valid"+l,h=!e.opts.allErrors;var w="",E="",_=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 O=e.util.coerceToTypes(e.opts.coerceTypes,_);var P=e.RULES.types[_];if(O||S||!0===P||P&&!Z(P)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var j=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[j](_,m,e.opts.strictNumbers,!0)+") { ",O){var x="dataType"+l,R="coerced"+l;n+=" var "+x+" = typeof "+m+"; var "+R+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+x+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+x+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+R+" = "+m+"; } "),n+=" if ("+R+" !== undefined) ; ";var T=O;if(T)for(var k,N=-1,A=T.length-1;N<A;)"string"==(k=T[N+=1])?n+=" else if ("+x+" == 'number' || "+x+" == 'boolean') "+R+" = '' + "+m+"; else if ("+m+" === null) "+R+" = ''; ":"number"==k||"integer"==k?(n+=" else if ("+x+" == 'boolean' || "+m+" === null || ("+x+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==k&&(n+=" && !("+m+" % 1)"),n+=")) "+R+" = +"+m+"; "):"boolean"==k?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+R+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+R+" = true; ":"null"==k?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+R+" = null; ":"array"==e.opts.coerceTypes&&"array"==k&&(n+=" else if ("+x+" == 'string' || "+x+" == 'number' || "+x+" == 'boolean' || "+m+" == null) "+R+" = ["+m+"]; ");n+=" else { ",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",n+=S?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",g=n,n=K.pop(),!e.compositeRule&&h?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+=" } if ("+R+" !== undefined) { ";var C=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+R+"; ",u||(n+="if ("+C+" !== undefined)"),n+=" "+C+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+R+"; } "}else(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",n+=S?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",g=n,n=K.pop(),!e.compositeRule&&h?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+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(n+=" } if (errors === ",n+=v?"0":"errs_"+l,n+=") { ",E+="}");else{var D=e.RULES;if(D)for(var I=-1,L=D.length-1;I<L;)if(Z(P=D[I+=1])){if(P.type&&(n+=" if ("+e.util.checkDataType(P.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==P.type&&e.schema.properties){p=e.schema.properties;var M=Object.keys(p);if(M)for(var $,F=-1,U=M.length-1;F<U;)if(void 0!==(H=p[$=M[F+=1]]).default){var q=m+e.util.getProperty($);if(e.compositeRule){if(e.opts.strictDefaults){if(b="default is ignored for: "+q,"log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+q+" === null || "+q+" === '' "),n+=" ) "+q+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(H.default)+" ":n+=" "+JSON.stringify(H.default)+" ",n+="; "}}else if("array"==P.type&&Array.isArray(e.schema.items)){var B=e.schema.items;if(B){N=-1;for(var H,z=B.length-1;N<z;)if(void 0!==(H=B[N+=1]).default)if(q=m+"["+N+"]",e.compositeRule){if(e.opts.strictDefaults){if(b="default is ignored for: "+q,"log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+q+" === null || "+q+" === '' "),n+=" ) "+q+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(H.default)+" ":n+=" "+JSON.stringify(H.default)+" ",n+="; "}}var K,V=P.rules;if(V)for(var Q,W=-1,J=V.length-1;W<J;)if(Y(Q=V[W+=1])){var G=Q.code(e,Q.keyword,P.type);G&&(n+=" "+G+" ",h&&(w+="}"))}if(h&&(n+=" "+w+" ",w=""),P.type&&(n+=" } ",_&&_===P.type&&!O))n+=" else { ",f=e.schemaPath+".type",d=e.errSchemaPath+"/type",(K=K||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",n+=S?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",g=n,n=K.pop(),!e.compositeRule&&h?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+=" } ";h&&(n+=" if (errors === ",n+=v?"0":"errs_"+l,n+=") { ",E+="}")}}function Z(e){for(var t=e.rules,r=0;r<t.length;r++)if(Y(t[r]))return!0}function Y(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return h&&(n+=" "+E+" "),v?(a?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+y+" = errors === errs_"+l+";",n}},3635:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,a=r(7992),o=r(2897);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<o.length;i++)c(e,o[i],t);else c(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var o,i=0;i<r.length;i++){var s=r[i];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},r.push(o));var c={keyword:e,definition:n,custom:!0,code:a,implements:n.implements};o.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,a=0;a<n.length;a++)if(n[a].keyword==e){n.splice(a,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},7526:(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],c=o[1],l=new a(function(e,t,r){return 3*(t+r)/4-r}(0,i,c)),u=0,p=c>0?i-4:i;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=16383,s=0,l=n-a;s<l;s+=i)o.push(c(e,s,s+i>l?l:s+i));return 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]+"=")),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 c(e,t,n){for(var a,o,i=[],s=t;s<n;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[(o=a)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287:(e,t,r)=>{"use strict";var n=r(7526),a=r(251);t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;var o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(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 c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=s.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var a=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||q(e.length)?i(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.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 l(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 l(e),i(e<0?0:0|f(e))}function p(e){for(var t=e.length<0?0:0|f(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(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);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(a)return n?-1:M(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,t,r){var 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 T(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(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),q(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=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:g(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):g(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,a){var o,i=1,s=e.length,c=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,c/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var u=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*i}else-1!==u&&(o-=o-u),u=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var p=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){p=!1;break}if(p)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var o=t.length;n>o/2&&(n=o/2);for(var i=0;i<n;++i){var s=parseInt(t.substr(2*i,2),16);if(q(s))return i;e[r+i]=s}return i}function b(e,t,r,n){return F(M(t,e.length-r),e,r,n)}function w(e,t,r,n){return F(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function E(e,t,r,n){return w(e,t,r,n)}function _(e,t,r,n){return F($(t),e,r,n)}function S(e,t,r,n){return F(function(e,t){for(var r,n,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,a=r%256,o.push(a),o.push(n);return o}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var o,i,s,c,l=e[a],u=null,p=l>239?4:l>223?3:l>191?2:1;if(a+p<=r)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[a+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(c=(15&l)<<12|(63&o)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=p}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}(n)}t.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,r){return c(e,t,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a<o;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(U(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,n,a){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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;for(var o=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),c=Math.min(o,i),l=this.slice(n,a),u=e.slice(t,r),p=0;p<c;++p)if(l[p]!==u[p]){o=l[p],i=u[p];break}return o<i?-1:i<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var 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");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function T(e,t,r){var n,a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);for(var o="",i=t;i<r;++i)o+=(n=e[i])<16?"0"+n.toString(16):n.toString(16);return o}function k(e,t,r){for(var n=e.slice(t,r),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,r,n,a,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(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 D(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,8),a.write(e,t,r,n,52,8),r+8}s.prototype.slice=function(e,t){var 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<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||A(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(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},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(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},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);A(this,e,t,r,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);A(this,e,t,r,a-1,-a)}var o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||A(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},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||A(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},s.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=a-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var i=s.isBuffer(e)?e:s.from(e,n),c=i.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%c]}return this};var L=/[^+/0-9A-Za-z-_]/g;function M(e,t){var r;t=t||1/0;for(var n=e.length,a=null,o=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&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 $(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}},8075:(e,t,r)=>{"use strict";var n=r(453),a=r(487),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}},487:(e,t,r)=>{"use strict";var n=r(6743),a=r(453),o=r(6897),i=r(9675),s=a("%Function.prototype.apply%"),c=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||n.call(c,s),u=r(655),p=a("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=l(n,c,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return l(n,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},41:(e,t,r)=>{"use strict";var n=r(655),a=r(8068),o=r(9675),i=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!i&&i(e,t);if(n)n(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===s&&p?p.enumerable:!s,value:r,writable:null===c&&p?p.writable:!c});else{if(!u&&(s||c||l))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},4928:(e,t,r)=>{var n=r(8310),a=["write","end","destroy"],o=["resume","pause"],i=["data","close"],s=Array.prototype.slice;function c(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r)}e.exports=function(e,t){var r=new n,l=!1;return c(a,(function(t){r[t]=function(){return e[t].apply(e,arguments)}})),c(o,(function(e){r[e]=function(){r.emit(e);var n=t[e];if(n)return n.apply(t,arguments);t.emit(e)}})),c(i,(function(e){t.on(e,(function(){var t=s.call(arguments);t.unshift(e),r.emit.apply(r,t)}))})),t.on("end",(function(){if(!l){l=!0;var e=s.call(arguments);e.unshift("end"),r.emit.apply(r,e)}})),e.on("drain",(function(){r.emit("drain")})),e.on("error",u),t.on("error",u),r.writable=e.writable,r.readable=t.readable,r;function u(e){r.emit("error",e)}}},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},8954:(e,t,r)=>{var n=r(5606),a=r(8310).Stream,o=t,i=r(1094),s=r(1813),c=r(4928),l=r(9292),u=r(6736),p=r(175),f=r(8497),d=r.g.setImmediate||n.nextTick;o.Stream=a,o.through=i,o.from=s,o.duplex=c,o.map=l,o.pause=u,o.split=p,o.pipeline=o.connect=o.pipe=f,o.concat=o.merge=function(){var e=[].slice.call(arguments);1===e.length&&e[0]instanceof Array&&(e=e[0]);var t=new a;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},o.collect=o.writeArray=function(e){if("function"!=typeof e)throw new Error("function writeArray (done): done must be function");var t=new a,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},o.readArray=function(e){var t=new a,r=0,o=!1,i=!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(!i){o=!1;for(var n=e.length;r<n&&!o&&!i;)t.emit("data",e[r++]);r!=n||i||(i=!0,t.readable=!1,t.emit("end"))}},n.nextTick(t.resume),t.pause=function(){o=!0},t.destroy=function(){i=!0,t.emit("close")},t},o.readable=function(e,t){var r=new a,o=0,i=!1,s=!1,c=!1;if(r.readable=!0,r.writable=!1,"function"!=typeof e)throw new Error("event-stream.readable expects async function");function l(n,a){n?(r.emit("error",n),t||r.emit("end")):arguments.length>1&&r.emit("data",a),d((function(){if(!(s||i||c))try{c=!0,e.call(r,o++,(function(){c=!1,l.apply(null,arguments)}))}catch(e){r.emit("error",e)}}))}return r.on("end",(function(){s=!0})),r.resume=function(){i=!1,l()},n.nextTick(l),r.pause=function(){i=!0},r.destroy=function(){r.emit("end"),r.emit("close"),s=!0},r},o.mapSync=function(e){return o.through((function(t){var r;try{r=e(t)}catch(e){return this.emit("error",e)}void 0!==r&&this.emit("data",r)}))},o.filterSync=function(e){return o.through((function(t){e(t)&&this.queue(t)}))},o.flatmapSync=function(e){return o.through((function(t){var r=this;t.forEach((function(t){r.queue(e(t))}))}))},o.log=function(e){return o.through((function(t){[].slice.call(arguments),e?console.error(e,t):console.error(t),this.emit("data",t)}))},o.child=function(e){return o.duplex(e.stdin,e.stdout)},o.parse=function(e){var t=!(!e||!e.error);return o.through((function(e){var r;try{e&&(r=JSON.parse(e.toString()))}catch(r){return t?this.emit("error",r):console.error(r,"attempting to parse:",e)}void 0!==r&&this.emit("data",r)}))},o.stringify=function(){var e=r(8287).Buffer;return o.mapSync((function(t){return JSON.stringify(e.isBuffer(t)?t.toString():t)+"\n"}))},o.replace=function(e,t){return o.pipeline(o.split(e),o.join(t))},o.join=function(e){if("function"==typeof e)return o.wait(e);var t=!0;return o.through((function(r){return t||this.emit("data",e),t=!1,this.emit("data",r),!0}))},o.wait=function(e){var t=[];return o.through((function(e){t.push(e)}),(function(){var r=Buffer.isBuffer(t[0])?Buffer.concat(t):t.join("");this.emit("data",r),this.emit("end"),e&&e(null,r)}))},o.pipeable=function(){throw new Error("[EVENT-STREAM] es.pipeable is deprecated")}},7007:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,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))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,a)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var a,o,i,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),i=o[t]),void 0===i)i=o[t]=r,++e._eventsCount;else if("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(a=c(e))>0&&i.length>a&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=u.bind(n);return a.listener=r,n.wrapFn=a,a}function f(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;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):h(a,a.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(o){n.once&&e.removeEventListener(t,a),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,o=this._events;if(void 0!==o)a=a&&void 0===o.error;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=h(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,a,o,i;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,o=r.length-1;o>=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<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(a=o[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2017: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}},2492: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<t.length;r++)r&&(i+=","),i+=e(t[r])||"null";return i+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(a&&a(t));for(i="",r=0;r<c.length;r++){var l=c[r],u=e(t[l]);u&&(i&&(i+=","),i+=JSON.stringify(l)+":"+u)}return o.splice(s,1),"{"+i+"}"}}(e)}},5587:(e,t,r)=>{"use strict";var n=r(6311),a=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=n.apply(null,arguments)),new e(t)}}e.exports=a,a.eval=o(EvalError),a.range=o(RangeError),a.reference=o(ReferenceError),a.syntax=o(SyntaxError),a.type=o(TypeError),a.uri=o(URIError),a.create=o},1894:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},6311:e=>{!function(){var t;function r(e){for(var t,r,n,a,o=1,i=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,p=!1,f=function(){return i[o++]},d=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],u)switch(u=!1,"."==t?(p=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(p=!0,t=e[s+=2]):p=!0,a=d(),t){case"b":l+=parseInt(f(),10).toString(2);break;case"c":l+="string"==typeof(r=f())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(f(),10);break;case"f":n=String(parseFloat(f()).toFixed(a||6)),l+=p?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(f());break;case"o":l+="0"+parseInt(f(),10).toString(8);break;case"s":l+=f();break;case"x":l+="0x"+parseInt(f(),10).toString(16);break;case"X":l+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(t=e.exports=r).format=r,t.vsprintf=function(e,t){return r.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(r.apply(null,arguments))})}()},1813:(e,t,r)=>{"use strict";var n=r(5606),a=r(8310);e.exports=function e(t){if(Array.isArray(t)){var r=0,o=t.length;return e((function(e){return r<o?this.emit("data",t[r++]):this.emit("end"),!0}))}var i=new a,s=0;function c(){if(i.started=!0,!i.ended)for(;!i.ended&&!i.paused&&t.call(i,s++,(function(){i.ended||i.paused||n.nextTick(c)})););}return i.ended=!1,i.started=!1,i.readable=!0,i.writable=!1,i.paused=!1,i.ended=!1,i.pause=function(){i.started=!0,i.paused=!0},i.resume=function(){i.started=!0,i.paused=!1,c()},i.on("end",(function(){i.ended=!0,i.readable=!1,n.nextTick(i.destroy)})),i.destroy=function(){i.ended=!0,i.emit("close")},n.nextTick((function(){i.started||i.resume()})),i}},9353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var a=0;a<t.length;a+=1)r[a+e.length]=t[a];return r};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var o,i=function(e,t){for(var r=[],n=1,a=0;n<e.length;n+=1,a+=1)r[a]=e[n];return r}(arguments),s=r(0,a.length-i.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=a.apply(this,n(i,arguments));return Object(t)===t?t:this}return a.apply(e,n(i,arguments))})),a.prototype){var u=function(){};u.prototype=a.prototype,o.prototype=new u,u.prototype=null}return o}},6743:(e,t,r)=>{"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},453:(e,t,r)=>{"use strict";var n,a=r(9383),o=r(1237),i=r(9290),s=r(9538),c=r(8068),l=r(9675),u=r(5345),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(e){d=null}var h=function(){throw new l},m=d?function(){try{return h}catch(e){try{return d(arguments,"callee").get}catch(e){return h}}}():h,y=r(4039)(),g=r(24)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%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%":a,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((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%":i,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":l,"%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%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var _=v(v(e));E["%Error.prototype%"]=_}var S=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&v&&(r=v(a.prototype))}return E[t]=r,r},O={__proto__:null,"%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"]},P=r(6743),j=r(9957),x=P.call(Function.call,Array.prototype.concat),R=P.call(Function.apply,Array.prototype.splice),T=P.call(Function.call,String.prototype.replace),k=P.call(Function.call,String.prototype.slice),N=P.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,D=function(e,t){var r,n=e;if(j(O,n)&&(n="%"+(r=O[n])[0]+"%"),j(E,n)){var a=E[n];if(a===b&&(a=S(n)),void 0===a&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,A,(function(e,t,r,a){n[n.length]=r?T(a,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",a=D("%"+n+"%",t),o=a.name,i=a.value,s=!1,u=a.alias;u&&(n=u[0],R(r,x([0,1],u)));for(var p=1,f=!0;p<r.length;p+=1){var h=r[p],m=k(h,0,1),y=k(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),j(E,o="%"+(n+="."+h)+"%"))i=E[o];else if(null!=i){if(!(h in i)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&p+1>=r.length){var g=d(i,h);i=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[h]}else f=j(i,h),i=i[h];f&&!s&&(E[o]=i)}}return i}},8647:(e,t)=>{"use strict";t.A=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))},5795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},7964:(e,t,r)=>{"use strict";e.exports={afterRequest:r(1662),beforeRequest:r(5159),browser:r(3083),cache:r(1045),content:r(7962),cookie:r(8443),creator:r(6771),entry:r(9367),har:r(5444),header:r(948),log:r(3033),page:r(1958),pageTimings:r(7513),postData:r(8203),query:r(247),request:r(6909),response:r(5998),timings:r(4744)}},592:(e,t,r)=>{"use strict";var n=r(655),a=function(){return!!n};a.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},24:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},4039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&a()}},1333: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}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=r(6743);e.exports=o.call(n,a)},5981:e=>{function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(r){var n=e[r];"object"!=typeof n||Object.isFrozen(n)||t(n)})),e}var r=t,n=t;r.default=n;class a{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const s=e=>!!e.kind;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!s(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{l._collapse(e)})))}}class u extends l{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new c(this,this.options).value()}finalize(){return!0}}function p(e){return e?"string"==typeof e?e:e.source:null}const f=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,d="[a-zA-Z]\\w*",h="[a-zA-Z_]\\w*",m="\\b\\d+(\\.\\d+)?",y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",g="\\b(0b[01]+)",v={begin:"\\\\[\\s\\S]",relevance:0},b={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[v]},w={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[v]},E={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},_=function(e,t,r={}){const n=i({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(E),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},S=_("//","$"),O=_("/\\*","\\*/"),P=_("#","$"),j={className:"number",begin:m,relevance:0},x={className:"number",begin:y,relevance:0},R={className:"number",begin:g,relevance:0},T={className:"number",begin:m+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},k={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[v,{begin:/\[/,end:/\]/,relevance:0,contains:[v]}]}]},N={className:"title",begin:d,relevance:0},A={className:"title",begin:h,relevance:0},C={begin:"\\.\\s*"+h,relevance:0};var D=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:d,UNDERSCORE_IDENT_RE:h,NUMBER_RE:m,C_NUMBER_RE:y,BINARY_NUMBER_RE:g,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>p(e))).join("")}(t,/.*\b/,e.binary,/\b.*/)),i({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:v,APOS_STRING_MODE:b,QUOTE_STRING_MODE:w,PHRASAL_WORDS_MODE:E,COMMENT:_,C_LINE_COMMENT_MODE:S,C_BLOCK_COMMENT_MODE:O,HASH_COMMENT_MODE:P,NUMBER_MODE:j,C_NUMBER_MODE:x,BINARY_NUMBER_MODE:R,CSS_NUMBER_MODE:T,REGEXP_MODE:k,TITLE_MODE:N,UNDERSCORE_TITLE_MODE:A,METHOD_GUARD:C,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function I(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function L(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=I,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function M(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map((e=>p(e))).join("|")+")"}(...e.illegal))}function $(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function F(e,t){void 0===e.relevance&&(e.relevance=1)}const U=["of","and","for","in","not","or","if","then","parent","list","value"],q="keyword";function B(e,t,r=q){const n={};return"string"==typeof e?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach((function(r){Object.assign(n,B(e[r],t,r))})),n;function a(e,r){t&&(r=r.map((e=>e.toLowerCase()))),r.forEach((function(t){const r=t.split("|");n[r[0]]=[e,H(r[0],r[1])]}))}}function H(e,t){return t?Number(t):function(e){return U.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function r(t,r){return new RegExp(p(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=r(function(e,t="|"){let r=0;return e.map((e=>{r+=1;const t=r;let n=p(e),a="";for(;n.length>0;){const e=f.exec(n);if(!e){a+=n;break}a+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&r++)}return a})).map((e=>`(${e})`)).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,r])=>t.addRule(e,r))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function t(n,o){const s=n;if(n.isCompiled)return s;[$].forEach((e=>e(n,o))),e.compilerExtensions.forEach((e=>e(n,o))),n.__beforeBegin=null,[L,M,F].forEach((e=>e(n,o))),n.isCompiled=!0;let c=null;if("object"==typeof n.keywords&&(c=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=B(n.keywords,e.case_insensitive)),n.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||n.lexemes||/\w+/,s.keywordPatternRe=r(c,!0),o&&(n.begin||(n.begin=/\B|\b/),s.beginRe=r(n.begin),n.endSameAsBegin&&(n.end=n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(s.endRe=r(n.end)),s.terminatorEnd=p(n.end)||"",n.endsWithParent&&o.terminatorEnd&&(s.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(s.illegalRe=r(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return i(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:K(e)?i(e,{starts:e.starts?i(e.starts):null}):Object.isFrozen(e)?i(e):e}("self"===e?n:e)}))),n.contains.forEach((function(e){t(e,s)})),n.starts&&t(n.starts,o),s.matcher=function(e){const t=new a;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function K(e){return!!e&&(e.endsWithParent||K(e.starts))}function V(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const Q={"after:highlightElement":({el:e,result:t,text:r})=>{const n=J(e);if(!n.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,r){let n=0,a="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){a+="<"+W(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function l(e){a+="</"+W(e)+">"}function u(e){("start"===e.event?c:l)(e.node)}for(;e.length||t.length;){let t=s();if(a+=o(r.substring(n,t[0].offset)),n=t[0].offset,t===e){i.reverse().forEach(l);do{u(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===n);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),u(t.splice(0,1)[0])}return a+o(r.substr(n))}(n,J(a),r)}};function W(e){return e.nodeName.toLowerCase()}function J(e){const t=[];return function e(r,n){for(let a=r.firstChild;a;a=a.nextSibling)3===a.nodeType?n+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:n,node:a}),n=e(a,n),W(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:a}));return n}(e,0),t}const G={},Z=e=>{console.error(e)},Y=(e,...t)=>{console.log(`WARN: ${e}`,...t)},X=(e,t)=>{G[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),G[`${e}/${t}`]=!0)},ee=o,te=i,re=Symbol("nomatch");var ne=function(e){const t=Object.create(null),n=Object.create(null),o=[];let i=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let p={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function f(e){return p.noHighlightRe.test(e)}function d(e,t,r,n){let a="",o="";"object"==typeof t?(a=e,r=t.ignoreIllegals,o=t.language,n=void 0):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,a=t);const i={code:a,language:o};j("before:highlight",i);const s=i.result?i.result:h(i.language,i.code,r,n);return s.code=i.code,j("after:highlight",s),s}function h(e,r,n,s){function l(e,t){const r=w.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function u(){null!=O.subLanguage?function(){if(""===x)return;let e=null;if("string"==typeof O.subLanguage){if(!t[O.subLanguage])return void j.addText(x);e=h(O.subLanguage,x,!0,P[O.subLanguage]),P[O.subLanguage]=e.top}else e=m(x,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(R+=e.relevance),j.addSublanguage(e.emitter,e.language)}():function(){if(!O.keywords)return void j.addText(x);let e=0;O.keywordPatternRe.lastIndex=0;let t=O.keywordPatternRe.exec(x),r="";for(;t;){r+=x.substring(e,t.index);const n=l(O,t);if(n){const[e,a]=n;if(j.addText(r),r="",R+=a,e.startsWith("_"))r+=t[0];else{const r=w.classNameAliases[e]||e;j.addKeyword(t[0],r)}}else r+=t[0];e=O.keywordPatternRe.lastIndex,t=O.keywordPatternRe.exec(x)}r+=x.substr(e),j.addText(r)}(),x=""}function f(e){return e.className&&j.openNode(w.classNameAliases[e.className]||e.className),O=Object.create(e,{parent:{value:O}}),O}function d(e,t,r){let n=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(e.endRe,r);if(n){if(e["on:end"]){const r=new a(e);e["on:end"](t,r),r.isMatchIgnored&&(n=!1)}if(n){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return d(e.parent,t,r)}function y(e){return 0===O.matcher.regexIndex?(x+=e[0],1):(N=!0,0)}function g(e){const t=e[0],n=r.substr(e.index),a=d(O,e,n);if(!a)return re;const o=O;o.skip?x+=t:(o.returnEnd||o.excludeEnd||(x+=t),u(),o.excludeEnd&&(x=t));do{O.className&&j.closeNode(),O.skip||O.subLanguage||(R+=O.relevance),O=O.parent}while(O!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),f(a.starts)),o.returnEnd?0:t.length}let v={};function b(t,o){const s=o&&o[0];if(x+=t,null==s)return u(),0;if("begin"===v.type&&"end"===o.type&&v.index===o.index&&""===s){if(x+=r.slice(o.index,o.index+1),!i){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=o,"begin"===o.type)return function(e){const t=e[0],r=e.rule,n=new a(r),o=[r.__beforeBegin,r["on:begin"]];for(const r of o)if(r&&(r(e,n),n.isMatchIgnored))return y(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?x+=t:(r.excludeBegin&&(x+=t),u(),r.returnBegin||r.excludeBegin||(x=t)),f(r),r.returnBegin?0:t.length}(o);if("illegal"===o.type&&!n){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(O.className||"<unnamed>")+'"');throw e.mode=O,e}if("end"===o.type){const e=g(o);if(e!==re)return e}if("illegal"===o.type&&""===s)return 1;if(k>1e5&&k>3*o.index)throw new Error("potential infinite loop, way more iterations than matches");return x+=s,s.length}const w=S(e);if(!w)throw Z(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=z(w,{plugins:o});let _="",O=s||E;const P={},j=new p.__emitter(p);!function(){const e=[];for(let t=O;t!==w;t=t.parent)t.className&&e.unshift(t.className);e.forEach((e=>j.openNode(e)))}();let x="",R=0,T=0,k=0,N=!1;try{for(O.matcher.considerAll();;){k++,N?N=!1:O.matcher.considerAll(),O.matcher.lastIndex=T;const e=O.matcher.exec(r);if(!e)break;const t=b(r.substring(T,e.index),e);T=e.index+t}return b(r.substr(T)),j.closeAllNodes(),j.finalize(),_=j.toHTML(),{relevance:Math.floor(R),value:_,language:e,illegal:!1,emitter:j,top:O}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(T-100,T+100),mode:t.mode},sofar:_,relevance:0,value:ee(r),emitter:j};if(i)return{illegal:!1,relevance:0,value:ee(r),emitter:j,language:e,top:O,errorRaised:t};throw t}}function m(e,r){r=r||p.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new p.__emitter(p),value:ee(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),a=r.filter(S).filter(P).map((t=>h(t,e,!1)));a.unshift(n);const o=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(S(e.language).supersetOf===t.language)return 1;if(S(t.language).supersetOf===e.language)return-1}return 0})),[i,s]=o,c=i;return c.second_best=s,c}const y={"before:highlightElement":({el:e})=>{p.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{p.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{p.tabReplace&&(e.value=e.value.replace(g,(e=>e.replace(/\t/g,p.tabReplace))))}};function b(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=p.languageDetectRe.exec(t);if(r){const t=S(r[1]);return t||(Y(c.replace("{}",r[1])),Y("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find((e=>f(e)||S(e)))}(e);if(f(r))return;j("before:highlightElement",{el:e,language:r}),t=e;const a=t.textContent,o=r?d(a,{language:r,ignoreIllegals:!0}):m(a);j("after:highlightElement",{el:e,result:o,text:a}),e.innerHTML=o.value,function(e,t,r){const a=t?n[t]:r;e.classList.add("hljs"),a&&e.classList.add(a)}(e,r,o.language),e.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.second_best.relevance})}const w=()=>{w.called||(w.called=!0,X("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(b))};let E=!1;function _(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(b):E=!0}function S(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function O(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function P(e){const t=S(e);return t&&!t.disableAutodetect}function j(e,t){const r=e;o.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&_()}),!1),Object.assign(e,{highlight:d,highlightAuto:m,highlightAll:_,fixMarkup:function(e){return X("10.2.0","fixMarkup will be removed entirely in v11.0"),X("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,p.tabReplace||p.useBR?t.replace(s,(e=>"\n"===e?p.useBR?"<br>":e:p.tabReplace?e.replace(/\t/g,p.tabReplace):e)):t;var t},highlightElement:b,highlightBlock:function(e){return X("10.7.0","highlightBlock will be removed entirely in v12.0"),X("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(X("10.3.0","'useBR' will be removed entirely in v11.0"),X("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),p=te(p,e)},initHighlighting:w,initHighlightingOnLoad:function(){X("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(r,n){let a=null;try{a=n(e)}catch(e){if(Z("Language definition for '{}' could not be registered.".replace("{}",r)),!i)throw e;Z(e),a=l}a.name||(a.name=r),t[r]=a,a.rawDefinition=n.bind(null,e),a.aliases&&O(a.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:S,registerAliases:O,requireLanguage:function(e){X("10.4.0","requireLanguage will be removed entirely in v11."),X("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=S(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:P,inherit:te,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),o.push(e)},vuePlugin:V(e).VuePlugin}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString="10.7.3";for(const e in D)"object"==typeof D[e]&&r(D[e]);return Object.assign(e,D),e.addPlugin(y),e.addPlugin(Q),e.addPlugin(v),e}({});e.exports=ne},5344:e=>{function t(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(i);const s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[c,e.SHEBANG(),l,s,e.HASH_COMMENT_MODE,o,i,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},r]}}},9721:e=>{function t(e){return r("(",e,")?")}function r(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",i="("+a+"|"+t(o)+"[a-zA-Z_]\\w*"+t("<[^<>]+>")+")",s={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t(o)+e.IDENT_RE,relevance:0},f=t(o)+e.IDENT_RE+"\\s*\\(",d={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},h={className:"function.dispatch",relevance:0,keywords:d,begin:r(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,e.IDENT_RE,(m=/\s*\(/,r("(?=",m,")")))};var m;const y=[h,u,s,n,e.C_BLOCK_COMMENT_MODE,l,c],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:y.concat([{begin:/\(/,end:/\)/,keywords:d,contains:y.concat(["self"]),relevance:0}]),relevance:0},v={className:"function",begin:"("+i+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:d,relevance:0},{begin:f,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,l]},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,l,s,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:d,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(g,v,h,y,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:d,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:c,keywords:d}}}},4564:e=>{e.exports=function(e){const t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}}},3402:e=>{function t(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const r="HTTP/(2|1\\.[01])",n={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},a=[n,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:a}},e.inherit(n,{relevance:0})]}}},1786:e=>{var t="[0-9](_*[0-9])*",r=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${t})((${r})|\\.)?|(${r}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){var t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=t+"(<"+t+"(\\s*,\\s*"+t+")*>)?",n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",o={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const i=a;return{name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+r+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,o]}}},5089:e=>{const t="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function o(e){return i("(?=",e,")")}function i(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const s=t,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,n=e.input[r];"<"!==n?">"===n&&(((e,{after:t})=>{const r="</"+e[0].slice(1);return-1!==e.input.indexOf(r,t)})(e,{after:r})||t.ignoreMatch()):t.ignoreMatch()}},l={$pattern:t,keyword:r,literal:n,built_in:a},u="[0-9](_?[0-9])*",p=`\\.(${u})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${p})|\\.)?|(${p}))[eE][+-]?(${u})\\b`},{begin:`\\b(${f})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},g={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,g,d,e.REGEXP_MODE];h.contains=b.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(b)});const w=[].concat(v,h.contains),E=w.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(w)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:E};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,g,v,d,{begin:i(/[{,\n]\s*/,o(i(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,s+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:s+o("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[v,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:E}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:"</>"},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l,contains:["self",e.inherit(e.TITLE_MODE,{begin:s}),_],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[_,e.inherit(e.TITLE_MODE,{begin:s})]},{variants:[{begin:"\\."+s},{begin:"\\$"+s}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:s}),"self",_]},{begin:"(get|set)\\s+(?="+s+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:s}),{begin:/\(\)/},_]},{begin:/\$[(.]/}]}}},5772:e=>{e.exports=function(e){const t={literal:"true false null"},r=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},o={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(a,{begin:/:/})].concat(r),illegal:"\\S"},i={begin:"\\[",end:"\\]",contains:[e.inherit(a)],illegal:"\\S"};return n.push(o,i),r.forEach((function(e){n.push(e)})),{name:"JSON",contains:n,keywords:t,illegal:"\\S"}}},4608:e=>{e.exports=function(e){const t={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},r={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},n={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},a=e.inherit(e.APOS_STRING_MODE,{illegal:null}),o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(n)}),i=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(n)}),s={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[e.inherit(a,{begin:"b'",end:"'"}),e.inherit(o,{begin:'b"',end:'"'}),o,a,i]},c={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},l={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:l,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[r]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),r,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,c]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},s,c]}}},6571:e=>{e.exports=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},r={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},a={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[r,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},i=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),s={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},c={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},l={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[n]}]},u={begin:/using\s/,end:/$/,returnBegin:!0,contains:[a,o,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},p={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},f={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},d=[f,i,r,e.NUMBER_MODE,a,o,s,n,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],h={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",d,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return f.contains.unshift(h),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:t,contains:d.concat(c,l,u,p,h)}}},7192:e=>{e.exports=function(e){const t={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},r={className:"meta",begin:/^(>>>|\.\.\.) /},n={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},a={begin:/\{\{/,relevance:0},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,r],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,r,a,n]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r,a,n]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,n]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,n]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},i="[0-9](_?[0-9])*",s=`(\\b(${i}))?\\.(${i})|\\b(${i})\\.`,c={className:"number",relevance:0,variants:[{begin:`(\\b(${i})|(${s}))[eE][+-]?(${i})[jJ]?\\b`},{begin:`(${s})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${i})[jJ]\\b`}]},l={className:"comment",begin:(p=/# type:/,function(...e){return e.map((e=>function(e){return e?"string"==typeof e?e:e.source:null}(e))).join("")}("(?=",p,")")),end:/$/,keywords:t,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},u={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",r,c,o,e.HASH_COMMENT_MODE]}]};var p;return n.contains=[o,c,r],{name:"Python",aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[r,c,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},o,l,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,u,{begin:/->/,endsWithParent:!0,keywords:t}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[c,u,o]}]}}},9688:e=>{e.exports=function(e){const t="([ui](8|16|32|64|128|size)|f(32|64))?",r="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+t}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:r}},{begin:"->"}]}}},2825:e=>{const t="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function o(e){return i("(?=",e,")")}function i(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const s=t,c={$pattern:t,keyword:r.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]),literal:n,built_in:a.concat(["any","void","number","boolean","string","object","never","enum"])},l={className:"meta",begin:"@"+s},u=(e,t,r)=>{const n=e.contains.findIndex((e=>e.label===t));if(-1===n)throw new Error("can not find mode to replace");e.contains.splice(n,1,r)},p=function(e){const s=t,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,n=e.input[r];"<"!==n?">"===n&&(((e,{after:t})=>{const r="</"+e[0].slice(1);return-1!==e.input.indexOf(r,t)})(e,{after:r})||t.ignoreMatch()):t.ignoreMatch()}},l={$pattern:t,keyword:r,literal:n,built_in:a},u="[0-9](_?[0-9])*",p=`\\.(${u})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${p})|\\.)?|(${p}))[eE][+-]?(${u})\\b`},{begin:`\\b(${f})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},g={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,g,d,e.REGEXP_MODE];h.contains=b.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(b)});const w=[].concat(v,h.contains),E=w.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(w)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:E};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,y,g,v,d,{begin:i(/[{,\n]\s*/,o(i(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,s+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:s+o("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[v,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:E}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:"</>"},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l,contains:["self",e.inherit(e.TITLE_MODE,{begin:s}),_],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[_,e.inherit(e.TITLE_MODE,{begin:s})]},{variants:[{begin:"\\."+s},{begin:"\\$"+s}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:s}),"self",_]},{begin:"(get|set)\\s+(?="+s+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:s}),{begin:/\(\)/},_]},{begin:/\$[(.]/}]}}(e);return Object.assign(p.keywords,c),p.exports.PARAMS_CONTAINS.push(l),p.contains=p.contains.concat([l,{beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"}]),u(p,"shebang",e.SHEBANG()),u(p,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),p.contains.find((e=>"function"===e.className)).relevance=0,Object.assign(p,{name:"TypeScript",aliases:["ts","tsx"]}),p}},7285:e=>{function t(e){return e?"string"==typeof e?e:e.source:null}function r(e){return n("(?=",e,")")}function n(...e){return e.map((e=>t(e))).join("")}function a(...e){return"("+e.map((e=>t(e))).join("|")+")"}e.exports=function(e){const t=n(/[A-Z_]/,n("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(i,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,c,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,s,l,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,r(n(t,a(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:u}]},{className:"tag",begin:n(/<\//,r(n(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},7533:e=>{e.exports=function(e){var t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},a=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},i={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},s={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},i,s,n],l=[...c];return l.pop(),l.push(a),o.contains=l,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}},1174:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};t.__esModule=!0,t.CodeBuilder=void 0;t.CodeBuilder=function(e){var t=void 0===e?{}:e,a=t.indent,o=t.join,i=this;this.postProcessors=[],this.code=[],this.indentationCharacter="",this.lineJoin="\n",this.indentLine=function(e,t){void 0===t&&(t=0);var r=i.indentationCharacter.repeat(t);return"".concat(r).concat(e)},this.unshift=function(e,t){var r=i.indentLine(e,t);i.code.unshift(r)},this.push=function(e,t){var r=i.indentLine(e,t);i.code.push(r)},this.blank=function(){i.code.push("")},this.join=function(){var e=i.code.join(i.lineJoin);return i.postProcessors.reduce((function(e,t){return t(e)}),e)},this.addPostProcessor=function(e){i.postProcessors=n(n([],r(i.postProcessors),!1),[e],!1)},this.indentationCharacter=a||"",this.lineJoin=null!=o?o:"\n"}},5962:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};function a(e,t){void 0===t&&(t={});var a=t.delimiter,o=void 0===a?'"':a,i=t.escapeChar,s=void 0===i?"\\":i,c=t.escapeNewlines,l=void 0===c||c,u=e.toString();return n([],r(u),!1).map((function(e){return"\b"===e?s+"b":"\t"===e?s+"t":"\n"===e?l?s+"n":e:"\f"===e?s+"f":"\r"===e?l?s+"r":e:e===s?s+s:e===o?s+o:e<" "||e>"~"?JSON.stringify(e).slice(1,-1):e})).join("")}t.__esModule=!0,t.escapeForDoubleQuotes=t.escapeForSingleQuotes=t.escapeString=void 0,t.escapeString=a,t.escapeForSingleQuotes=function(e){return a(e,{delimiter:"'"})},t.escapeForDoubleQuotes=function(e){return a(e,{delimiter:'"'})}},4076:function(e,t){"use strict";var r=this&&this.__generator||function(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};t.__esModule=!0,t.formDataIterator=t.isBlob=void 0;var o="\r\n",i="-".repeat(2),s=Symbol.toStringTag;t.isBlob=function(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[s])};var c=function(e){return"".concat(i).concat(e).concat(i).concat(o.repeat(2))},l=function(e,r,n){var a="";return a+="".concat(i).concat(e).concat(o),a+='Content-Disposition: form-data; name="'.concat(r,'"'),(0,t.isBlob)(n)&&(a+='; filename="'.concat(n.name,'"').concat(o),a+="Content-Type: ".concat(n.type||"application/octet-stream")),"".concat(a).concat(o.repeat(2))};t.formDataIterator=function(e,i){var s,u,p,f,d,h,m,y;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,10,11,12]),s=n(e),u=s.next(),r.label=1;case 1:return u.done?[3,9]:(p=a(u.value,2),f=p[0],d=p[1],[4,l(i,f,d)]);case 2:return r.sent(),(0,t.isBlob)(d)?[5,n(d.stream())]:[3,4];case 3:return r.sent(),[3,6];case 4:return[4,d];case 5:r.sent(),r.label=6;case 6:return[4,o];case 7:r.sent(),r.label=8;case 8:return u=s.next(),[3,1];case 9:return[3,12];case 10:return h=r.sent(),m={error:h},[3,12];case 11:try{u&&!u.done&&(y=s.return)&&y.call(s)}finally{if(m)throw m.error}return[7];case 12:return[4,c(i)];case 13:return r.sent(),[2]}}))}},7949:function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.validateHarRequest=t.HARError=void 0;var l=c(r(8019)),u=s(r(7964)),p=function(e){function t(t){var r=e.call(this)||this;return r.name="HARError",r.message="validation failed",r.errors=[],r.errors=t,Error.captureStackTrace(r,r.constructor),r}return a(t,e),t}(Error);t.HARError=p;var f=new l.default({allErrors:!0});f.addSchema(u),t.validateHarRequest=function(e){var t=f.getSchema("request.json");if(!t)throw new Error("failed to find HAR request schema");if(!t(e)&&t.errors)throw new p(t.errors);return!0}},5899:(e,t)=>{"use strict";t.__esModule=!0,t.isMimeTypeJSON=t.hasHeader=t.getHeader=t.getHeaderName=void 0,t.getHeaderName=function(e,t){return Object.keys(e).find((function(e){return e.toLowerCase()===t.toLowerCase()}))},t.getHeader=function(e,r){var n=(0,t.getHeaderName)(e,r);if(n)return e[n]},t.hasHeader=function(e,r){return Boolean((0,t.getHeaderName)(e,r))};var r=["application/json","application/x-json","text/json","text/x-json","+json"];t.isMimeTypeJSON=function(e){return r.some((function(t){return e.includes(t)}))}},9661:(e,t)=>{"use strict";t.__esModule=!0,t.reducer=void 0,t.reducer=function(e,t){var r=e[t.name];return void 0===r?(e[t.name]=t.value,e):Array.isArray(r)?(r.push(t.value),e):(e[t.name]=[r,t.value],e)}},3247:(e,t)=>{"use strict";t.__esModule=!0,t.escape=t.quote=void 0,t.quote=function(e){return void 0===e&&(e=""),/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:"'".concat(e.replace(/'/g,"'\\''"),"'")},t.escape=function(e){return e.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}},960:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.extname=t.availableTargets=void 0;var a=r(3424);t.availableTargets=function(){return Object.keys(a.targets).map((function(e){return n(n({},a.targets[e].info),{clients:Object.keys(a.targets[e].clientsById).map((function(t){return a.targets[e].clientsById[t].info}))})}))},t.extname=function(e){var t;return(null===(t=a.targets[e])||void 0===t?void 0:t.info.extname)||""}},1258:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.HTTPSnippet=t.addTargetClient=t.addTarget=t.extname=t.availableTargets=void 0;var s=r(8954),c=i(r(1894)),l=r(2894),u=r(8835),p=r(4076),f=r(7949),d=r(5899),h=r(9661),m=r(3424),y=r(960);a(t,y,"availableTargets"),a(t,y,"extname");var g=r(3424);a(t,g,"addTarget"),a(t,g,"addTargetClient");var v=function(){};t.HTTPSnippet=function(e){var t,r=this;this.requests=[],this.prepare=function(e){var t,r,a,i,f,m=n(n({},e),{fullUrl:"",uriObj:{},queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}});if(m.queryString&&m.queryString.length&&(v("queryString found, constructing queryString pair map"),m.queryObj=m.queryString.reduce(h.reducer,{})),m.headers&&m.headers.length){var y=/^HTTP\/2/;m.headersObj=m.headers.reduce((function(e,t){var r,a=t.name,o=t.value,i=y.exec(m.httpVersion)?a.toLocaleLowerCase():a;return n(n({},e),((r={})[i]=o,r))}),{})}m.cookies&&m.cookies.length&&(m.cookiesObj=m.cookies.reduceRight((function(e,t){var r,a=t.name,o=t.value;return n(n({},e),((r={})[a]=o,r))}),{}));var g=null===(a=m.cookies)||void 0===a?void 0:a.map((function(e){var t=e.name,r=e.value;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r))}));switch((null==g?void 0:g.length)&&(m.allHeaders.cookie=g.join("; ")),m.postData.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(m.postData.text="",m.postData.mimeType="multipart/form-data",null===(i=m.postData)||void 0===i?void 0:i.params){var b=new c.default,w="function"==typeof b[Symbol.iterator],E="---011000010111000001101001";if(w||(b._boundary=E),null===(f=m.postData)||void 0===f||f.params.forEach((function(e){var t=e.name,r=e.value||"",n=e.fileName||null;w?(0,p.isBlob)(r)?b.append(t,r,n):b.append(t,r):b.append(t,r,{filename:n,contentType:e.contentType||null})})),w)try{for(var _=o((0,p.formDataIterator)(b,E)),S=_.next();!S.done;S=_.next()){var O=S.value;m.postData.text+=O}}catch(e){t={error:e}}finally{try{S&&!S.done&&(r=_.return)&&r.call(_)}finally{if(t)throw t.error}}else b.pipe((0,s.map)((function(e){m.postData.text+=e})));m.postData.boundary=E;var P=(0,d.getHeaderName)(m.headersObj,"content-type")||"content-type";m.headersObj[P]="multipart/form-data; boundary=".concat(E)}break;case"application/x-www-form-urlencoded":m.postData.params?(m.postData.paramsObj=m.postData.params.reduce(h.reducer,{}),m.postData.text=(0,l.stringify)(m.postData.paramsObj)):m.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(m.postData.mimeType="application/json",m.postData.text)try{m.postData.jsonObj=JSON.parse(m.postData.text)}catch(e){v(e),m.postData.mimeType="text/plain"}}var j=n(n({},m.allHeaders),m.headersObj),x=(0,u.parse)(m.url,!0,!0);m.queryObj=n(n({},m.queryObj),x.query);var R=(0,l.stringify)(m.queryObj),T=n(n({},x),{query:m.queryObj,search:R,path:R?"".concat(x.pathname,"?").concat(R):x.pathname}),k=(0,u.format)(n(n({},x),{query:null,search:null})),N=(0,u.format)(n(n({},x),T));return n(n({},m),{allHeaders:j,fullUrl:N,url:k,uriObj:T})},this.convert=function(e,t,n){!n&&t&&(n=t);var a=m.targets[e];if(!a)return!1;var o=a.clientsById[t||a.info.default].convert,i=r.requests.map((function(e){return o(e,n)}));return 1===i.length?i[0]:i},this.requests=[],("object"==typeof(t=e)&&"log"in t&&"object"==typeof t.log&&"entries"in t.log&&Array.isArray(t.log.entries)?e.log.entries:[{request:e}]).forEach((function(e){var t,a=e.request,o=n({bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1",queryString:[],postData:{mimeType:(null===(t=a.postData)||void 0===t?void 0:t.mimeType)||"application/octet-stream"}},a);(0,f.validateHarRequest)(o)&&r.requests.push(r.prepare(o))}))}},2847:(e,t,r)=>{"use strict";t.__esModule=!0,t.libcurl=void 0;var n=r(1174),a=r(5962);t.libcurl={info:{key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",description:"Simple REST and HTTP API Client for C"},convert:function(e){var t=e.method,r=e.fullUrl,o=e.headersObj,i=e.allHeaders,s=e.postData,c=new n.CodeBuilder,l=c.push,u=c.blank,p=c.join;l("CURL *hnd = curl_easy_init();"),u(),l('curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "'.concat(t.toUpperCase(),'");')),l('curl_easy_setopt(hnd, CURLOPT_URL, "'.concat(r,'");'));var f=Object.keys(o);return f.length&&(u(),l("struct curl_slist *headers = NULL;"),f.forEach((function(e){l('headers = curl_slist_append(headers, "'.concat(e,": ").concat((0,a.escapeForDoubleQuotes)(o[e]),'");'))})),l("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),i.cookie&&(u(),l('curl_easy_setopt(hnd, CURLOPT_COOKIE, "'.concat(i.cookie,'");'))),s.text&&(u(),l("curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ".concat(JSON.stringify(s.text),");"))),u(),l("CURLcode ret = curl_easy_perform(hnd);"),p()}}},7635:(e,t,r)=>{"use strict";t.__esModule=!0,t.c=void 0;var n=r(2847);t.c={info:{key:"c",title:"C",extname:".c",default:"libcurl"},clientsById:{libcurl:n.libcurl}}},6019:(e,t,r)=>{"use strict";t.__esModule=!0,t.clj_http=void 0;var n=r(1174),a=r(5899),o=function(e){var t=this;this.name="",this.toString=function(){return":".concat(t.name)},this.name=e},i=function(e){var t=this;this.path="",this.toString=function(){return'(clojure.java.io/file "'.concat(t.path,'")')},this.path=e},s=function(e){return void 0===e?null:null===e?"null":e.constructor.name.toLowerCase()},c=function(e){return"object"===s(e)&&0===Object.keys(e).length},l=function(e){return Object.keys(e).filter((function(t){return c(e[t])})).forEach((function(t){delete e[t]})),e},u=function(e,t){var r=" ".repeat(e);return t.replace(/\n/g,"\n".concat(r))},p=function(e){switch(s(e)){case"string":return'"'.concat(e.replace(/"/g,'\\"'),'"');case"file":case"keyword":default:return e.toString();case"null":return"nil";case"regexp":return'#"'.concat(e.source,'"');case"object":var t=Object.keys(e).reduce((function(t,r){var n=u(r.length+2,p(e[r]));return"".concat(t,":").concat(r," ").concat(n,"\n ")}),"").trim();return"{".concat(u(1,t),"}");case"array":var r=e.reduce((function(e,t){return"".concat(e," ").concat(p(t))}),"").trim();return"[".concat(u(1,r),"]")}};t.clj_http={info:{key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."},convert:function(e,t){var r=e.queryObj,s=e.method,f=e.postData,d=e.url,h=e.allHeaders,m=new n.CodeBuilder({indent:null==t?void 0:t.indent}),y=m.push,g=m.join;if(s=s.toLowerCase(),!["get","post","put","delete","patch","head","options"].includes(s))return y("Method not supported"),g();var v={headers:h,"query-params":r};switch(f.mimeType){case"application/json":v["content-type"]=new o("json"),v["form-params"]=f.jsonObj,(b=(0,a.getHeaderName)(v.headers,"content-type"))&&delete v.headers[b];break;case"application/x-www-form-urlencoded":v["form-params"]=f.paramsObj,(b=(0,a.getHeaderName)(v.headers,"content-type"))&&delete v.headers[b];break;case"text/plain":v.body=f.text,(b=(0,a.getHeaderName)(v.headers,"content-type"))&&delete v.headers[b];break;case"multipart/form-data":var b;f.params&&(v.multipart=f.params.map((function(e){return e.fileName&&!e.value?{name:e.name,content:new i(e.fileName)}:{name:e.name,content:e.value}})),(b=(0,a.getHeaderName)(v.headers,"content-type"))&&delete v.headers[b])}if("application/json"===(0,a.getHeader)(v.headers,"accept")&&(v.accept=new o("json"),(b=(0,a.getHeaderName)(v.headers,"accept"))&&delete v.headers[b]),y("(require '[clj-http.client :as client])\n"),c(l(v)))y("(client/".concat(s,' "').concat(d,'")'));else{var w=11+s.length+d.length,E=u(w,p(l(v)));y("(client/".concat(s,' "').concat(d,'" ').concat(E,")"))}return g()}}},2408:(e,t,r)=>{"use strict";t.__esModule=!0,t.clojure=void 0;var n=r(6019);t.clojure={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clientsById:{clj_http:n.clj_http}}},7875:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.httpclient=void 0;var a=r(1174),o=r(5962),i=r(5899);t.httpclient={info:{key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},convert:function(e,t){var r,s,c=e.allHeaders,l=e.postData,u=e.method,p=e.fullUrl,f=n({indent:" "},t),d=new a.CodeBuilder({indent:f.indent}),h=d.push,m=d.join;h("using System.Net.Http.Headers;");var y="",g=Boolean(c.cookie),v=function(e){var t=(0,i.getHeader)(e,"accept-encoding");if(!t)return[];var r={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},n=[];return"string"==typeof t&&(t=[t]),t.forEach((function(e){e.split(",").forEach((function(e){var t=/\s*([^;\s]+)/.exec(e);if(t){var a=r[t[1]];a&&n.push(a)}}))})),n}(c);(g||v.length)&&(y="clientHandler",h("var clientHandler = new HttpClientHandler"),h("{"),g&&h("UseCookies = false,",1),v.length&&h("AutomaticDecompression = ".concat(v.join(" | "),","),1),h("};")),h("var client = new HttpClient(".concat(y,");")),h("var request = new HttpRequestMessage"),h("{"),u=(u=u.toUpperCase())&&["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].includes(u)?"HttpMethod.".concat(u[0]).concat(u.substring(1).toLowerCase()):'new HttpMethod("'.concat(u,'")'),h("Method = ".concat(u,","),1),h('RequestUri = new Uri("'.concat(p,'"),'),1);var b=Object.keys(c).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(b.length&&(h("Headers =",1),h("{",1),b.forEach((function(e){h('{ "'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(c[e]),'" },'),2)})),h("},",1)),l.text){var w=l.mimeType;switch(w){case"application/x-www-form-urlencoded":h("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),h("{",1),null===(r=l.params)||void 0===r||r.forEach((function(e){h('{ "'.concat(e.name,'", "').concat(e.value,'" },'),2)})),h("}),",1);break;case"multipart/form-data":h("Content = new MultipartFormDataContent",1),h("{",1),null===(s=l.params)||void 0===s||s.forEach((function(e){h("new StringContent(".concat(JSON.stringify(e.value||""),")"),2),h("{",2),h("Headers =",3),h("{",3),e.contentType&&h('ContentType = new MediaTypeHeaderValue("'.concat(e.contentType,'"),'),4),h('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),h("{",4),h('Name = "'.concat(e.name,'",'),5),e.fileName&&h('FileName = "'.concat(e.fileName,'",'),5),h("}",4),h("}",3),h("},",2)})),h("},",1);break;default:h("Content = new StringContent(".concat(JSON.stringify(l.text||""),")"),1),h("{",1),h("Headers =",2),h("{",2),h('ContentType = new MediaTypeHeaderValue("'.concat(w,'")'),3),h("}",2),h("}",1)}}return h("};"),h("using (var response = await client.SendAsync(request))"),h("{"),h("response.EnsureSuccessStatusCode();",1),h("var body = await response.Content.ReadAsStringAsync();",1),h("Console.WriteLine(body);",1),h("}"),m()}}},4022:(e,t,r)=>{"use strict";t.__esModule=!0,t.restsharp=void 0;var n=r(1174),a=r(5962),o=r(5899);t.restsharp={info:{key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"},convert:function(e){var t=e.allHeaders,r=e.method,i=e.fullUrl,s=e.headersObj,c=e.cookies,l=e.postData,u=new n.CodeBuilder,p=u.push,f=u.join;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(r.toUpperCase()))return"Method not supported";if(p('var client = new RestClient("'.concat(i,'");')),p("var request = new RestRequest(Method.".concat(r.toUpperCase(),");")),Object.keys(s).forEach((function(e){p('request.AddHeader("'.concat(e,'", "').concat((0,a.escapeForDoubleQuotes)(s[e]),'");'))})),c.forEach((function(e){var t=e.name,r=e.value;p('request.AddCookie("'.concat(t,'", "').concat(r,'");'))})),l.text){var d=(0,o.getHeader)(t,"content-type"),h=JSON.stringify(l.text);p('request.AddParameter("'.concat(d,'", ').concat(h,", ParameterType.RequestBody);"))}return p("IRestResponse response = client.Execute(request);"),f()}}},7519:(e,t,r)=>{"use strict";t.__esModule=!0,t.csharp=void 0;var n=r(7875),a=r(4022);t.csharp={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},clientsById:{httpclient:n.httpclient,restsharp:a.restsharp}}},9645:(e,t,r)=>{"use strict";t.__esModule=!0,t.native=void 0;var n=r(1174),a=r(5962);t.native={info:{key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"},convert:function(e,t){var r=e.postData,o=e.method,i=e.allHeaders,s=e.fullUrl;void 0===t&&(t={});var c=new n.CodeBuilder({indent:"\t"}),l=c.blank,u=c.push,p=c.join,f=t.showBoilerplate,d=void 0===f||f,h=t.checkErrors,m=void 0!==h&&h,y=t.printBody,g=void 0===y||y,v=t.timeout,b=void 0===v?-1:v,w=t.insecureSkipVerify,E=void 0!==w&&w,_=m?"err":"_",S=d?1:0,O=function(){m&&(u("if err != nil {",S),u("panic(err)",S+1),u("}",S))};d&&(u("package main"),l(),u("import ("),u('"fmt"',S),b>0&&u('"time"',S),E&&u('"crypto/tls"',S),r.text&&u('"strings"',S),u('"net/http"',S),g&&u('"io"',S),u(")"),l(),u("func main() {"),l()),E&&(u("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",S),u("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",S));var P=b>0,j=P||E,x=j?"client":"http.DefaultClient";return j&&(u("client := http.Client{",S),P&&u("Timeout: time.Duration(".concat(b," * time.Second),"),S+1),E&&u("Transport: insecureTransport,",S+1),u("}",S),l()),u('url := "'.concat(s,'"'),S),l(),r.text?(u("payload := strings.NewReader(".concat(JSON.stringify(r.text),")"),S),l(),u("req, ".concat(_,' := http.NewRequest("').concat(o,'", url, payload)'),S),l()):(u("req, ".concat(_,' := http.NewRequest("').concat(o,'", url, nil)'),S),l()),O(),Object.keys(i).length&&(Object.keys(i).forEach((function(e){u('req.Header.Add("'.concat(e,'", "').concat((0,a.escapeForDoubleQuotes)(i[e]),'")'),S)})),l()),u("res, ".concat(_," := ").concat(x,".Do(req)"),S),O(),g&&(l(),u("defer res.Body.Close()",S),u("body, ".concat(_," := io.ReadAll(res.Body)"),S),O()),l(),u("fmt.Println(res)",S),g&&u("fmt.Println(string(body))",S),d&&(l(),u("}")),p()}}},6908:(e,t,r)=>{"use strict";t.__esModule=!0,t.go=void 0;var n=r(9645);t.go={info:{key:"go",title:"Go",extname:".go",default:"native"},clientsById:{native:n.native}}},5303:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.http11=void 0;var a=r(1174);t.http11={info:{key:"http1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"},convert:function(e,t){var r=e.method,o=e.fullUrl,i=e.uriObj,s=e.httpVersion,c=e.allHeaders,l=e.postData,u=n({absoluteURI:!1,autoContentLength:!0,autoHost:!0},t),p=new a.CodeBuilder({indent:"",join:"\r\n"}),f=p.blank,d=p.push,h=p.join,m=u.absoluteURI?o:i.path;d("".concat(r," ").concat(m," ").concat(s));var y=Object.keys(c);if(y.forEach((function(e){var t=e.toLowerCase().replace(/(^|-)(\w)/g,(function(e){return e.toUpperCase()}));d("".concat(t,": ").concat(c[e]))})),u.autoHost&&!y.includes("host")&&d("Host: ".concat(i.host)),u.autoContentLength&&l.text&&!y.includes("content-length")){var g=Buffer.byteLength(l.text,"ascii").toString();d("Content-Length: ".concat(g))}f();var v=h(),b=l.text||"";return"".concat(v).concat("\r\n").concat(b)}}},7954:(e,t,r)=>{"use strict";t.__esModule=!0,t.http=void 0;var n=r(5303);t.http={info:{key:"http",title:"HTTP",extname:null,default:"1.1"},clientsById:{"http1.1":n.http11}}},3909:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.asynchttp=void 0;var a=r(1174),o=r(5962);t.asynchttp={info:{key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"},convert:function(e,t){var r=e.method,i=e.allHeaders,s=e.postData,c=e.fullUrl,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.blank,f=u.push,d=u.join;return f("AsyncHttpClient client = new DefaultAsyncHttpClient();"),f('client.prepare("'.concat(r.toUpperCase(),'", "').concat(c,'")')),Object.keys(i).forEach((function(e){f('.setHeader("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(i[e]),'")'),1)})),s.text&&f(".setBody(".concat(JSON.stringify(s.text),")"),1),f(".execute()",1),f(".toCompletableFuture()",1),f(".thenAccept(System.out::println)",1),f(".join();",1),p(),f("client.close();"),d()}}},9128:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.nethttp=void 0;var a=r(1174),o=r(5962);t.nethttp={info:{key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"},convert:function(e,t){var r=e.allHeaders,i=e.fullUrl,s=e.method,c=e.postData,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.push,f=u.join;return p("HttpRequest request = HttpRequest.newBuilder()"),p('.uri(URI.create("'.concat(i,'"))'),2),Object.keys(r).forEach((function(e){p('.header("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(r[e]),'")'),2)})),c.text?p('.method("'.concat(s.toUpperCase(),'", HttpRequest.BodyPublishers.ofString(').concat(JSON.stringify(c.text),"))"),2):p('.method("'.concat(s.toUpperCase(),'", HttpRequest.BodyPublishers.noBody())'),2),p(".build();",2),p("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),p("System.out.println(response.body());"),f()}}},4175:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.okhttp=void 0;var a=r(1174),o=r(5962);t.okhttp={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:function(e,t){var r=e.postData,i=e.method,s=e.fullUrl,c=e.allHeaders,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.push,f=u.blank,d=u.join;return p("OkHttpClient client = new OkHttpClient();"),f(),r.text&&(r.boundary?p('MediaType mediaType = MediaType.parse("'.concat(r.mimeType,"; boundary=").concat(r.boundary,'");')):p('MediaType mediaType = MediaType.parse("'.concat(r.mimeType,'");')),p("RequestBody body = RequestBody.create(mediaType, ".concat(JSON.stringify(r.text),");"))),p("Request request = new Request.Builder()"),p('.url("'.concat(s,'")'),1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(i.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(i.toUpperCase())?r.text?p(".".concat(i.toLowerCase(),"(body)"),1):p(".".concat(i.toLowerCase(),"(null)"),1):p(".".concat(i.toLowerCase(),"()"),1):r.text?p('.method("'.concat(i.toUpperCase(),'", body)'),1):p('.method("'.concat(i.toUpperCase(),'", null)'),1),Object.keys(c).forEach((function(e){p('.addHeader("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(c[e]),'")'),1)})),p(".build();",1),f(),p("Response response = client.newCall(request).execute();"),d()}}},8794:(e,t,r)=>{"use strict";t.__esModule=!0,t.java=void 0;var n=r(3909),a=r(9128),o=r(4175),i=r(3397);t.java={info:{key:"java",title:"Java",extname:".java",default:"unirest"},clientsById:{asynchttp:n.asynchttp,nethttp:a.nethttp,okhttp:o.okhttp,unirest:i.unirest}}},3397:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.unirest=void 0;var a=r(1174),o=r(5962);t.unirest={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"},convert:function(e,t){var r=e.method,i=e.allHeaders,s=e.postData,c=e.fullUrl,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.join,f=u.push;return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(r.toUpperCase())?f("HttpResponse<String> response = Unirest.".concat(r.toLowerCase(),'("').concat(c,'")')):f('HttpResponse<String> response = Unirest.customMethod("'.concat(r.toUpperCase(),'","').concat(c,'")')),Object.keys(i).forEach((function(e){f('.header("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(i[e]),'")'),1)})),s.text&&f(".body(".concat(JSON.stringify(s.text),")"),1),f(".asString();",1),p()}}},7450:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.axios=void 0;var o=a(r(7846)),i=r(1174);t.axios={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:function(e,t){var r=e.allHeaders,a=e.method,s=e.url,c=e.queryObj,l=e.postData,u=n({indent:" "},t),p=new i.CodeBuilder({indent:u.indent}),f=p.blank,d=p.push,h=p.join,m=p.addPostProcessor;d("import axios from 'axios';"),f();var y={method:a,url:s};switch(Object.keys(c).length&&(y.params=c),Object.keys(r).length&&(y.headers=r),l.mimeType){case"application/x-www-form-urlencoded":l.params&&(d("const encodedParams = new URLSearchParams();"),l.params.forEach((function(e){d("encodedParams.set('".concat(e.name,"', '").concat(e.value,"');"))})),f(),y.data="encodedParams,",m((function(e){return e.replace(/'encodedParams,'/,"encodedParams,")})));break;case"application/json":l.jsonObj&&(y.data=l.jsonObj);break;case"multipart/form-data":if(!l.params)break;d("const form = new FormData();"),l.params.forEach((function(e){d("form.append('".concat(e.name,"', '").concat(e.value||e.fileName||"","');"))})),f(),y.data="[form]";break;default:l.text&&(y.data=l.text)}var g=(0,o.default)(y,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form");return d("const options = ".concat(g,";")),f(),d("try {"),d("const { data } = await axios.request(options);",1),d("console.log(data);",1),d("} catch (error) {"),d("console.error(error);",1),d("}"),h()}}},1560:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.fetch=void 0;var o=a(r(7846)),i=r(1174),s=r(5899);t.fetch={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"},convert:function(e,t){var r=e.method,a=e.allHeaders,c=e.postData,l=e.fullUrl,u=n({indent:" ",credentials:null},t),p=new i.CodeBuilder({indent:u.indent}),f=p.blank,d=p.join,h=p.push,m={method:r};switch(Object.keys(a).length&&(m.headers=a),null!==u.credentials&&(m.credentials=u.credentials),h("const url = '".concat(l,"';")),c.mimeType){case"application/x-www-form-urlencoded":m.body=c.paramsObj?c.paramsObj:c.text;break;case"application/json":m.body=JSON.stringify(c.jsonObj);break;case"multipart/form-data":if(!c.params)break;var y=(0,s.getHeaderName)(a,"content-type");y&&delete a[y],h("const form = new FormData();"),c.params.forEach((function(e){h("form.append('".concat(e.name,"', '").concat(e.value||e.fileName||"","');"))})),f();break;default:c.text&&(m.body=c.text)}return m.headers&&!Object.keys(m.headers).length&&delete m.headers,h("const options = ".concat((0,o.default)(m,{indent:u.indent,inlineCharacterLimit:80,transform:function(e,t,r){return"body"===t&&"application/x-www-form-urlencoded"===c.mimeType?"new URLSearchParams(".concat(r,")"):r}}),";")),f(),c.params&&"multipart/form-data"===c.mimeType&&(h("options.body = form;"),f()),h("try {"),h("const response = await fetch(url, options);",1),h("const data = await response.json();",1),h("console.log(data);",1),h("} catch (error) {"),h("console.error(error);",1),h("}"),d()}}},3328:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.jquery=void 0;var o=a(r(7846)),i=r(1174),s=r(5899);t.jquery={info:{key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},convert:function(e,t){var r,a=e.fullUrl,c=e.method,l=e.allHeaders,u=e.postData,p=n({indent:" "},t),f=new i.CodeBuilder({indent:p.indent}),d=f.blank,h=f.push,m=f.join,y={async:!0,crossDomain:!0,url:a,method:c,headers:l};switch(u.mimeType){case"application/x-www-form-urlencoded":y.data=u.paramsObj?u.paramsObj:u.text;break;case"application/json":y.processData=!1,y.data=u.text;break;case"multipart/form-data":if(!u.params)break;if(h("const form = new FormData();"),u.params.forEach((function(e){h("form.append('".concat(e.name,"', '").concat(e.value||e.fileName||"","');"))})),y.processData=!1,y.contentType=!1,y.mimeType="multipart/form-data",y.data="[form]",(0,s.hasHeader)(l,"content-type")&&(null===(r=(0,s.getHeader)(l,"content-type"))||void 0===r?void 0:r.includes("boundary"))){var g=(0,s.getHeaderName)(l,"content-type");g&&delete y.headers[g]}d();break;default:u.text&&(y.data=u.text)}var v=(0,o.default)(y,{indent:p.indent}).replace("'[form]'","form");return h("const settings = ".concat(v,";")),d(),h("$.ajax(settings).done(function (response) {"),h("console.log(response);",1),h("});"),m()}}},6551:(e,t,r)=>{"use strict";t.__esModule=!0,t.javascript=void 0;var n=r(7450),a=r(1560),o=r(3328),i=r(8254);t.javascript={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},clientsById:{xhr:i.xhr,axios:n.axios,fetch:a.fetch,jquery:o.jquery}}},8254:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.xhr=void 0;var o=a(r(7846)),i=r(1174),s=r(5962),c=r(5899);t.xhr={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"},convert:function(e,t){var r,a=e.postData,l=e.allHeaders,u=e.method,p=e.fullUrl,f=n({indent:" ",cors:!0},t),d=new i.CodeBuilder({indent:f.indent}),h=d.blank,m=d.push,y=d.join;switch(a.mimeType){case"application/json":m("const data = JSON.stringify(".concat((0,o.default)(a.jsonObj,{indent:f.indent}),");")),h();break;case"multipart/form-data":if(!a.params)break;if(m("const data = new FormData();"),a.params.forEach((function(e){m("data.append('".concat(e.name,"', '").concat(e.value||e.fileName||"","');"))})),(0,c.hasHeader)(l,"content-type")&&(null===(r=(0,c.getHeader)(l,"content-type"))||void 0===r?void 0:r.includes("boundary"))){var g=(0,c.getHeaderName)(l,"content-type");g&&delete l[g]}h();break;default:m("const data = ".concat(a.text?"'".concat(a.text,"'"):"null",";")),h()}return m("const xhr = new XMLHttpRequest();"),f.cors&&m("xhr.withCredentials = true;"),h(),m("xhr.addEventListener('readystatechange', function () {"),m("if (this.readyState === this.DONE) {",1),m("console.log(this.responseText);",2),m("}",1),m("});"),h(),m("xhr.open('".concat(u,"', '").concat(p,"');")),Object.keys(l).forEach((function(e){m("xhr.setRequestHeader('".concat(e,"', '").concat((0,s.escapeForSingleQuotes)(l[e]),"');"))})),h(),m("xhr.send(data);"),y()}}},1314:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.okhttp=void 0;var a=r(1174),o=r(5962);t.okhttp={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:function(e,t){var r=e.postData,i=e.fullUrl,s=e.method,c=e.allHeaders,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.blank,f=u.join,d=u.push;return d("val client = OkHttpClient()"),p(),r.text&&(r.boundary?d('val mediaType = MediaType.parse("'.concat(r.mimeType,"; boundary=").concat(r.boundary,'")')):d('val mediaType = MediaType.parse("'.concat(r.mimeType,'")')),d("val body = RequestBody.create(mediaType, ".concat(JSON.stringify(r.text),")"))),d("val request = Request.Builder()"),d('.url("'.concat(i,'")'),1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(s.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(s.toUpperCase())?r.text?d(".".concat(s.toLowerCase(),"(body)"),1):d(".".concat(s.toLowerCase(),"(null)"),1):d(".".concat(s.toLowerCase(),"()"),1):r.text?d('.method("'.concat(s.toUpperCase(),'", body)'),1):d('.method("'.concat(s.toUpperCase(),'", null)'),1),Object.keys(c).forEach((function(e){d('.addHeader("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(c[e]),'")'),1)})),d(".build()",1),p(),d("val response = client.newCall(request).execute()"),f()}}},3309:(e,t,r)=>{"use strict";t.__esModule=!0,t.kotlin=void 0;var n=r(1314);t.kotlin={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},clientsById:{okhttp:n.okhttp}}},8295:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.axios=void 0;var o=a(r(7846)),i=r(1174);t.axios={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:function(e,t){var r=e.method,a=e.url,s=e.queryObj,c=e.allHeaders,l=e.postData,u=n({indent:" "},t),p=new i.CodeBuilder({indent:u.indent}),f=p.blank,d=p.join,h=p.push,m=p.addPostProcessor;h("const axios = require('axios').default;");var y={method:r,url:a};switch(Object.keys(s).length&&(y.params=s),Object.keys(c).length&&(y.headers=c),l.mimeType){case"application/x-www-form-urlencoded":l.params&&(h("const { URLSearchParams } = require('url');"),f(),h("const encodedParams = new URLSearchParams();"),l.params.forEach((function(e){h("encodedParams.set('".concat(e.name,"', '").concat(e.value,"');"))})),f(),y.data="encodedParams,",m((function(e){return e.replace(/'encodedParams,'/,"encodedParams,")})));break;case"application/json":f(),l.jsonObj&&(y.data=l.jsonObj);break;default:f(),l.text&&(y.data=l.text)}var g=(0,o.default)(y,{indent:" ",inlineCharacterLimit:80});return h("const options = ".concat(g,";")),f(),h("try {"),h("const { data } = await axios.request(options);",1),h("console.log(data);",1),h("} catch (error) {"),h("console.error(error);",1),h("}"),d()}}},1785:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.fetch=void 0;var o=a(r(7846)),i=r(1174),s=r(5899);t.fetch={info:{key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"},convert:function(e,t){var r,a=e.method,c=e.fullUrl,l=e.postData,u=e.headersObj,p=e.cookies,f=n({indent:" "},t),d=!1,h=new i.CodeBuilder({indent:f.indent}),m=h.blank,y=h.push,g=h.join,v=h.unshift;y("const fetch = require('node-fetch');"),m();var b={method:a};switch(Object.keys(u).length&&(b.headers=u),l.mimeType){case"application/x-www-form-urlencoded":v("const { URLSearchParams } = require('url');"),y("const encodedParams = new URLSearchParams();"),null===(r=l.params)||void 0===r||r.forEach((function(e){y("encodedParams.set('".concat(e.name,"', '").concat(e.value,"');"))})),m(),b.body="encodedParams";break;case"application/json":l.jsonObj&&(b.body=JSON.stringify(l.jsonObj));break;case"multipart/form-data":if(!l.params)break;var w=(0,s.getHeaderName)(u,"content-type");w&&delete u[w],v("const FormData = require('form-data');"),y("const formData = new FormData();"),l.params.forEach((function(e){e.fileName||e.fileName||e.contentType?e.fileName&&(d=!0,y("formData.append('".concat(e.name,"', fs.createReadStream('").concat(e.fileName,"'));"))):y("formData.append('".concat(e.name,"', '").concat(e.value,"');"))})),m();break;default:l.text&&(b.body=l.text)}if(p.length){var E=p.map((function(e){return"".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))})).join("; ");b.headers||(b.headers={}),b.headers.cookie=E}y("const url = '".concat(c,"';")),b.headers&&!Object.keys(b.headers).length&&delete b.headers;var _=(0,o.default)(b,{indent:" ",inlineCharacterLimit:80});return y("const options = ".concat(_,";")),d&&v("const fs = require('fs');"),l.params&&"multipart/form-data"===l.mimeType&&y("options.body = formData;"),m(),y("try {"),y("const response = await fetch(url, options);",1),y("const data = await response.json();",1),y("console.log(data);",1),y("} catch (error) {"),y("console.error(error);",1),y("}"),g().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')}}},752:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.native=void 0;var o=a(r(7846)),i=r(1174);t.native={info:{key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"},convert:function(e,t){var r=e.uriObj,a=e.method,s=e.allHeaders,c=e.postData;void 0===t&&(t={});var l=t.indent,u=void 0===l?" ":l,p=t.insecureSkipVerify,f=void 0!==p&&p,d=new i.CodeBuilder({indent:u}),h=d.blank,m=d.join,y=d.push,g=d.unshift,v=n({method:a,hostname:r.hostname,port:r.port,path:r.path,headers:s},f?{rejectUnauthorized:!1}:{});switch(y("const http = require('".concat(r.protocol.replace(":",""),"');")),h(),y("const options = ".concat((0,o.default)(v,{indent:u}),";")),h(),y("const req = http.request(options, function (res) {"),y("const chunks = [];",1),h(),y("res.on('data', function (chunk) {",1),y("chunks.push(chunk);",2),y("});",1),h(),y("res.on('end', function () {",1),y("const body = Buffer.concat(chunks);",2),y("console.log(body.toString());",2),y("});",1),y("});"),h(),c.mimeType){case"application/x-www-form-urlencoded":c.paramsObj&&(g("const qs = require('querystring');"),y("req.write(qs.stringify(".concat((0,o.default)(c.paramsObj,{indent:" ",inlineCharacterLimit:80}),"));")));break;case"application/json":c.jsonObj&&y("req.write(JSON.stringify(".concat((0,o.default)(c.jsonObj,{indent:" ",inlineCharacterLimit:80}),"));"));break;default:c.text&&y("req.write(".concat((0,o.default)(c.text,{indent:u}),");"))}return y("req.end();"),m()}}},9626:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.request=void 0;var o=a(r(7846)),i=r(1174);t.request={info:{key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"},convert:function(e,t){var r=e.method,a=e.url,s=e.queryObj,c=e.postData,l=e.headersObj,u=e.cookies,p=n({indent:" "},t),f=!1,d=new i.CodeBuilder({indent:p.indent}),h=d.push,m=d.blank,y=d.join,g=d.unshift;h("const request = require('request');"),m();var v={method:r,url:a};switch(Object.keys(s).length&&(v.qs=s),Object.keys(l).length&&(v.headers=l),c.mimeType){case"application/x-www-form-urlencoded":v.form=c.paramsObj;break;case"application/json":c.jsonObj&&(v.body=c.jsonObj,v.json=!0);break;case"multipart/form-data":if(!c.params)break;v.formData={},c.params.forEach((function(e){if(e.fileName||e.fileName||e.contentType){var t={};e.fileName?(f=!0,t={value:"fs.createReadStream(".concat(e.fileName,")"),options:{filename:e.fileName,contentType:e.contentType?e.contentType:null}}):e.value&&(t.value=e.value),v.formData[e.name]=t}else v.formData[e.name]=e.value}));break;default:c.text&&(v.body=c.text)}return u.length&&(v.jar="JAR",h("const jar = request.jar();"),u.forEach((function(e){h("jar.setCookie(request.cookie('".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value),"'), '").concat(a,"');"))})),m()),f&&g("const fs = require('fs');"),h("const options = ".concat((0,o.default)(v,{indent:" ",inlineCharacterLimit:80}),";")),m(),h("request(options, function (error, response, body) {"),h("if (error) throw new Error(error);",1),m(),h("console.log(body);",1),h("});"),y().replace("'JAR'","jar").replace(/'fs\.createReadStream\((.*)\)'/,"fs.createReadStream('$1')")}}},2834:(e,t,r)=>{"use strict";t.__esModule=!0,t.node=void 0;var n=r(8295),a=r(1785),o=r(752),i=r(9626),s=r(9197);t.node={info:{key:"node",title:"Node.js",extname:".js",default:"native"},clientsById:{native:o.native,request:i.request,unirest:s.unirest,axios:n.axios,fetch:a.fetch}}},9197:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.unirest=void 0;var o=a(r(7846)),i=r(1174);t.unirest={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"},convert:function(e,t){var r=e.method,a=e.url,s=e.cookies,c=e.queryObj,l=e.postData,u=e.headersObj,p=n({indent:" "},t),f=!1,d=new i.CodeBuilder({indent:p.indent}),h=d.addPostProcessor,m=d.blank,y=d.join,g=d.push,v=d.unshift;switch(g("const unirest = require('unirest');"),m(),g("const req = unirest('".concat(r,"', '").concat(a,"');")),m(),s.length&&(g("const CookieJar = unirest.jar();"),s.forEach((function(e){g("CookieJar.add('".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value),"', '").concat(a,"');"))})),g("req.jar(CookieJar);"),m()),Object.keys(c).length&&(g("req.query(".concat((0,o.default)(c,{indent:p.indent}),");")),m()),Object.keys(u).length&&(g("req.headers(".concat((0,o.default)(u,{indent:p.indent}),");")),m()),l.mimeType){case"application/x-www-form-urlencoded":l.paramsObj&&(g("req.form(".concat((0,o.default)(l.paramsObj,{indent:p.indent}),");")),m());break;case"application/json":l.jsonObj&&(g("req.type('json');"),g("req.send(".concat((0,o.default)(l.jsonObj,{indent:p.indent}),");")),m());break;case"multipart/form-data":if(!l.params)break;var b=[];l.params.forEach((function(e){var t={};e.fileName&&!e.value?(f=!0,t.body="fs.createReadStream('".concat(e.fileName,"')"),h((function(e){return e.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/,"fs.createReadStream('$1')")}))):e.value&&(t.body=e.value),t.body&&(e.contentType&&(t["content-type"]=e.contentType),b.push(t))})),g("req.multipart(".concat((0,o.default)(b,{indent:p.indent}),");")),m();break;default:l.text&&(g("req.send(".concat((0,o.default)(l.text,{indent:p.indent}),");")),m())}return f&&v("const fs = require('fs');"),g("req.end(function (res) {"),g("if (res.error) throw new Error(res.error);",1),m(),g("console.log(res.body);",1),g("});"),y()}}},8376:(e,t)=>{"use strict";t.__esModule=!0,t.literalRepresentation=t.nsDeclaration=void 0,t.nsDeclaration=function(e,r,n,a){var o="".concat(e," *").concat(r," = "),i=(0,t.literalRepresentation)(n,a?o.length:void 0);return"".concat(o).concat(i,";")},t.literalRepresentation=function(e,r){var n=void 0===r?", ":",\n ".concat(" ".repeat(r));switch(Object.prototype.toString.call(e)){case"[object Number]":return"@".concat(e);case"[object Array]":var a=e.map((function(e){return(0,t.literalRepresentation)(e)}));return"@[ ".concat(a.join(n)," ]");case"[object Object]":var o=[];for(var i in e)o.push('@"'.concat(i,'": ').concat((0,t.literalRepresentation)(e[i])));return"@{ ".concat(o.join(n)," }");case"[object Boolean]":return e?"@YES":"@NO";default:return null==e?"":'@"'.concat(e.toString().replace(/"/g,'\\"'),'"')}}},4051:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};t.__esModule=!0,t.nsurlsession=void 0;var o=r(1174),i=r(8376);t.nsurlsession={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:function(e,t){var r,s=e.allHeaders,c=e.postData,l=e.method,u=e.fullUrl,p=n({indent:" ",pretty:!0,timeout:10},t),f=new o.CodeBuilder({indent:p.indent}),d=f.push,h=f.join,m=f.blank,y={hasHeaders:!1,hasBody:!1};if(d("#import <Foundation/Foundation.h>"),Object.keys(s).length&&(y.hasHeaders=!0,m(),d((0,i.nsDeclaration)("NSDictionary","headers",s,p.pretty))),c.text||c.jsonObj||c.params)switch(y.hasBody=!0,c.mimeType){case"application/x-www-form-urlencoded":if(null===(r=c.params)||void 0===r?void 0:r.length){m();var g=a(c.params),v=g[0],b=g.slice(1);d('NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"'.concat(v.name,"=").concat(v.value,'" dataUsingEncoding:NSUTF8StringEncoding]];')),b.forEach((function(e){var t=e.name,r=e.value;d('[postData appendData:[@"&'.concat(t,"=").concat(r,'" dataUsingEncoding:NSUTF8StringEncoding]];'))}))}else y.hasBody=!1;break;case"application/json":c.jsonObj&&(d((0,i.nsDeclaration)("NSDictionary","parameters",c.jsonObj,p.pretty)),m(),d("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));break;case"multipart/form-data":d((0,i.nsDeclaration)("NSArray","parameters",c.params||[],p.pretty)),d('NSString *boundary = @"'.concat(c.boundary,'";')),m(),d("NSError *error;"),d("NSMutableString *body = [NSMutableString string];"),d("for (NSDictionary *param in parameters) {"),d('[body appendFormat:@"--%@\\r\\n", boundary];',1),d('if (param[@"fileName"]) {',1),d('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),d('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),d('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),d("if (error) {",2),d('NSLog(@"%@", error);',3),d("}",2),d("} else {",1),d('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),d('[body appendFormat:@"%@", param[@"value"]];',2),d("}",1),d("}"),d('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),d("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break;default:m(),d('NSData *postData = [[NSData alloc] initWithData:[@"'.concat(c.text,'" dataUsingEncoding:NSUTF8StringEncoding]];'))}return m(),d('NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"'.concat(u,'"]')),d(" cachePolicy:NSURLRequestUseProtocolCachePolicy"),d(" timeoutInterval:".concat(p.timeout.toFixed(1),"];")),d('[request setHTTPMethod:@"'.concat(l,'"];')),y.hasHeaders&&d("[request setAllHTTPHeaderFields:headers];"),y.hasBody&&d("[request setHTTPBody:postData];"),m(),d("NSURLSession *session = [NSURLSession sharedSession];"),d("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),d(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),d(" if (error) {",1),d(' NSLog(@"%@", error);',2),d(" } else {",1),d(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),d(' NSLog(@"%@", httpResponse);',2),d(" }",1),d(" }];"),d("[dataTask resume];"),h()}}},8308:(e,t,r)=>{"use strict";t.__esModule=!0,t.objc=void 0;var n=r(4051);t.objc={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},clientsById:{nsurlsession:n.nsurlsession}}},2261:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.cohttp=void 0;var a=r(1174),o=r(5962);t.cohttp={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"},convert:function(e,t){var r=e.fullUrl,i=e.allHeaders,s=e.postData,c=e.method,l=n({indent:" "},t),u=new a.CodeBuilder({indent:l.indent}),p=u.push,f=u.blank,d=u.join;p("open Cohttp_lwt_unix"),p("open Cohttp"),p("open Lwt"),f(),p('let uri = Uri.of_string "'.concat(r,'" in'));var h=Object.keys(i);1===h.length?p('let headers = Header.add (Header.init ()) "'.concat(h[0],'" "').concat((0,o.escapeForDoubleQuotes)(i[h[0]]),'" in')):h.length>1&&(p("let headers = Header.add_list (Header.init ()) ["),h.forEach((function(e){p('("'.concat(e,'", "').concat((0,o.escapeForDoubleQuotes)(i[e]),'");'),1)})),p("] in")),s.text&&p("let body = Cohttp_lwt_body.of_string ".concat(JSON.stringify(s.text)," in")),f();var m=h.length?"~headers ":"",y=s.text?"~body ":"",g=["get","post","head","delete","patch","put","options"].includes(c.toLowerCase())?"`".concat(c.toUpperCase()):'(Code.method_of_string "'.concat(c,'")');return p("Client.call ".concat(m).concat(y).concat(g," uri")),p(">>= fun (res, body_stream) ->"),p("(* Do stuff with the result *)",1),d()}}},2696:(e,t,r)=>{"use strict";t.__esModule=!0,t.ocaml=void 0;var n=r(2261);t.ocaml={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},clientsById:{cohttp:n.cohttp}}},7281:(e,t,r)=>{"use strict";t.__esModule=!0,t.curl=void 0;var n=r(1174),a=r(5962),o=r(288);t.curl={info:{key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"},convert:function(e,t){var r=e.uriObj,i=e.postData,s=e.fullUrl,c=e.method,l=e.httpVersion,u=e.cookies,p=e.headersObj;void 0===t&&(t={});var f=t.closingTag,d=void 0!==f&&f,h=t.indent,m=void 0===h?" ":h,y=t.maxRedirects,g=void 0===y?10:y,v=t.namedErrors,b=void 0!==v&&v,w=t.noTags,E=void 0!==w&&w,_=t.shortTags,S=void 0!==_&&_,O=t.timeout,P=void 0===O?30:O,j=new n.CodeBuilder({indent:m}),x=j.push,R=j.blank,T=j.join;E||(x(S?"<?":"<?php"),R()),x("$curl = curl_init();"),R();var k=[{escape:!0,name:"CURLOPT_PORT",value:r.port},{escape:!0,name:"CURLOPT_URL",value:s},{escape:!1,name:"CURLOPT_RETURNTRANSFER",value:"true"},{escape:!0,name:"CURLOPT_ENCODING",value:""},{escape:!1,name:"CURLOPT_MAXREDIRS",value:g},{escape:!1,name:"CURLOPT_TIMEOUT",value:P},{escape:!1,name:"CURLOPT_HTTP_VERSION",value:"HTTP/1.0"===l?"CURL_HTTP_VERSION_1_0":"CURL_HTTP_VERSION_1_1"},{escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:c},{escape:!i.jsonObj,name:"CURLOPT_POSTFIELDS",value:i?i.jsonObj?"json_encode(".concat((0,o.convertType)(i.jsonObj,m.repeat(2),m),")"):i.text:void 0}];x("curl_setopt_array($curl, [");var N=new n.CodeBuilder({indent:m,join:"\n".concat(m)});k.forEach((function(e){var t=e.value,r=e.name,n=e.escape;null!=t&&N.push("".concat(r," => ").concat(n?JSON.stringify(t):t,","))}));var A=u.map((function(e){return"".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))}));A.length&&N.push('CURLOPT_COOKIE => "'.concat(A.join("; "),'",'));var C=Object.keys(p).sort().map((function(e){return'"'.concat(e,": ").concat((0,a.escapeForDoubleQuotes)(p[e]),'"')}));return C.length&&(N.push("CURLOPT_HTTPHEADER => ["),N.push(C.join(",\n".concat(m).concat(m)),1),N.push("],")),x(N.join(),1),x("]);"),R(),x("$response = curl_exec($curl);"),x("$err = curl_error($curl);"),R(),x("curl_close($curl);"),R(),x("if ($err) {"),x(b?'echo array_flip(get_defined_constants(true)["curl"])[$err];':'echo "cURL Error #:" . $err;',1),x("} else {"),x("echo $response;",1),x("}"),!E&&d&&(R(),x("?>")),T()}}},2362:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.guzzle=void 0;var a=r(1174),o=r(5962),i=r(5899),s=r(288);t.guzzle={info:{key:"guzzle",title:"Guzzle",link:"http://docs.guzzlephp.org/en/stable/",description:"PHP with Guzzle"},convert:function(e,t){var r,c=e.postData,l=e.fullUrl,u=e.method,p=e.cookies,f=e.headersObj,d=n({closingTag:!1,indent:" ",noTags:!1,shortTags:!1},t),h=new a.CodeBuilder({indent:d.indent}),m=h.push,y=h.blank,g=h.join,v=new a.CodeBuilder({indent:d.indent}),b=v.code,w=v.push,E=v.join;switch(d.noTags||(m(d.shortTags?"<?":"<?php"),y()),c.mimeType){case"application/x-www-form-urlencoded":w("'form_params' => ".concat((0,s.convertType)(c.paramsObj,d.indent+d.indent,d.indent),","),1);break;case"multipart/form-data":var _=[];if(c.params&&c.params.forEach((function(e){if(e.fileName){var t={name:e.name,filename:e.fileName,contents:e.value};e.contentType&&(t.headers={"Content-Type":e.contentType}),_.push(t)}else e.value&&_.push({name:e.name,contents:e.value})})),_.length&&(w("'multipart' => ".concat((0,s.convertType)(_,d.indent+d.indent,d.indent)),1),(0,i.hasHeader)(f,"content-type")&&(null===(r=(0,i.getHeader)(f,"content-type"))||void 0===r?void 0:r.indexOf("boundary")))){var S=(0,i.getHeaderName)(f,"content-type");S&&delete f[S]}break;default:c.text&&w("'body' => ".concat((0,s.convertType)(c.text),","),1)}var O=Object.keys(f).sort().map((function(e){return"".concat(d.indent).concat(d.indent,"'").concat(e,"' => '").concat((0,o.escapeForSingleQuotes)(f[e]),"',")})),P=p.map((function(e){return"".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))})).join("; ");return P.length&&O.push("".concat(d.indent).concat(d.indent,"'cookie' => '").concat((0,o.escapeForSingleQuotes)(P),"',")),O.length&&(w("'headers' => [",1),w(O.join("\n")),w("],",1)),m("$client = new \\GuzzleHttp\\Client();"),y(),b.length?(m("$response = $client->request('".concat(u,"', '").concat(l,"', [")),m(E()),m("]);")):m("$response = $client->request('".concat(u,"', '").concat(l,"');")),y(),m("echo $response->getBody();"),!d.noTags&&d.closingTag&&(y(),m("?>")),g()}}},288:(e,t,r)=>{"use strict";t.__esModule=!0,t.supportedMethods=t.convertType=void 0;var n=r(5962);t.convertType=function(e,r,a){switch(a=a||"",r=r||"",Object.prototype.toString.call(e)){case"[object Null]":case"[object Undefined]":default:return"null";case"[object String]":return"'".concat((0,n.escapeString)(e,{delimiter:"'",escapeNewlines:!1}),"'");case"[object Number]":return e.toString();case"[object Array]":var o=e.map((function(e){return(0,t.convertType)(e,"".concat(r).concat(r),r)})).join(",\n".concat(r));return"[\n".concat(r).concat(o,"\n").concat(a,"]");case"[object Object]":var i=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push("".concat((0,t.convertType)(s,r)," => ").concat((0,t.convertType)(e[s],"".concat(r).concat(r),r)));return"[\n".concat(r).concat(i.join(",\n".concat(r)),"\n").concat(a,"]")}},t.supportedMethods=["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"]},9590:(e,t,r)=>{"use strict";t.__esModule=!0,t.http1=void 0;var n=r(1174),a=r(288);t.http1={info:{key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"},convert:function(e,t){var r=e.method,o=e.url,i=e.postData,s=e.queryObj,c=e.headersObj,l=e.cookiesObj;void 0===t&&(t={});var u=t.closingTag,p=void 0!==u&&u,f=t.indent,d=void 0===f?" ":f,h=t.noTags,m=void 0!==h&&h,y=t.shortTags,g=void 0!==y&&y,v=new n.CodeBuilder({indent:d}),b=v.push,w=v.blank,E=v.join;switch(m||(b(g?"<?":"<?php"),w()),a.supportedMethods.includes(r.toUpperCase())||b("HttpRequest::methodRegister('".concat(r,"');")),b("$request = new HttpRequest();"),b("$request->setUrl(".concat((0,a.convertType)(o),");")),a.supportedMethods.includes(r.toUpperCase())?b("$request->setMethod(HTTP_METH_".concat(r.toUpperCase(),");")):b("$request->setMethod(HttpRequest::HTTP_METH_".concat(r.toUpperCase(),");")),w(),Object.keys(s).length&&(b("$request->setQueryData(".concat((0,a.convertType)(s,d),");")),w()),Object.keys(c).length&&(b("$request->setHeaders(".concat((0,a.convertType)(c,d),");")),w()),Object.keys(l).length&&(b("$request->setCookies(".concat((0,a.convertType)(l,d),");")),w()),i.mimeType){case"application/x-www-form-urlencoded":b("$request->setContentType(".concat((0,a.convertType)(i.mimeType),");")),b("$request->setPostFields(".concat((0,a.convertType)(i.paramsObj,d),");")),w();break;case"application/json":b("$request->setContentType(".concat((0,a.convertType)(i.mimeType),");")),b("$request->setBody(json_encode(".concat((0,a.convertType)(i.jsonObj,d),"));")),w();break;default:i.text&&(b("$request->setBody(".concat((0,a.convertType)(i.text),");")),w())}return b("try {"),b("$response = $request->send();",1),w(),b("echo $response->getBody();",1),b("} catch (HttpException $ex) {"),b("echo $ex;",1),b("}"),!m&&p&&(w(),b("?>")),E()}}},5549:(e,t,r)=>{"use strict";t.__esModule=!0,t.http2=void 0;var n=r(1174),a=r(5899),o=r(288);t.http2={info:{key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"},convert:function(e,t){var r,i=e.postData,s=e.headersObj,c=e.method,l=e.queryObj,u=e.cookiesObj,p=e.url;void 0===t&&(t={});var f=t.closingTag,d=void 0!==f&&f,h=t.indent,m=void 0===h?" ":h,y=t.noTags,g=void 0!==y&&y,v=t.shortTags,b=void 0!==v&&v,w=new n.CodeBuilder({indent:m}),E=w.push,_=w.blank,S=w.join,O=!1;switch(g||(E(b?"<?":"<?php"),_()),E("$client = new http\\Client;"),E("$request = new http\\Client\\Request;"),_(),i.mimeType){case"application/x-www-form-urlencoded":E("$body = new http\\Message\\Body;"),E("$body->append(new http\\QueryString(".concat((0,o.convertType)(i.paramsObj,m),"));")),_(),O=!0;break;case"multipart/form-data":if(!i.params)break;var P=[],j={};i.params.forEach((function(e){var t=e.name,r=e.fileName,n=e.value,a=e.contentType;r?P.push({name:t,type:a,file:r,data:n}):n&&(j[t]=n)}));var x=Object.keys(j).length?(0,o.convertType)(j,m):"null",R=P.length?(0,o.convertType)(P,m):"null";if(E("$body = new http\\Message\\Body;"),E("$body->addForm(".concat(x,", ").concat(R,");")),(0,a.hasHeader)(s,"content-type")&&(null===(r=(0,a.getHeader)(s,"content-type"))||void 0===r?void 0:r.indexOf("boundary"))){var T=(0,a.getHeaderName)(s,"content-type");T&&delete s[T]}_(),O=!0;break;case"application/json":E("$body = new http\\Message\\Body;"),E("$body->append(json_encode(".concat((0,o.convertType)(i.jsonObj,m),"));")),O=!0;break;default:i.text&&(E("$body = new http\\Message\\Body;"),E("$body->append(".concat((0,o.convertType)(i.text),");")),_(),O=!0)}return E("$request->setRequestUrl(".concat((0,o.convertType)(p),");")),E("$request->setRequestMethod(".concat((0,o.convertType)(c),");")),O&&(E("$request->setBody($body);"),_()),Object.keys(l).length&&(E("$request->setQuery(new http\\QueryString(".concat((0,o.convertType)(l,m),"));")),_()),Object.keys(s).length&&(E("$request->setHeaders(".concat((0,o.convertType)(s,m),");")),_()),Object.keys(u).length&&(_(),E("$client->setCookies(".concat((0,o.convertType)(u,m),");")),_()),E("$client->enqueue($request)->send();"),E("$response = $client->getResponse();"),_(),E("echo $response->getBody();"),!g&&d&&(_(),E("?>")),S()}}},8108:(e,t,r)=>{"use strict";t.__esModule=!0,t.php=void 0;var n=r(7281),a=r(2362),o=r(9590),i=r(5549);t.php={info:{key:"php",title:"PHP",extname:".php",default:"curl"},clientsById:{curl:n.curl,guzzle:a.guzzle,http1:o.http1,http2:i.http2}}},8737:(e,t,r)=>{"use strict";t.__esModule=!0,t.generatePowershellConvert=void 0;var n=r(1174),a=r(5962),o=r(5899);t.generatePowershellConvert=function(e){return function(t){var r=t.method,i=t.headersObj,s=t.cookies,c=t.uriObj,l=t.fullUrl,u=t.postData,p=t.allHeaders,f=new n.CodeBuilder,d=f.push,h=f.join;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(r.toUpperCase()))return"Method not supported";var m=[],y=Object.keys(i);return y.length&&(d("$headers=@{}"),y.forEach((function(e){"connection"!==e&&d('$headers.Add("'.concat(e,'", "').concat((0,a.escapeString)(i[e],{escapeChar:"`"}),'")'))})),m.push("-Headers $headers")),s.length&&(d("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),s.forEach((function(e){d("$cookie = New-Object System.Net.Cookie"),d("$cookie.Name = '".concat(e.name,"'")),d("$cookie.Value = '".concat(e.value,"'")),d("$cookie.Domain = '".concat(c.host,"'")),d("$session.Cookies.Add($cookie)")})),m.push("-WebSession $session")),u.text&&(m.push("-ContentType '".concat((0,a.escapeString)((0,o.getHeader)(p,"content-type"),{delimiter:"'",escapeChar:"`"}),"'")),m.push("-Body '".concat(u.text,"'"))),d("$response = ".concat(e," -Uri '").concat(l,"' -Method ").concat(r," ").concat(m.join(" "))),h()}}},7181:(e,t,r)=>{"use strict";t.__esModule=!0,t.restmethod=void 0;var n=r(8737);t.restmethod={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"},convert:(0,n.generatePowershellConvert)("Invoke-RestMethod")}},1965:(e,t,r)=>{"use strict";t.__esModule=!0,t.powershell=void 0;var n=r(7181),a=r(9849);t.powershell={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},clientsById:{webrequest:a.webrequest,restmethod:n.restmethod}}},9849:(e,t,r)=>{"use strict";t.__esModule=!0,t.webrequest=void 0;var n=r(8737);t.webrequest={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"},convert:(0,n.generatePowershellConvert)("Invoke-WebRequest")}},2148:(e,t)=>{"use strict";function r(e,t,r,n,a){var o=n.repeat(a),i=n.repeat(a-1),s=r?",\n".concat(o):", ",c="object"===e?"{":"[",l="object"===e?"}":"]";return r?"".concat(c,"\n").concat(o).concat(t.join(s),"\n").concat(i).concat(l):"object"===e&&t.length>0?"".concat(c," ").concat(t.join(s)," ").concat(l):"".concat(c).concat(t.join(s)).concat(l)}t.__esModule=!0,t.literalRepresentation=void 0,t.literalRepresentation=function(e,n,a){switch(a=void 0===a?1:a+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":var o=!1;return r("array",e.map((function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(o=Object.keys(e).length>1),(0,t.literalRepresentation)(e,n,a)})),o,n.indent,a);case"[object Object]":var i=[];for(var s in e)i.push('"'.concat(s,'": ').concat((0,t.literalRepresentation)(e[s],n,a)));return r("object",i,n.pretty&&i.length>1,n.indent,a);case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return null==e?"":'"'.concat(e.toString().replace(/"/g,'\\"'),'"')}}},5350:(e,t,r)=>{"use strict";t.__esModule=!0,t.python3=void 0;var n=r(1174),a=r(5962);t.python3={info:{key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"},convert:function(e,t){var r=e.uriObj,o=r.path,i=r.protocol,s=r.host,c=e.postData,l=e.allHeaders,u=e.method;void 0===t&&(t={});var p=t.insecureSkipVerify,f=void 0!==p&&p,d=new n.CodeBuilder,h=d.push,m=d.blank,y=d.join;if(h("import http.client"),f&&h("import ssl"),m(),"https:"===i){var g=f?", context = ssl._create_unverified_context()":"";h('conn = http.client.HTTPSConnection("'.concat(s,'"').concat(g,")")),m()}else h('conn = http.client.HTTPConnection("'.concat(s,'")')),m();var v=JSON.stringify(c.text);v&&(h("payload = ".concat(v)),m());var b=l,w=Object.keys(b).length;if(1===w)for(var E in b)h("headers = { '".concat(E,"': \"").concat((0,a.escapeForDoubleQuotes)(b[E]),'" }')),m();else if(w>1){var _=1;for(var E in h("headers = {"),b)_++!==w?h(" '".concat(E,"': \"").concat((0,a.escapeForDoubleQuotes)(b[E]),'",')):h(" '".concat(E,"': \"").concat((0,a.escapeForDoubleQuotes)(b[E]),'"'));h("}"),m()}return h(v&&w?'conn.request("'.concat(u,'", "').concat(o,'", payload, headers)'):v&&!w?'conn.request("'.concat(u,'", "').concat(o,'", payload)'):!v&&w?'conn.request("'.concat(u,'", "').concat(o,'", headers=headers)'):'conn.request("'.concat(u,'", "').concat(o,'")')),m(),h("res = conn.getresponse()"),h("data = res.read()"),m(),h('print(data.decode("utf-8"))'),y()}}},5397:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.requests=void 0;var a=r(1174),o=r(5962),i=r(5899),s=r(2148),c=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"];t.requests={info:{key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"},convert:function(e,t){var r,l=e.queryObj,u=e.url,p=e.postData,f=e.allHeaders,d=e.method,h=n({indent:" ",pretty:!0},t),m=new a.CodeBuilder({indent:h.indent}),y=m.push,g=m.blank,v=m.join;y("import requests"),g(),y('url = "'.concat(u,'"')),g(),Object.keys(l).length&&(y(r="querystring = ".concat(JSON.stringify(l))),g());var b=f,w={},E={},_=!1,S=!1,O=!1;switch(p.mimeType){case"application/json":p.jsonObj&&(y("payload = ".concat((0,s.literalRepresentation)(p.jsonObj,h))),O=!0,S=!0);break;case"multipart/form-data":if(!p.params)break;if(w={},p.params.forEach((function(e){e.fileName?(E[e.name]="open('".concat(e.fileName,"', 'rb')"),_=!0):(w[e.name]=e.value,S=!0)})),_){y("files = ".concat((0,s.literalRepresentation)(E,h))),S&&y("payload = ".concat((0,s.literalRepresentation)(w,h)));var P=(0,i.getHeaderName)(b,"content-type");P&&delete b[P]}else{var j=JSON.stringify(p.text);j&&(y("payload = ".concat(j)),S=!0)}break;default:if("application/x-www-form-urlencoded"===p.mimeType&&p.paramsObj){y("payload = ".concat((0,s.literalRepresentation)(p.paramsObj,h))),S=!0;break}var x=JSON.stringify(p.text);x&&(y("payload = ".concat(x)),S=!0)}var R=Object.keys(b).length;if(0===R&&(S||_))g();else if(1===R)for(var T in b)y('headers = {"'.concat(T,'": "').concat((0,o.escapeForDoubleQuotes)(b[T]),'"}')),g();else if(R>1){var k=1;for(var T in y("headers = {"),b)y(k!==R?'"'.concat(T,'": "').concat((0,o.escapeForDoubleQuotes)(b[T]),'",'):'"'.concat(T,'": "').concat((0,o.escapeForDoubleQuotes)(b[T]),'"'),1),k+=1;y("}"),g()}var N=c.includes(d)?"response = requests.".concat(d.toLowerCase(),"(url"):'response = requests.request("'.concat(d,'", url');return S&&(N+=O?", json=payload":", data=payload"),_&&(N+=", files=files"),R>0&&(N+=", headers=headers"),r&&(N+=", params=querystring"),y(N+=")"),g(),y("print(response.json())"),v()}}},5638:(e,t,r)=>{"use strict";t.__esModule=!0,t.python=void 0;var n=r(5350),a=r(5397);t.python={info:{key:"python",title:"Python",extname:".py",default:"python3"},clientsById:{python3:n.python3,requests:a.requests}}},2611:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};t.__esModule=!0,t.httr=void 0;var a=r(1174),o=r(5962),i=r(5899);t.httr={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"},convert:function(e,t){var r,s=e.url,c=e.queryObj,l=e.queryString,u=e.postData,p=e.allHeaders,f=e.method;void 0===t&&(t={});var d=new a.CodeBuilder({indent:null!==(r=t.indent)&&void 0!==r?r:" "}),h=d.push,m=d.blank,y=d.join;h("library(httr)"),m(),h('url <- "'.concat(s,'"')),m();var g=c;delete c.key;var v=Object.entries(g),b=v.length;if(1===b){var w=v[0];h("queryString <- list(".concat(w[0],' = "').concat(w[1],'")')),m()}else b>1&&(h("queryString <- list("),v.forEach((function(e,t){var r=n(e,2),a=r[0],o=r[1],i=t!==b-1?",":"";h("".concat(a,' = "').concat(o,'"').concat(i),1)})),h(")"),m());var E=JSON.stringify(u.text);if(E&&(h("payload <- ".concat(E)),m()),u.text||u.jsonObj||u.params)switch(u.mimeType){case"application/x-www-form-urlencoded":h('encode <- "form"'),m();break;case"application/json":h('encode <- "json"'),m();break;case"multipart/form-data":h('encode <- "multipart"'),m();break;default:h('encode <- "raw"'),m()}var _=(0,i.getHeader)(p,"cookie"),S=(0,i.getHeader)(p,"accept"),O=_?"set_cookies(`".concat(String(_).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "'),'")'):void 0,P=S?'accept("'.concat((0,o.escapeForDoubleQuotes)(S),'")'):void 0,j='content_type("'.concat((0,o.escapeForDoubleQuotes)(u.mimeType),'")'),x=Object.entries(p).filter((function(e){var t=n(e,1)[0];return!["cookie","accept","content-type"].includes(t.toLowerCase())})).map((function(e){var t=n(e,2),r=t[0],a=t[1];return"'".concat(r,"' = '").concat((0,o.escapeForSingleQuotes)(a),"'")})).join(", "),R=x?"add_headers(".concat(x,")"):void 0,T='response <- VERB("'.concat(f,'", url');E&&(T+=", body = payload"),l.length&&(T+=", query = queryString");var k=[R,j,P,O].filter((function(e){return!!e})).join(", ");return k&&(T+=", "+k),(u.text||u.jsonObj||u.params)&&(T+=", encode = encode"),h(T+=")"),m(),h('content(response, "text")'),y()}}},4722:(e,t,r)=>{"use strict";t.__esModule=!0,t.r=void 0;var n=r(2611);t.r={info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:n.httr}}},2616:(e,t,r)=>{"use strict";t.__esModule=!0,t.native=void 0;var n=r(1174),a=r(5962);t.native={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"},convert:function(e,t){var r=e.uriObj,o=e.method,i=e.fullUrl,s=e.postData,c=e.allHeaders;void 0===t&&(t={});var l=t.insecureSkipVerify,u=void 0!==l&&l,p=new n.CodeBuilder,f=p.push,d=p.blank,h=p.join;f("require 'uri'"),f("require 'net/http'"),d();var m=o.toUpperCase(),y=m.charAt(0)+m.substring(1).toLowerCase();["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].includes(m)||(f("class Net::HTTP::".concat(y," < Net::HTTPRequest")),f(" METHOD = '".concat(m.toUpperCase(),"'")),f(" REQUEST_HAS_BODY = '".concat(s.text?"true":"false","'")),f(" RESPONSE_HAS_BODY = true"),f("end"),d()),f('url = URI("'.concat(i,'")')),d(),f("http = Net::HTTP.new(url.host, url.port)"),"https:"===r.protocol&&(f("http.use_ssl = true"),u&&f("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),d(),f("request = Net::HTTP::".concat(y,".new(url)"));var g=Object.keys(c);return g.length&&g.forEach((function(e){f('request["'.concat(e,"\"] = '").concat((0,a.escapeForSingleQuotes)(c[e]),"'"))})),s.text&&f("request.body = ".concat(JSON.stringify(s.text))),d(),f("response = http.request(request)"),f("puts response.read_body"),h()}}},26:(e,t,r)=>{"use strict";t.__esModule=!0,t.ruby=void 0;var n=r(2616);t.ruby={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},clientsById:{native:n.native}}},6235:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.curl=void 0;var a=r(1174),o=r(5899),i=r(3247),s={"http1.0":"0","url ":"",cookie:"b",data:"d",form:"F",globoff:"g",header:"H",insecure:"k",request:"X"};t.curl={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"},convert:function(e,t){var r,c=e.fullUrl,l=e.method,u=e.httpVersion,p=e.headersObj,f=e.allHeaders,d=e.postData;void 0===t&&(t={});var h=t.binary,m=void 0!==h&&h,y=t.globOff,g=void 0!==y&&y,v=t.indent,b=void 0===v?" ":v,w=t.insecureSkipVerify,E=void 0!==w&&w,_=t.prettifyJson,S=void 0!==_&&_,O=t.short,P=void 0!==O&&O,j=new a.CodeBuilder(n(n({},"string"==typeof b?{indent:b}:{}),{join:!1!==b?" \\\n".concat(b):" "})),x=j.push,R=j.join,T=function(e){return function(t){if(e){var r=s[t];return r?"-".concat(r):""}return"--".concat(t)}}(P),k=(0,i.quote)(c);if(x("curl ".concat(T("request")," ").concat(l)),g&&(k=unescape(k),x(T("globoff"))),x("".concat(T("url ")).concat(k)),E&&x(T("insecure")),"HTTP/1.0"===u&&x(T("http1.0")),(0,o.getHeader)(f,"accept-encoding")&&x("--compressed"),"multipart/form-data"===d.mimeType){var N=(0,o.getHeaderName)(p,"content-type");if(N){var A=p[N];if(N&&A){var C=A.replace(/; boundary.+?(?=(;|$))/,"");p[N]=C,f[N]=C}}}switch(Object.keys(p).sort().forEach((function(e){var t="".concat(e,": ").concat(p[e]);x("".concat(T("header")," ").concat((0,i.quote)(t)))})),f.cookie&&x("".concat(T("cookie")," ").concat((0,i.quote)(f.cookie))),d.mimeType){case"multipart/form-data":null===(r=d.params)||void 0===r||r.forEach((function(e){var t;t=e.fileName?"".concat(e.name,"=@").concat(e.fileName):"".concat(e.name,"=").concat(e.value),x("".concat(T("form")," ").concat((0,i.quote)(t)))}));break;case"application/x-www-form-urlencoded":d.params?d.params.forEach((function(e){var t=e.name,r=encodeURIComponent(e.name),n=r!==t,a=n?r:t,o=m?"--data-binary":"--data".concat(n?"-urlencode":"");x("".concat(o," ").concat((0,i.quote)("".concat(a,"=").concat(e.value))))})):x("".concat(m?"--data-binary":T("data")," ").concat((0,i.quote)(d.text)));break;default:if(!d.text)break;var D=m?"--data-binary":T("data"),I=!1;if((0,o.isMimeTypeJSON)(d.mimeType)&&d.text.length>2&&S)try{var L=JSON.parse(d.text);I=!0;var M=JSON.stringify(L,void 0,b);d.text.indexOf("'")>0?x("".concat(D," @- <<EOF\n").concat(M,"\nEOF")):x("".concat(D," '\n").concat(M,"\n'"))}catch(e){}I||x("".concat(D," ").concat((0,i.quote)(d.text)))}return R()}}},6363:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.httpie=void 0;var a=r(1174),o=r(3247);t.httpie={info:{key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"},convert:function(e,t){var r=e.allHeaders,i=e.postData,s=e.queryObj,c=e.fullUrl,l=e.method,u=e.url,p=n({body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1},t),f=new a.CodeBuilder({indent:p.indent,join:!1!==p.indent?" \\\n".concat(p.indent):" "}),d=f.push,h=f.join,m=f.unshift,y=!1,g=[];p.headers&&g.push(p.short?"-h":"--headers"),p.body&&g.push(p.short?"-b":"--body"),p.verbose&&g.push(p.short?"-v":"--verbose"),p.print&&g.push("".concat(p.short?"-p":"--print","=").concat(p.print)),p.verify&&g.push("--verify=".concat(p.verify)),p.cert&&g.push("--cert=".concat(p.cert)),p.pretty&&g.push("--pretty=".concat(p.pretty)),p.style&&g.push("--style=".concat(p.style)),p.timeout&&g.push("--timeout=".concat(p.timeout)),p.queryParams&&Object.keys(s).forEach((function(e){var t=s[e];Array.isArray(t)?t.forEach((function(t){d("".concat(e,"==").concat((0,o.quote)(t)))})):d("".concat(e,"==").concat((0,o.quote)(t)))})),Object.keys(r).sort().forEach((function(e){d("".concat(e,":").concat((0,o.quote)(r[e])))})),"application/x-www-form-urlencoded"===i.mimeType?i.params&&i.params.length&&(g.push(p.short?"-f":"--form"),i.params.forEach((function(e){d("".concat(e.name,"=").concat((0,o.quote)(e.value)))}))):y=!0;var v=g.length?"".concat(g.join(" ")," "):"";if(u=(0,o.quote)(p.queryParams?u:c),m("http ".concat(v).concat(l," ").concat(u)),y&&i.text){var b=(0,o.quote)(i.text);m("echo ".concat(b," | "))}return h()}}},2110:(e,t,r)=>{"use strict";t.__esModule=!0,t.shell=void 0;var n=r(6235),a=r(6363),o=r(2352);t.shell={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},clientsById:{curl:n.curl,httpie:a.httpie,wget:o.wget}}},2352:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0,t.wget=void 0;var a=r(1174),o=r(3247);t.wget={info:{key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"},convert:function(e,t){var r=e.method,i=e.postData,s=e.allHeaders,c=e.fullUrl,l=n({indent:" ",short:!1,verbose:!1},t),u=new a.CodeBuilder({indent:l.indent,join:!1!==l.indent?" \\\n".concat(l.indent):" "}),p=u.push,f=u.join;return l.verbose?p("wget ".concat(l.short?"-v":"--verbose")):p("wget ".concat(l.short?"-q":"--quiet")),p("--method ".concat((0,o.quote)(r))),Object.keys(s).forEach((function(e){var t="".concat(e,": ").concat(s[e]);p("--header ".concat((0,o.quote)(t)))})),i.text&&p("--body-data ".concat((0,o.escape)((0,o.quote)(i.text)))),p(l.short?"-O":"--output-document"),p("- ".concat((0,o.quote)(c))),f()}}},4463:(e,t)=>{"use strict";t.__esModule=!0,t.literalRepresentation=t.literalDeclaration=void 0;var r=function(e,t){return t.repeat(e)},n=function(e,t,n,a){var o=r(a,n),i=r(a-1,n),s=t?",\n".concat(o):", ";return t?"[\n".concat(o).concat(e.join(s),"\n").concat(i,"]"):"[".concat(e.join(s),"]")};t.literalDeclaration=function(e,r,n){return"let ".concat(e," = ").concat((0,t.literalRepresentation)(r,n))},t.literalRepresentation=function(e,r,a){switch(a=void 0===a?1:a+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":var o=!1,i=e.map((function(e){return"[object Object]"===Object.prototype.toString.call(e)&&(o=Object.keys(e).length>1),(0,t.literalRepresentation)(e,r,a)}));return n(i,o,r.indent,a);case"[object Object]":var s=[];for(var c in e)s.push('"'.concat(c,'": ').concat((0,t.literalRepresentation)(e[c],r,a)));return n(s,r.pretty&&s.length>1,r.indent,a);case"[object Boolean]":return e.toString();default:return null==e?"":'"'.concat(e.toString().replace(/"/g,'\\"'),'"')}}},3552:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};t.__esModule=!0,t.nsurlsession=void 0;var o=r(1174),i=r(4463);t.nsurlsession={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:function(e,t){var r,s=e.allHeaders,c=e.postData,l=e.fullUrl,u=e.method,p=n({indent:" ",pretty:!0,timeout:"10"},t),f=new o.CodeBuilder({indent:p.indent}),d=f.push,h=f.blank,m=f.join,y={hasHeaders:!1,hasBody:!1};if(d("import Foundation"),Object.keys(s).length&&(y.hasHeaders=!0,h(),d((0,i.literalDeclaration)("headers",s,p))),c.text||c.jsonObj||c.params)switch(y.hasBody=!0,c.mimeType){case"application/x-www-form-urlencoded":if(h(),null===(r=c.params)||void 0===r?void 0:r.length){var g=a(c.params),v=g[0],b=g.slice(1);d('let postData = NSMutableData(data: "'.concat(v.name,"=").concat(v.value,'".data(using: String.Encoding.utf8)!)')),b.forEach((function(e){var t=e.name,r=e.value;d('postData.append("&'.concat(t,"=").concat(r,'".data(using: String.Encoding.utf8)!)'))}))}else y.hasBody=!1;break;case"application/json":c.jsonObj&&(d("".concat((0,i.literalDeclaration)("parameters",c.jsonObj,p)," as [String : Any]")),h(),d("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));break;case"multipart/form-data":d((0,i.literalDeclaration)("parameters",c.params,p)),h(),d('let boundary = "'.concat(c.boundary,'"')),h(),d('var body = ""'),d("var error: NSError? = nil"),d("for param in parameters {"),d('let paramName = param["name"]!',1),d('body += "--\\(boundary)\\r\\n"',1),d('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),d('if let filename = param["fileName"] {',1),d('let contentType = param["content-type"]!',2),d("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),d("if (error != nil) {",2),d("print(error as Any)",3),d("}",2),d('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),d('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),d("body += fileContent",2),d('} else if let paramValue = param["value"] {',1),d('body += "\\r\\n\\r\\n\\(paramValue)"',2),d("}",1),d("}");break;default:h(),d('let postData = NSData(data: "'.concat(c.text,'".data(using: String.Encoding.utf8)!)'))}return h(),d('let request = NSMutableURLRequest(url: NSURL(string: "'.concat(l,'")! as URL,')),d(" cachePolicy: .useProtocolCachePolicy,"),d(" timeoutInterval: ".concat(parseInt(p.timeout,10).toFixed(1),")")),d('request.httpMethod = "'.concat(u,'"')),y.hasHeaders&&d("request.allHTTPHeaderFields = headers"),y.hasBody&&d("request.httpBody = postData as Data"),h(),d("let session = URLSession.shared"),d("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),d("if (error != nil) {",1),d("print(error as Any)",2),d("} else {",1),d("let httpResponse = response as? HTTPURLResponse",2),d("print(httpResponse)",2),d("}",1),d("})"),h(),d("dataTask.resume()"),m()}}},1117:(e,t,r)=>{"use strict";t.__esModule=!0,t.swift=void 0;var n=r(3552);t.swift={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},clientsById:{nsurlsession:n.nsurlsession}}},3424:(e,t,r)=>{"use strict";t.__esModule=!0,t.addTargetClient=t.isClient=t.addTarget=t.isTarget=t.targets=void 0;var n=r(7635),a=r(2408),o=r(7519),i=r(6908),s=r(7954),c=r(8794),l=r(6551),u=r(3309),p=r(2834),f=r(8308),d=r(2696),h=r(8108),m=r(1965),y=r(5638),g=r(4722),v=r(26),b=r(2110),w=r(1117);t.targets={c:n.c,clojure:a.clojure,csharp:o.csharp,go:i.go,http:s.http,java:c.java,javascript:l.javascript,kotlin:u.kotlin,node:p.node,objc:f.objc,ocaml:d.ocaml,php:h.php,powershell:m.powershell,python:y.python,r:g.r,ruby:v.ruby,shell:b.shell,swift:w.swift},t.isTarget=function(e){if("object"!=typeof e||null===e||Array.isArray(e)){var r=null===e?"null":Array.isArray(e)?"array":typeof e;throw new Error('you tried to add a target which is not an object, got type: "'.concat(r,'"'))}if(!Object.prototype.hasOwnProperty.call(e,"info"))throw new Error("targets must contain an `info` object");if(!Object.prototype.hasOwnProperty.call(e.info,"key"))throw new Error("targets must have an `info` object with the property `key`");if(!e.info.key)throw new Error("target key must be a unique string");if(Object.prototype.hasOwnProperty.call(t.targets,e.info.key))throw new Error("a target already exists with this key, `".concat(e.info.key,"`"));if(!Object.prototype.hasOwnProperty.call(e.info,"title"))throw new Error("targets must have an `info` object with the property `title`");if(!e.info.title)throw new Error("target title must be a non-zero-length string");if(!Object.prototype.hasOwnProperty.call(e.info,"extname"))throw new Error("targets must have an `info` object with the property `extname`");if(!Object.prototype.hasOwnProperty.call(e,"clientsById")||!e.clientsById||0===Object.keys(e.clientsById).length)throw new Error("No clients provided in target ".concat(e.info.key,". You must provide the property `clientsById` containg your clients."));if(!Object.prototype.hasOwnProperty.call(e.info,"default"))throw new Error("targets must have an `info` object with the property `default`");if(!Object.prototype.hasOwnProperty.call(e.clientsById,e.info.default))throw new Error("target ".concat(e.info.key," is configured with a default client ").concat(e.info.default,", but no such client was found in the property `clientsById` (found ").concat(JSON.stringify(Object.keys(e.clientsById)),")"));return Object.values(e.clientsById).forEach(t.isClient),!0},t.addTarget=function(e){(0,t.isTarget)(e)&&(t.targets[e.info.key]=e)},t.isClient=function(e){if(!e)throw new Error("clients must be objects");if(!Object.prototype.hasOwnProperty.call(e,"info"))throw new Error("targets client must contain an `info` object");if(!Object.prototype.hasOwnProperty.call(e.info,"key"))throw new Error("targets client must have an `info` object with property `key`");if(!e.info.key)throw new Error("client.info.key must contain an identifier unique to this target");if(!Object.prototype.hasOwnProperty.call(e.info,"title"))throw new Error("targets client must have an `info` object with property `title`");if(!Object.prototype.hasOwnProperty.call(e.info,"description"))throw new Error("targets client must have an `info` object with property `description`");if(!Object.prototype.hasOwnProperty.call(e.info,"link"))throw new Error("targets client must have an `info` object with property `link`");if(!Object.prototype.hasOwnProperty.call(e,"convert")||"function"!=typeof e.convert)throw new Error("targets client must have a `convert` property containing a conversion function");return!0},t.addTargetClient=function(e,r){if((0,t.isClient)(r)){if(!Object.prototype.hasOwnProperty.call(t.targets,e))throw new Error("Sorry, but no ".concat(e," target exists to add clients to"));if(Object.prototype.hasOwnProperty.call(t.targets[e],r.info.key))throw new Error("the target ".concat(e," already has a client with the key ").concat(r.info.key,", please use a different key"));t.targets[e].clientsById[r.info.key]=r}}},251:(e,t)=>{t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,c=(1<<s)-1,l=c>>1,u=-7,p=r?a-1:0,f=r?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+p],p+=f,u-=8);for(i=o&(1<<-u)-1,o>>=-u,u+=n;u>0;i=256*i+e[t+p],p+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),o-=l}return(d?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,c,l=8*o-a-1,u=(1<<l)-1,p=u>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=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=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+p>=1?f/c:f*Math.pow(2,1-p))*c>=2&&(i++,c/=2),i+p>=u?(s=0,i=u):i+p>=1?(s=(t*c-1)*Math.pow(2,a),i+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,a),i=0));a>=8;e[r+d]=255&s,d+=h,s/=256,a-=8);for(i=i<<a|s,l+=a;l>0;e[r+d]=255&i,d+=h,i/=256,l-=8);e[r+d-h]|=128*m}},6698: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}}},8997:e=>{"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},7749:e=>{"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},7106: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,c,l,u,p){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,i,s,c,l,u,p),o){var d=o[f];if(Array.isArray(d)){if(f in t.arrayKeywords)for(var h=0;h<d.length;h++)r(e,n,a,d[h],i+"/"+f+"/"+h,s,i,f,o,h)}else if(f in t.propsKeywords){if(d&&"object"==typeof d)for(var m in d)r(e,n,a,d[m],i+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,i,f,o,m)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&r(e,n,a,d,i+"/"+f,s,i,f,o)}a(o,i,s,c,l,u,p)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},3768:(e,t,r)=>{"use strict";var n=r(5981),a=r(5587);t.highlight=i,t.highlightAuto=function(e,t){var r,s,c,l,u=t||{},p=u.subset||n.listLanguages(),f=u.prefix,d=p.length,h=-1;if(null==f&&(f=o),"string"!=typeof e)throw a("Expected `string` for value, got `%s`",e);for(s={relevance:0,language:null,value:[]},r={relevance:0,language:null,value:[]};++h<d;)l=p[h],n.getLanguage(l)&&((c=i(l,e,t)).language=l,c.relevance>s.relevance&&(s=c),c.relevance>r.relevance&&(s=r,r=c));return s.language&&(r.secondBest=s),r},t.registerLanguage=function(e,t){n.registerLanguage(e,t)},t.listLanguages=function(){return n.listLanguages()},t.registerAlias=function(e,t){var r,a=e;for(r in t&&((a={})[e]=t),a)n.registerAliases(a[r],{languageName:r})},s.prototype.addText=function(e){var t,r,n=this.stack;""!==e&&((r=(t=n[n.length-1]).children[t.children.length-1])&&"text"===r.type?r.value+=e:t.children.push({type:"text",value:e}))},s.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},s.prototype.addSublanguage=function(e,t){var r=this.stack,n=r[r.length-1],a=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:a}:a;n.children=n.children.concat(o)},s.prototype.openNode=function(e){var t=this.stack,r={type:"element",tagName:"span",properties:{className:[this.options.classPrefix+e]},children:[]};t[t.length-1].children.push(r),t.push(r)},s.prototype.closeNode=function(){this.stack.pop()},s.prototype.closeAllNodes=c,s.prototype.finalize=c,s.prototype.toHTML=function(){return""};var o="hljs-";function i(e,t,r){var i,c=n.configure({}),l=(r||{}).prefix;if("string"!=typeof e)throw a("Expected `string` for name, got `%s`",e);if(!n.getLanguage(e))throw a("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw a("Expected `string` for value, got `%s`",t);if(null==l&&(l=o),n.configure({__emitter:s,classPrefix:l}),i=n.highlight(t,{language:e,ignoreIllegals:!0}),n.configure(c||{}),i.errorRaised)throw i.errorRaised;return{relevance:i.relevance,language:i.language,value:i.emitter.rootNode.children}}function s(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function c(){}},9292:(e,t,r)=>{var n=r(5606),a=r(8310).Stream;e.exports=function(e,t){var r=new a,o=0,i=0,s=!1,c=!1,l=!1,u=0,p=!1,f=(t=t||{}).failures?"failure":"error",d={};function h(e,t){var n=u+1;if(t===n?(void 0!==e&&r.emit.apply(r,["data",e]),u++,n++):d[t]=e,d.hasOwnProperty(n)){var a=d[n];return delete d[n],h(a,n)}i++,o===i&&(c&&(c=!1,r.emit("drain")),s&&y())}function m(e,n,a){l||(p=!0,e&&!t.failures||h(n,a),e&&r.emit.apply(r,[f,e]),p=!1)}function y(e){if(s=!0,r.writable=!1,void 0!==e)return h(e,o);o==i&&(r.readable=!1,r.emit("end"),r.destroy())}return r.writable=!0,r.readable=!0,r.write=function(t){if(s)throw new Error("map stream is not writable");p=!1,o++;try{var r=(n=t,a=o,i=m,e.call(null,n,(function(e,t){i(e,t,a)})));return!(c=!1===r)}catch(e){if(p)throw e;return m(e),!c}var n,a,i},r.end=function(e){s||y(e)},r.destroy=function(){s=l=!0,r.writable=r.readable=c=!1,n.nextTick((function(){r.emit("close")}))},r.pause=function(){c=!0},r.resume=function(){c=!1},r}},6736:(e,t,r)=>{e.exports=r(1094)},5606: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,c=[],l=!1,u=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=i(p);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||l||i(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},4765:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},5373:(e,t,r)=>{"use strict";var n=r(8636),a=r(2642),o=r(4765);e.exports={formats:o,parse:a,stringify:n}},2642:(e,t,r)=>{"use strict";var n=r(7720),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,u=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(s=i.exec(o))&&p<r.depth;){if(p+=1,!r.plainObjects&&a.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var a=n?t:c(t,r),o=e.length-1;o>=0;--o){var i,s=e[o];if("[]"===s&&r.parseArrays)i=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:[].concat(a);else{i=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&s!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(i=[])[p]=a:"__proto__"!==u&&(i[u]=a):i={0:a}}a=i}return a}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset,r=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),d=u,u=f.length);for(u=0;u<f.length;++u)if(u!==d){var m,y,g=f[u],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),i.decoder,h,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),g.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=a.call(r,m);w&&"combine"===t.duplicates?r[m]=n.combine(r[m],y):w&&"last"!==t.duplicates||(r[m]=y)}return r}(e,r):e,p=r.plainObjects?Object.create(null):{},f=Object.keys(u),d=0;d<f.length;++d){var h=f[d],m=l(h,u[h],r,"string"==typeof e);p=n.merge(p,m,r)}return!0===r.allowSparse?p:n.compact(p)}},8636:(e,t,r)=>{"use strict";var n=r(920),a=r(7720),o=r(4765),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,r,o,i,s,l,p,f,m,y,g,v,b,w,E,_,S,O){for(var P,j=t,x=O,R=0,T=!1;void 0!==(x=x.get(h))&&!T;){var k=x.get(t);if(R+=1,void 0!==k){if(k===R)throw new RangeError("Cyclic object value");T=!0}void 0===x.get(h)&&(R=0)}if("function"==typeof y?j=y(r,j):j instanceof Date?j=b(j):"comma"===o&&c(j)&&(j=a.maybeMap(j,(function(e){return e instanceof Date?b(e):e}))),null===j){if(l)return m&&!_?m(r,d.encoder,S,"key",w):r;j=""}if("string"==typeof(P=j)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||a.isBuffer(j))return m?[E(_?r:m(r,d.encoder,S,"key",w))+"="+E(m(j,d.encoder,S,"value",w))]:[E(r)+"="+E(String(j))];var N,A=[];if(void 0===j)return A;if("comma"===o&&c(j))_&&m&&(j=a.maybeMap(j,m)),N=[{value:j.length>0?j.join(",")||null:void 0}];else if(c(y))N=y;else{var C=Object.keys(j);N=g?C.sort(g):C}var D=f?r.replace(/\./g,"%2E"):r,I=i&&c(j)&&1===j.length?D+"[]":D;if(s&&c(j)&&0===j.length)return I+"[]";for(var L=0;L<N.length;++L){var M=N[L],$="object"==typeof M&&void 0!==M.value?M.value:j[M];if(!p||null!==$){var F=v&&f?M.replace(/\./g,"%2E"):M,U=c(j)?"function"==typeof o?o(I,F):I:I+(v?"."+F:"["+F+"]");O.set(t,R);var q=n();q.set(h,O),u(A,e($,U,o,i,s,l,p,f,"comma"===o&&_&&c(j)?null:m,y,g,v,b,w,E,_,S,q))}}return A};e.exports=function(e,t){var r,a=e,l=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,a=o.formatters[r],l=d.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:l,format:r,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?a=(0,l.filter)("",a):c(l.filter)&&(r=l.filter);var p=[];if("object"!=typeof a||null===a)return"";var f=s[l.arrayFormat],h="comma"===f&&l.commaRoundTrip;r||(r=Object.keys(a)),l.sort&&r.sort(l.sort);for(var y=n(),g=0;g<r.length;++g){var v=r[g];l.skipNulls&&null===a[v]||u(p,m(a[v],v,f,h,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var b=p.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},7720:(e,t,r)=>{"use strict";var n=r(4765),a=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,a,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;u+=c){for(var p=s.length>=c?s.slice(u,u+c):s,f=[],d=0;d<p.length;++d){var h=p.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===n.RFC1738&&(40===h||41===h)?f[f.length]=p.charAt(d):h<128?f[f.length]=i[h]:h<2048?f[f.length]=i[192|h>>6]+i[128|63&h]:h<55296||h>=57344?f[f.length]=i[224|h>>12]+i[128|h>>6&63]+i[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(d)),f[f.length]=i[240|h>>18]+i[128|h>>12&63]+i[128|h>>6&63]+i[128|63&h])}l+=f.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var i=t;return o(t)&&!o(r)&&(i=s(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return a.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),i)}}},4930:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,a,o){n=n||"&",a=a||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(n);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var p,f,d,h,m=e[u].replace(s,"%20"),y=m.indexOf(a);y>=0?(p=m.substr(0,y),f=m.substr(y+1)):(p=m,f=""),d=decodeURIComponent(p),h=decodeURIComponent(f),t(i,d)?r(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},1590: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,o,i,s){return o=o||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?n(a(e),(function(a){var s=encodeURIComponent(t(a))+i;return r(e[a])?n(e[a],(function(e){return s+encodeURIComponent(t(e))})).join(o):s+encodeURIComponent(t(e[a]))})).join(o):s?encodeURIComponent(t(s))+i+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},2894:(e,t,r)=>{"use strict";t.decode=t.parse=r(4930),t.encode=t.stringify=r(1590)},5287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var w=b.prototype=new v;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,a)&&!O.hasOwnProperty(a)&&(o[a]=t[a]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in c=e.defaultProps)void 0===o[a]&&(o[a]=c[a]);return{$$typeof:r,type:e,key:i,ref:s,props:o,_owner:S.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var x=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return i=i(c=e),e=""===o?"."+R(c,0):o,E(i)?(a="",null!=e&&(a=e.replace(x,"$&/")+"/"),T(i,t,a,"",(function(e){return e}))):null!=i&&(j(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+e)),t.push(i)),1;if(c=0,o=""===o?".":o+":",E(e))for(var l=0;l<e.length;l++){var u=o+R(s=e[l],l);c+=T(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=T(s=s.value,t,a,u=o+R(s,l++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function k(e,t,r){if(null==e)return e;var n=[],a=0;return T(e,n,"","",(function(e){return t.call(r,e,a++)})),n}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},C={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:C,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=I,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)_.call(t,l)&&!O.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}return{$$typeof:r,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.transition;C.transition={};try{e()}finally{C.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,r){return A.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,r){return A.current.useReducer(e,t,r)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return A.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return A.current.useTransition()},t.version="18.3.1"},6540:(e,t,r)=>{"use strict";e.exports=r(5287)},2861:(e,t,r)=>{var n=r(8287),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)}},6897:(e,t,r)=>{"use strict";var n=r(453),a=r(41),o=r(592)(),i=r(5795),s=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(o?a(e,"length",t,!0,!0):a(e,"length",t)),e}},920:(e,t,r)=>{"use strict";var n=r(453),a=r(8075),o=r(1850),i=r(9675),s=n("%WeakMap%",!0),c=n("%Map%",!0),l=a("WeakMap.prototype.get",!0),u=a("WeakMap.prototype.set",!0),p=a("WeakMap.prototype.has",!0),f=a("Map.prototype.get",!0),d=a("Map.prototype.set",!0),h=a("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return f(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,a){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),u(e,n,a)):c?(t||(t=new c),d(t,n,a)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,a))}};return n}},1850:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&a&&"function"==typeof a.get?a.get:null,i=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,S=Array.prototype.concat,O=Array.prototype.join,P=Array.prototype.slice,j=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var a=String(n),o=v.call(t,a.length+1);return b.call(a,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var I=r(1635),L=I.custom,M=B(L)?L:null;function $(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==K(e)||N&&"object"==typeof e&&N in e)}function q(e){return!("[object RegExp]"!==K(e)||N&&"object"==typeof e&&N in e)}function B(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,a,s){var c=n||{};if(z(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"==typeof t){var j=String(t)+"n";return w?D(t,j):j}var R=void 0===c.depth?5:c.depth;if(void 0===a&&(a=0),a>=R&&R>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var L,H=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(c,a);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function W(t,r,n){if(r&&(s=P.call(s)).push(r),n){var o={depth:c.depth};return z(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,a+1,s)}return e(t,c,a+1,s)}if("function"==typeof t&&!q(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,W);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+O.call(te,", ")+" }":"")}if(B(t)){var re=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||k?re:J(re)}if((L=t)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),ae=t.attributes||[],oe=0;oe<ae.length;oe++)ne+=" "+ae[oe].name+"="+$(F(ae[oe].value),"double",c);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ie=X(t,W);return H&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Y(ie,H)+"]":"[ "+O.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||N&&"object"==typeof e&&N in e)}(t)){var se=X(t,W);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(se,", ")+" }":"{ ["+String(t)+"] "+O.call(S.call("[cause]: "+W(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(M&&"function"==typeof t[M]&&I)return I(t,{depth:R-a});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,(function(e,r){ce.push(W(r,t,!0)+" => "+W(e,t))})),Z("Map",o.call(t),ce,H)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push(W(e,t))})),Z("Set",l.call(t),le,H)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return G("WeakRef");if(function(e){return!("[object Number]"!==K(e)||N&&"object"==typeof e&&N in e)}(t))return J(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return J(W(x.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||N&&"object"==typeof e&&N in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==K(e)||N&&"object"==typeof e&&N in e)}(t))return J(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==K(e)||N&&"object"==typeof e&&N in e)}(t)&&!q(t)){var ue=X(t,W),pe=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!pe&&N&&Object(t)===t&&N in t?v.call(K(t),8,-1):fe?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+O.call(S.call([],de||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":H?he+"{"+Y(ue,H)+"}":he+"{ "+O.call(ue,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function K(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(v.call(e,0,t.maxStringLength),t)+n}return $(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function G(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):O.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=z(e,a)?t(e[a],e):""}var o,i="function"==typeof R?R(e):[];if(k){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&o["$"+c]instanceof Symbol||(_.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof R)for(var l=0;l<i.length;l++)A.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}},175:(e,t,r)=>{var n=r(1094),a=r(3141).I;e.exports=function(e,t,r){var o=new a,i="",s=r&&r.maxLength,c=!r||!1!==r.trailing;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 u(t,r){var n=((null!=i?i:"")+r).split(e);if(i=n.pop(),s&&i.length>s)return t.emit("error",new Error("maximum buffer reached"));for(var a=0;a<n.length;a++)l(t,n[a])}return"function"==typeof e&&(t=e,e=null),e||(e=/\r?\n/),n((function(e){u(this,o.write(e))}),(function(){o.end&&u(this,o.end()),c&&null!=i&&l(this,i),this.queue(null)}))}},8310:(e,t,r)=>{e.exports=a;var n=r(7007).EventEmitter;function a(){n.call(this)}r(6698)(a,n),a.Readable=r(6891),a.Writable=r(1999),a.Duplex=r(8101),a.Transform=r(9083),a.PassThrough=r(3681),a.finished=r(4257),a.pipeline=r(5267),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",c));var i=!1;function s(){i||(i=!0,e.end())}function c(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",a),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},2463: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,c;if("string"==typeof t&&(o="not ",t.substr(0,4)===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-9,r)===t}(e," argument"))i="The ".concat(e," ").concat(a," ").concat(n(t,"type"));else{var l=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");i='The "'.concat(e,'" ').concat(l," ").concat(a," ").concat(n(t,"type"))}return i+". 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.F=t},8101:(e,t,r)=>{"use strict";var n=r(5606),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(6891),i=r(1999);r(6698)(u,o);for(var s=a(i.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=i.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3681:(e,t,r)=>{"use strict";e.exports=a;var n=r(9083);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}r(6698)(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},6891:(e,t,r)=>{"use strict";var n,a=r(5606);e.exports=P,P.ReadableState=O,r(7007).EventEmitter;var o,i=function(e,t){return e.listeners(t).length},s=r(1396),c=r(8287).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(7199);o=u&&u.debuglog?u.debuglog("stream"):function(){};var p,f,d,h=r(1766),m=r(4347),y=r(6644).getHighWaterMark,g=r(2463).F,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,E=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(P,s);var _=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(e,t,a){n=n||r(8101),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",a),this.buffer=new h,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&&(p||(p=r(3141).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function P(e){if(n=n||r(8101),!(this instanceof P))return new P(e);var t=this instanceof n;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function j(e,t,r,n,a){o("readableAddChunk",t);var i,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){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?k(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}(e,s);else if(a||(i=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),i)_(e,i);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)s.endEmitted?_(e,new E):x(e,s,t,!0);else if(s.ended)_(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?x(e,s,t,!1):A(e,s)):x(e,s,t,!1)}else n||(s.reading=!1,A(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function x(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),A(e,t)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=m.destroy,P.prototype._undestroy=m.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),j(this,e,t,!1,r)},P.prototype.unshift=function(e){return j(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){p||(p=r(3141).I);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,a="";null!==n;)a+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var R=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(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 k(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(N,e))}function N(e){var t=e._readableState;o("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 A(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("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(o("flow",t.flowing);t.flowing&&null!==e.read(););}function $(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;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(U,t,e))}function U(e,t){if(o("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<n;r++)if(e[r]===t)return r;return-1}P.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):k(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return o("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",a=!0),t.ended||t.reading?o("reading or ended",a=!1):a&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?$(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},P.prototype._read=function(e){_(this,new w("_read()"))},P.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,o("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===a.stdout||e===a.stderr?m:c;function c(){o("onend"),e.end()}n.endEmitted?a.nextTick(s):r.once("end",s),e.on("unpipe",(function t(a,i){o("onunpipe"),a===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",l);var u=!1;function p(t){o("ondata");var a=e.write(t);o("dest.write",a),!1===a&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!u&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){o("onerror",t),m(),e.removeListener("error",f),0===i(e,"error")&&_(e,t)}function d(){e.removeListener("finish",h),m()}function h(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",p),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",f),e.once("close",d),e.once("finish",h),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},P.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;o<a;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var i=q(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?k(this):n.reading||a.nextTick(I,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(D,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(D,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(L,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(o("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){o("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 i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(5034)),f(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=$,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===d&&(d=r(968)),d(P,e,t)})},9083:(e,t,r)=>{"use strict";e.exports=u;var n=r(2463).F,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(8101);function l(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<a.highWaterMark)&&this._read(a.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new i;return e.push(null)}r(6698)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new a("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},1999:(e,t,r)=>{"use strict";var n,a=r(5606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=P,P.WritableState=O;var i,s={deprecate:r(4643)},c=r(1396),l=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=r(4347),f=r(6644).getHighWaterMark,d=r(2463).F,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,_=p.errorOrDestroy;function S(){}function O(e,t,i){n=n||r(8101),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(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 y;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(N,e,t),e._writableState.errorEmitted=!0,_(e,n)):(o(n),e._writableState.errorEmitted=!0,_(e,n),N(e,t))}(e,r,n,t,o);else{var i=T(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?a.nextTick(x,e,r,i,o):x(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 P(e){var t=this instanceof(n=n||r(8101));if(!t&&!i.call(P,this))return new P(e);this._writableState=new O(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)),c.call(this)}function j(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 x(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function R(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,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,j(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 l=r.chunk,u=r.encoding,p=r.callback;if(j(e,t,!1,t.objectMode?1:l.length,l,u,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var r=T(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(k,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(6698)(P,c),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:s.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]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===P&&e&&e._writableState instanceof O}})):i=function(e){return e instanceof this},P.prototype.pipe=function(){_(this,new g)},P.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,s=!o.objectMode&&(n=e,l.isBuffer(n)||n instanceof u);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 w;_(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 h("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){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),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<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,s,n,a,o);return c}(this,o,s,e,t,r)),i},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new m("_write()"))},P.prototype._writev=null,P.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,N(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=p.destroy,P.prototype._undestroy=p.undestroy,P.prototype._destroy=function(e,t){t(e)}},5034:(e,t,r)=>{"use strict";var n,a=r(5606);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,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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(4257),s=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[p]=null,e[s]=null,e[c]=null,t(h(r,!1)))}}function y(e){a.nextTick(m,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(t,r){a.nextTick((function(){e[l]?r(e[l]):t(h(void 0,!0))}))}));var r,n=this[p];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[f](r,n)}),n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));r=new Promise(this[f])}return this[p]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),g);e.exports=function(e){var t,r=Object.create(v,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var n=r[d].read();n?(r[p]=null,r[s]=null,r[c]=null,e(h(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[p]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[p]=null,r[s]=null,r[c]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[p]=null,r[s]=null,r[c]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",y.bind(null,r)),r}},1766:(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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(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,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=r(8287).Buffer,l=r(3779).inspect,u=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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 c.alloc(0);for(var t,r,n,a=c.allocUnsafe(e>>>0),o=this.head,i=0;o;)t=o.data,r=a,n=i,c.prototype.copy.call(t,r,n),i+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var a=t.data,o=e>a.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=c.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:u,value:function(e,t){return l(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4347:(e,t,r)=>{"use strict";var n=r(5606);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,c=this._writableState&&this._writableState.destroyed;return s||c?(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)}}},4257:(e,t,r)=>{"use strict";var n=r(2463).F.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<r;a++)n[a]=arguments[a];e.apply(this,n)}}}(o||a);var i=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,i||o.call(t)},p=t._readableState&&t._readableState.endEmitted,f=function(){i=!1,p=!0,s||o.call(t)},d=function(e){o.call(t,e)},h=function(){var e;return i&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",f),t.on("finish",u),!1!==r.error&&t.on("error",d),t.on("close",h),function(){t.removeListener("complete",u),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",h)}}},968:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5267:(e,t,r)=>{"use strict";var n,a=r(2463).F,o=a.ERR_MISSING_ARGS,i=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var u,p=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var f=t.map((function(e,a){var o=a<t.length-1;return function(e,t,a,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(4257)),n(e,{readable:t,writable:a},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new i("pipe"))}}(e,o,a>0,(function(e){u||(u=e),e&&f.forEach(c),o||(f.forEach(c),p(u))}))}));return t.reduce(l)}},6644:(e,t,r)=>{"use strict";var n=r(2463).F.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}}},1396:(e,t,r)=>{e.exports=r(7007).EventEmitter},8497:(e,t,r)=>{var n=r(4928),a=r(1094);e.exports=function(){var e;if(0==(e=1==arguments.length&&Array.isArray(arguments[0])?arguments[0]:[].slice.call(arguments)).length)return a();if(1==e.length)return e[0];var t=e[0],r=e[e.length-1],o=n(t,r);function i(){var e=[].slice.call(arguments);e.unshift("error"),o.emit.apply(o,e)}!function e(t){t.length<2||(t[0].pipe(t[1]),e(t.slice(1)))}(e);for(var s=1;s<e.length-1;s++)e[s].on("error",i);return o}},3141:(e,t,r)=>{"use strict";var n=r(2861).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=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=f,void(this.end=d)}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 c(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 l(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 u(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 p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var a=i(t[n]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--n<r||-2===a?0:(a=i(t[n]))>=0?(a>0&&(e.lastNeed=a-2),a):--n<r||-2===a?0:(a=i(t[n]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):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}},7846:(e,t,r)=>{"use strict";const n=r(7749),a=r(8997),o=r(8647).A;e.exports=(e,t,r)=>{const i=[];return function e(t,r,s){let c;(r=r||{}).indent=r.indent||"\t",s=s||"",c=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 l=e=>{if(void 0===r.inlineCharacterLimit)return e;const t=e.replace(new RegExp(c.newLine,"g"),"").replace(new RegExp(c.newLineOrSpace,"g")," ").replace(new RegExp(c.pad+"|"+c.indent,"g"),"");return t.length<=r.inlineCharacterLimit?t:e.replace(new RegExp(c.newLine+"|"+c.newLineOrSpace,"g"),"\n").replace(new RegExp(c.pad,"g"),s).replace(new RegExp(c.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="["+c.newLine+t.map(((n,a)=>{const o=t.length-1===a?c.newLine:","+c.newLineOrSpace;let i=e(n,r,s+r.indent);return r.transform&&(i=r.transform(t,a,i)),c.indent+i+o})).join("")+c.pad+"]";return i.pop(),l(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="{"+c.newLine+n.map(((a,o)=>{const i=n.length-1===o?c.newLine:","+c.newLineOrSpace,l="symbol"==typeof a,u=!l&&/^[a-z$_][a-z$_0-9]*$/i.test(a),p=l||u?a:e(a,r);let f=e(t[a],r,s+r.indent);return r.transform&&(f=r.transform(t,a,f)),c.indent+String(p)+": "+f+i})).join("")+c.pad+"}";return i.pop(),l(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)}},1094:(e,t,r)=>{var n=r(5606),a=r(8310);function o(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,i=!1,s=[],c=!1,l=new a;function u(){for(;s.length&&!l.paused;){var e=s.shift();if(null===e)return l.emit("end");l.emit("data",e)}}return l.readable=l.writable=!0,l.paused=!1,l.autoDestroy=!(r&&!1===r.autoDestroy),l.write=function(t){return e.call(this,t),!l.paused},l.queue=l.push=function(e){return c||(null===e&&(c=!0),s.push(e),u()),l},l.on("end",(function(){l.readable=!1,!l.writable&&l.autoDestroy&&n.nextTick((function(){l.destroy()}))})),l.end=function(e){if(!o)return o=!0,arguments.length&&l.write(e),l.writable=!1,t.call(l),!l.readable&&l.autoDestroy&&l.destroy(),l},l.destroy=function(){if(!i)return i=!0,o=!0,s.length=0,l.writable=l.readable=!1,l.emit("close"),l},l.pause=function(){if(!l.paused)return l.paused=!0,l},l.resume=function(){return l.paused&&(l.paused=!1,l.emit("resume")),u(),l.paused||l.emit("drain"),l},l}e.exports=o,o.through=o},6579:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a<n;++a)t[a]=t[a].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function o(e){var n="[A-Za-z]",a="[0-9]",o=t(a,"[A-Fa-f]"),i=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),p=r(n+t(n,a,"[\\+\\-\\.]")+"*"),f=r(r(i+"|"+t(u,s,"[\\:]"))+"*"),d=(r(r("25[0-5]")+"|"+r("2[0-4]"+a)+"|"+r("1"+a+a)+"|"+r("[1-9]"+a)+"|"+a),r(r("25[0-5]")+"|"+r("2[0-4]"+a)+"|"+r("1"+a+a)+"|"+r("0?[1-9]"+a)+"|0?0?"+a)),h=r(d+"\\."+d+"\\."+d+"\\."+d),m=r(o+"{1,4}"),y=r(r(m+"\\:"+m)+"|"+h),g=r(r(m+"\\:")+"{6}"+y),v=r("\\:\\:"+r(m+"\\:")+"{5}"+y),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+y),w=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+y),E=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+y),_=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+y),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+y),O=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),P=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),j=r([g,v,b,w,E,_,S,O,P].join("|")),x=r(r(u+"|"+i)+"+"),R=(r(j+"\\%25"+x),r(j+r("\\%25|\\%(?!"+o+"{2})")+x)),T=r("[vV]"+o+"+\\."+t(u,s,"[\\:]")+"+"),k=r("\\["+r(R+"|"+j+"|"+T)+"\\]"),N=r(r(i+"|"+t(u,s))+"*"),A=r(k+"|"+h+"(?!"+N+")|"+N),C=r(a+"*"),D=r(r(f+"@")+"?"+A+r("\\:"+C)+"?"),I=r(i+"|"+t(u,s,"[\\:\\@]")),L=r(I+"*"),M=r(I+"+"),$=r(r(i+"|"+t(u,s,"[\\@]"))+"+"),F=r(r("\\/"+L)+"*"),U=r("\\/"+r(M+F)+"?"),q=r($+F),B=r(M+F),H="(?!"+I+")",z=(r(F+"|"+U+"|"+q+"|"+B+"|"+H),r(r(I+"|"+t("[\\/\\?]",l))+"*")),K=r(r(I+"|[\\/\\?]")+"*"),V=r(r("\\/\\/"+D+F)+"|"+U+"|"+B+"|"+H),Q=r(p+"\\:"+V+r("\\?"+z)+"?"+r("\\#"+K)+"?"),W=r(r("\\/\\/"+D+F)+"|"+U+"|"+q+"|"+H),J=r(W+r("\\?"+z)+"?"+r("\\#"+K)+"?");return r(Q+"|"+J),r(p+"\\:"+V+r("\\?"+z)+"?"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+C+")")+"?)")+"?("+F+"|"+U+"|"+B+"|"+H+")"),r("\\?("+z+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+C+")")+"?)")+"?("+F+"|"+U+"|"+q+"|"+H+")"),r("\\?("+z+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+C+")")+"?)")+"?("+F+"|"+U+"|"+B+"|"+H+")"),r("\\?("+z+")"),r("\\#("+K+")"),r("("+f+")@"),r("\\:("+C+")"),{NOT_SCHEME:new RegExp(t("[^]",n,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+j+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+x+")")+"?\\]?$")}}var i=o(!1),s=o(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return 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&&s.return&&s.return()}finally{if(a)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,u=36,p=/^xn--/,f=/[^\0-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(h[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&a)<<10)+(1023&o)+65536):(t.push(a),r--)}else t.push(a)}return t}var w=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},E=function(e,t,r){var n=0;for(e=r?m(e/700):e>>1,e+=m(e/t);e>455;n+=u)e=m(e/35);return m(n+36*e/(e+38))},_=function(e){var t,r=[],n=e.length,a=0,o=128,i=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var c=0;c<s;++c)e.charCodeAt(c)>=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var p=s>0?s+1:0;p<n;){for(var f=a,d=1,h=u;;h+=u){p>=n&&g("invalid-input");var y=(t=e.charCodeAt(p++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(y>=u||y>m((l-a)/d))&&g("overflow"),a+=y*d;var v=h<=i?1:h>=i+26?26:h-i;if(y<v)break;var b=u-v;d>m(l/b)&&g("overflow"),d*=b}var w=r.length+1;i=E(a-f,w,0==f),m(a/w)>l-o&&g("overflow"),o+=m(a/w),a%=w,r.splice(a++,0,o)}return String.fromCodePoint.apply(String,r)},S=function(e){var t=[],r=(e=b(e)).length,n=128,a=0,o=72,i=!0,s=!1,c=void 0;try{for(var p,f=e[Symbol.iterator]();!(i=(p=f.next()).done);i=!0){var d=p.value;d<128&&t.push(y(d))}}catch(e){s=!0,c=e}finally{try{!i&&f.return&&f.return()}finally{if(s)throw c}}var h=t.length,v=h;for(h&&t.push("-");v<r;){var _=l,S=!0,O=!1,P=void 0;try{for(var j,x=e[Symbol.iterator]();!(S=(j=x.next()).done);S=!0){var R=j.value;R>=n&&R<_&&(_=R)}}catch(e){O=!0,P=e}finally{try{!S&&x.return&&x.return()}finally{if(O)throw P}}var T=v+1;_-n>m((l-a)/T)&&g("overflow"),a+=(_-n)*T,n=_;var k=!0,N=!1,A=void 0;try{for(var C,D=e[Symbol.iterator]();!(k=(C=D.next()).done);k=!0){var I=C.value;if(I<n&&++a>l&&g("overflow"),I==n){for(var L=a,M=u;;M+=u){var $=M<=o?1:M>=o+26?26:M-o;if(L<$)break;var F=L-$,U=u-$;t.push(y(w($+F%U,0))),L=m(F/U)}t.push(y(w(L,0))),o=E(a,T,v==h),a=0,++v}}}catch(e){N=!0,A=e}finally{try{!k&&D.return&&D.return()}finally{if(N)throw A}}++a,++n}return t.join("")},O={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e))}},decode:_,encode:S,toASCII:function(e){return v(e,(function(e){return f.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return p.test(e)?_(e.slice(4).toLowerCase()):e}))}},P={};function j(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>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 x(e){for(var t="",r=0,n=e.length;r<n;){var a=parseInt(e.substr(r+1,2),16);if(a<128)t+=String.fromCharCode(a),r+=3;else if(a>=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 R(e,t){function r(e){var r=x(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,j).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,j).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,j).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,j).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,j).replace(t.PCT_ENCODED,a)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function k(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(T).join("."):e}function N(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),a=n[1],o=n[2];if(a){for(var i=a.toLowerCase().split("::").reverse(),s=c(i,2),l=s[0],u=s[1],p=u?u.split(":").map(T):[],f=l.split(":").map(T),d=t.IPV4ADDRESS.test(f[f.length-1]),h=d?7:8,m=f.length-h,y=Array(h),g=0;g<h;++g)y[g]=p[g]||f[m+g]||"";d&&(y[h-1]=k(y[h-1],t));var v=y.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var w=y.slice(0,v.index),E=y.slice(v.index+v.length);b=w.join(":")+"::"+E.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return e}var A=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,C=void 0==="".match(/(){0}/)[1];function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?s:i;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(A);if(a){C?(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=N(k(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=P[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)R(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=O.toASCII(r.host.replace(n.PCT_ENCODED,x).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}R(r,i)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var I=/^\.\.?\//,L=/^\/\.(\/|$)/,M=/^\/\.\.(\/|$)/,$=/^\/?(?:.|\n)*?(?=\/|$)/;function F(e){for(var t=[];e.length;)if(e.match(I))e=e.replace(I,"");else if(e.match(L))e=e.replace(L,"/");else if(e.match(M))e=e.replace(M,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match($);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 U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?s:i,n=[],a=P[(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?O.toUnicode(e.host):O.toASCII(e.host.replace(r.PCT_ENCODED,x).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}R(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=function(e,t){var r=!1!==t.iri?s:i,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(N(k(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"==typeof e.port&&(n.push(":"),n.push(e.port.toString(10))),n.length?n.join(""):void 0}(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 c=e.path;t.absolutePath||a&&a.absolutePath||(c=F(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=D(U(e,r),r),t=D(U(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=F(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=F(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=F(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=F(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 B(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:i.PCT_ENCODED,x)}var H={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){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},z={scheme:"https",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},K={},V="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Q="[0-9A-Fa-f]",W=r(r("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+r("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+r("%"+Q+Q)),J=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),G=new RegExp(V,"g"),Z=new RegExp(W,"g"),Y=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),X=new RegExp(t("[^]",V,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ee=X;function te(e){var t=x(e);return t.match(G)?t:e}var re={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,c=i.length;s<c;++s){var l=i[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),p=0,f=u.length;p<f;++p)n.push(u[p]);break;case"subject":r.subject=B(l[1],t);break;case"body":r.body=B(l[1],t);break;default:a=!0,o[B(l[0],t)]=B(l[1],t)}}a&&(r.headers=o)}r.query=void 0;for(var d=0,h=n.length;d<h;++d){var m=n[d].split("@");if(m[0]=B(m[0]),t.unicodeSupport)m[1]=B(m[1],t).toLowerCase();else try{m[1]=O.toASCII(B(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[d]=m.join("@")}return r},serialize:function(e,t){var r,n=e,o=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(o){for(var i=0,s=o.length;i<s;++i){var c=String(o[i]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(Z,te).replace(Z,a).replace(Y,j),p=c.slice(l+1);try{p=t.iri?O.toUnicode(p):O.toASCII(B(p,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[i]=u+"@"+p}n.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var d=[];for(var h in f)f[h]!==K[h]&&d.push(h.replace(Z,te).replace(Z,a).replace(X,j)+"="+f[h].replace(Z,te).replace(Z,a).replace(ee,j));return d.length&&(n.query=d.join("&")),n}},ne=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(ne),n=e;if(r){var a=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),i=r[2],s=a+":"+(t.nid||o),c=P[s];n.nid=o,n.nss=i,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,a=r+":"+(t.nid||n),o=P[a];o&&(e=o.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ie={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};P[H.scheme]=H,P[z.scheme]=z,P[re.scheme]=re,P[ae.scheme]=ae,P[ie.scheme]=ie,e.SCHEMES=P,e.pctEncChar=j,e.pctDecChars=x,e.parse=D,e.removeDotSegments=F,e.serialize=U,e.resolveComponents=q,e.resolve=function(e,t,r){var n=function(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}({scheme:"null"},r);return U(q(D(e,n),D(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=U(D(e,t),t):"object"===n(e)&&(e=D(U(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=U(D(e,r),r):"object"===n(e)&&(e=U(e,r)),"string"==typeof t?t=U(D(t,r),r):"object"===n(t)&&(t=U(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:i.ESCAPE,j)},e.unescapeComponent=B,Object.defineProperty(e,"__esModule",{value:!0})}(t)},1270:function(e,t,r){var n;e=r.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,c=36,l=26,u=38,p=700,f=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=c-1,g=Math.floor,v=String.fromCharCode;function b(e){throw new RangeError(m[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function E(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(h,".")).split("."),t).join(".")}function _(e){for(var t,r,n=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(r=e.charCodeAt(a++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),a--):n.push(t);return n}function S(e){return w(e,(function(e){var t="";return e>65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+v(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?g(e/p):e>>1,e+=g(e/t);e>y*l>>1;n+=c)e=g(e/y);return g(n+(y+1)*e/(e+u))}function j(e){var t,r,n,a,o,i,u,p,f,d,h,m=[],y=e.length,v=0,w=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&b("not-basic"),m.push(e.charCodeAt(n));for(a=r>0?r+1:0;a<y;){for(o=v,i=1,u=c;a>=y&&b("invalid-input"),((p=(h=e.charCodeAt(a++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:c)>=c||p>g((s-v)/i))&&b("overflow"),v+=p*i,!(p<(f=u<=E?1:u>=E+l?l:u-E));u+=c)i>g(s/(d=c-f))&&b("overflow"),i*=d;E=P(v-o,t=m.length+1,0==o),g(v/t)>s-w&&b("overflow"),w+=g(v/t),v%=t,m.splice(v++,0,w)}return S(m)}function x(e){var t,r,n,a,o,i,u,p,f,d,h,m,y,w,E,S=[];for(m=(e=_(e)).length,t=128,r=0,o=72,i=0;i<m;++i)(h=e[i])<128&&S.push(v(h));for(n=a=S.length,a&&S.push("-");n<m;){for(u=s,i=0;i<m;++i)(h=e[i])>=t&&h<u&&(u=h);for(u-t>g((s-r)/(y=n+1))&&b("overflow"),r+=(u-t)*y,t=u,i=0;i<m;++i)if((h=e[i])<t&&++r>s&&b("overflow"),h==t){for(p=r,f=c;!(p<(d=f<=o?1:f>=o+l?l:f-o));f+=c)E=p-d,w=c-d,S.push(v(O(d+E%w,0))),p=g(E/w);S.push(v(O(p,0))),o=P(r,y,n==a),r=0,++n}++r,++t}return S.join("")}i={version:"1.4.1",ucs2:{decode:_,encode:S},decode:j,encode:x,toASCII:function(e){return E(e,(function(e){return d.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?j(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},8835:(e,t,r)=>{"use strict";var n=r(1270);function a(){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}var o=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={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},g=r(5373);function v(e,t,r){if(e&&"object"==typeof e&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",c=e.split(i);c[0]=c[0].replace(/\\/g,"/");var v=e=c.join(i);if(v=v.trim(),!r&&1===e.split("#").length){var b=s.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(v);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,v=v.substr(w.length)}if(r||w||v.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===v.substr(0,2);!_||w&&m[w]||(v=v.substr(2),this.slashes=!0)}if(!m[w]&&(_||w&&!y[w])){for(var S,O,P=-1,j=0;j<p.length;j++)-1!==(x=v.indexOf(p[j]))&&(-1===P||x<P)&&(P=x);for(-1!==(O=-1===P?v.lastIndexOf("@"):v.lastIndexOf("@",P))&&(S=v.slice(0,O),v=v.slice(O+1),this.auth=decodeURIComponent(S)),P=-1,j=0;j<u.length;j++){var x;-1!==(x=v.indexOf(u[j]))&&(-1===P||x<P)&&(P=x)}-1===P&&(P=v.length),this.host=v.slice(0,P),v=v.slice(P),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var T=this.hostname.split(/\./),k=(j=0,T.length);j<k;j++){var N=T[j];if(N&&!N.match(f)){for(var A="",C=0,D=N.length;C<D;C++)N.charCodeAt(C)>127?A+="x":A+=N[C];if(!A.match(f)){var I=T.slice(0,j),L=T.slice(j+1),M=N.match(d);M&&(I.push(M[1]),L.unshift(M[2])),L.length&&(v="/"+L.join(".")+v),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=n.toASCII(this.hostname));var $=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+$,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[E])for(j=0,k=l.length;j<k;j++){var U=l[j];if(-1!==v.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),v=v.split(U).join(q)}}var B=v.indexOf("#");-1!==B&&(this.hash=v.substr(B),v=v.slice(0,B));var H=v.indexOf("?");if(-1!==H?(this.search=v.substr(H),this.query=v.substr(H+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,H)):t&&(this.search="",this.query={}),v&&(this.pathname=v),y[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){$=this.pathname||"";var z=this.search||"";this.path=$+z}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var i=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),t+a+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if("string"==typeof e){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var f=u[p];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",g=r.search||"";r.path=h+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||v||r.host&&e.pathname,E=w,_=r.pathname&&r.pathname.split("/")||[],S=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===_[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,_=d;else if(d.length)_||(_=[]),_.pop(),_=_.concat(d),r.search=e.search,r.query=e.query;else if(null!=e.search)return S&&(r.host=_.shift(),r.hostname=r.host,(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],P=(r.host||e.host||_.length>1)&&("."===O||".."===O)||""===O,j=0,x=_.length;x>=0;x--)"."===(O=_[x])?_.splice(x,1):".."===O?(_.splice(x,1),j++):j&&(_.splice(x,1),j--);if(!w&&!E)for(;j--;j)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),P&&"/"!==_.join("/").substr(-1)&&_.push("");var R,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);return S&&(r.hostname=T?"":_.length?_.shift():"",r.host=r.hostname,(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)),(w=w||r.host&&_.length)&&!T&&_.unshift(""),_.length>0?r.pathname=_.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===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},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=v(e)),e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a},4643:(e,t,r)=>{function n(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(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},1635:()=>{},3779:()=>{},7199:()=>{},3420: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}')},8198: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}')},1662: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"}}}')},5159: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"}}}')},3083: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"}}}')},1045: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"}}}')},7962: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"}}}')},8443: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"}}}')},6771: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"}}}')},9367: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"}}}')},5444: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#"}}}')},948: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"}}}')},3033: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"}}}')},1958: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"}}}')},7513: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"}}}')},8203: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"}}}')},247: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"}}}')},6909: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"}}}')},5998: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"}}}')},4744: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"}}}')}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e=e=>{const t=e.target.indexOf("_");return t<0?{lang:e.target}:{lang:e.target.substring(0,t),lib:e.target.substring(t+1)}},t=t=>{const{lang:r,lib:n}=e(t);return t.title?t.title:n?r+" ("+n+")":r},n={node:"javascript"},a=t=>{const{lang:r}=e(t);return t.syntax?t.syntax:n[r]?n[r]:r};var o=r(1258);const i=function(e,t,r,n,a,i){const c=f(e,t,n,a,i),u=[];for(const e of c){const t=new o.HTTPSnippet(e);u.push(...l(r,t,e.postData.mimeType?e.postData.mimeType:void 0))}return{method:c[0].method,url:c[0].url,description:c[0].description,resource:s(c[0].url),snippets:u}},s=function(e){const t=e.split("/");for(let e=t.length-1;e>=0;e--){const r=t[e];if(""!==r&&!/^{/.test(r))return r}},c=function(e){const t=e.split("_")[0],r=u(t);let n=e.split("_")[1];const a=o.availableTargets();let i=!1,s=!1;for(let e in a){const r=a[e];if(t===r.key)if(i=!0,void 0===n)n=r.default,s=!0;else for(let e in r.clients)if(n===r.clients[e].key){s=!0;break}}return i&&s?{title:void 0!==n?r+" + "+u(n):r,language:t,library:n}:null},l=function(e,t,r){const n=[];for(let a in e){const o=c(e[a]);if(!o)throw new Error("Invalid target: "+e[a]);n.push({id:e[a],...void 0!==r&&{mimeType:r},title:o.title,content:t.convert(o.language,void 0!==o.library?o.library:null)})}return n},u=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};"undefined"!=typeof window&&(window.RequestSnippets=window.RequestSnippets||{getRequestSnippets:i},window.RequestSnippets=RequestSnippets);const p=function(e){const t=[];for(const r in e)t.push({name:r,value:e[r]});return t},f=function(e,t,r,n,a){void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a="");const o=p(n);let i={mimeType:""};if(a.length>0){i={};const e=o.find((e=>"string"==typeof e.name&&"content-type"===e.name.toLowerCase()));i.mimeType=void 0!==e?e.value:"application/octet-stream",i.text=a}return[{method:t.toUpperCase(),url:e,headers:p(n),queryString:p(r),httpVersion:"HTTP/1.1",cookies:p({}),headersSize:0,bodySize:0,postData:i}]};function d(e){return(t,r)=>(n,...a)=>{const o=t(n,...a),s=o.count(),c=new Array(s+e.length);let l=0;o.entrySeq().forEach((e=>{c[l]=e,l++}));for(const t of e)c[l]=[t.target,r.Im.fromJS({title:t.title,syntax:t.syntax,fn:e=>{const r=e.get("method",""),n=new URL(e.get("url","")),a=e.get("headers"),o=e.get("body",""),s={};n.searchParams.entries().forEach((e=>s[e[0]]=e[1]));const c=[t.target];let l;try{l=i(n.href,r,c,s,a?a.toObject():{},o).snippets[0].content}catch(e){console.error(e),l="snippet generation error. see console"}return l}})],l++;return(e=>{const t=new Map;return e.forEach((e=>{t.set(e[0],e[1])})),{get:e=>t.get(e),keySeq:()=>(e=>({first:()=>e[0],last:()=>e[e.length-1]}))(e.map((e=>e[0]))),entrySeq:()=>e}})(c)}}const h=e=>()=>({statePlugins:{requestSnippets:{wrapSelectors:{getSnippetGenerators:d(e)}}}});var m=r(6540);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e){return g="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},g(e)}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(null,arguments)}function w(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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _={};function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,r,n=e.join(".");return _[n]||(_[n]=0===(r=(t=e).length)||1===r?t:2===r?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===r?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:r>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),_[n]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return E(E({},e),r[t])}),t)}function O(e){return e.join(" ")}function P(e){var t=e.node,r=e.stylesheet,n=e.style,a=void 0===n?{}:n,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,l=t.tagName,u=t.value;if("text"===c)return u;if(l){var p,f=function(e,t){var r=0;return function(n){return r+=1,n.map((function(n,a){return P({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(a)})}))}}(r,o);if(o){var d=Object.keys(r).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),h=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&h.concat(s.className.filter((function(e){return!d.includes(e)})));p=E(E({},s),{},{className:O(y)||void 0,style:S(s.className,Object.assign({},s.style,a),r)})}else p=E(E({},s),{},{className:O(s.className)});var g=f(t.children);return m.createElement(l,b({key:i},p),g)}}var j=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function x(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=/\n/g;function k(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,a=void 0===n?{float:"left",paddingRight:"10px"}:n,o=e.numberStyle,i=void 0===o?{}:o,s=e.startingLineNumber;return m.createElement("code",{style:Object.assign({},r,a)},function(e){var t=e.startingLineNumber,r=e.style;return e.lines.map((function(e,n){var a=n+t;return m.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(a):r},"".concat(a,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:i,startingLineNumber:s}))}function N(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function A(e,t,r){var n,a={display:"inline-block",minWidth:(n=r,"".concat(n.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof e?e(t):e;return R(R({},a),o)}function C(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=void 0===i?{}:i,c=e.className,l=void 0===c?[]:c,u=e.showLineNumbers,p=e.wrapLongLines,f="function"==typeof s?s(r):s;if(f.className=l,r&&o){var d=A(n,r,a);t.unshift(N(r,d))}return p&u&&(f.style=R(R({},f.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:f,children:t}}function D(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0;n<e.length;n++){var a=e[n];if("text"===a.type)r.push(C({children:[a],className:(i=new Set(t),function(e){if(Array.isArray(e))return y(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.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)?y(e,t):void 0}}(i)||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.")}())}));else if(a.children){var o=t.concat(a.properties.className);D(a.children,o).forEach((function(e){return r.push(e)}))}}var i;return r}function I(e,t,r,n,a,o,i,s,c){var l,u=D(e.value),p=[],f=-1,d=0;function h(e,o){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||l.length>0?function(e,t){return C({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:c})}(e,o,l):function(e,t){if(n&&t&&a){var r=A(s,t,i);e.unshift(N(t,r))}return e}(e,o)}for(var m=function(){var e=u[d],t=e.children[0].value;if(t.match(T)){var r=t.split("\n");r.forEach((function(t,a){var i=n&&p.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===a){var c=h(u.slice(f+1,d).concat(C({children:[s],className:e.properties.className})),i);p.push(c)}else if(a===r.length-1){var l=u[d+1]&&u[d+1].children&&u[d+1].children[0],m={type:"text",value:"".concat(t)};if(l){var y=C({children:[m],className:e.properties.className});u.splice(d+1,0,y)}else{var g=h([m],i,e.properties.className);p.push(g)}}else{var v=h([s],i,e.properties.className);p.push(v)}})),f=d}d++};d<u.length;)m();if(f!==u.length-1){var y=u.slice(f+1,u.length);if(y&&y.length){var g=h(y,n&&p.length+o);p.push(g)}}return t?p:(l=[]).concat.apply(l,p)}function L(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map((function(e,t){return P({node:e,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(t)})}))}function M(e){return e&&void 0!==e.highlightAuto}var $,F,U=r(3768),q=($=U,F={},function(e){var t=e.language,r=e.children,n=e.style,a=void 0===n?F:n,o=e.customStyle,i=void 0===o?{}:o,s=e.codeTagProps,c=void 0===s?{className:t?"language-".concat(t):void 0,style:R(R({},a['code[class*="language-"]']),a['code[class*="language-'.concat(t,'"]')])}:s,l=e.useInlineStyles,u=void 0===l||l,p=e.showLineNumbers,f=void 0!==p&&p,d=e.showInlineLineNumbers,h=void 0===d||d,y=e.startingLineNumber,g=void 0===y?1:y,v=e.lineNumberContainerStyle,b=e.lineNumberStyle,w=void 0===b?{}:b,E=e.wrapLines,_=e.wrapLongLines,S=void 0!==_&&_,O=e.lineProps,P=void 0===O?{}:O,x=e.renderer,T=e.PreTag,N=void 0===T?"pre":T,A=e.CodeTag,C=void 0===A?"code":A,D=e.code,U=void 0===D?(Array.isArray(r)?r[0]:r)||"":D,q=e.astGenerator,B=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,j);q=q||$;var H=f?m.createElement(k,{containerStyle:v,codeStyle:c.style||{},numberStyle:w,startingLineNumber:g,codeString:U}):null,z=a.hljs||a['pre[class*="language-"]']||{backgroundColor:"#fff"},K=M(q)?"hljs":"prismjs",V=u?Object.assign({},B,{style:Object.assign({},z,i)}):Object.assign({},B,{className:B.className?"".concat(K," ").concat(B.className):K,style:Object.assign({},i)});if(c.style=R(R({},c.style),{},S?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),!q)return m.createElement(N,V,H,m.createElement(C,c,U));(void 0===E&&x||S)&&(E=!0),x=x||L;var Q=[{type:"text",value:U}],W=function(e){var t=e.astGenerator,r=e.language,n=e.code,a=e.defaultCodeValue;if(M(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,r);return"text"===r?{value:a,language:"text"}:o?t.highlight(r,n):t.highlightAuto(n)}try{return r&&"text"!==r?{value:t.highlight(n,r)}:{value:a}}catch(e){return{value:a}}}({astGenerator:q,language:t,code:U,defaultCodeValue:Q});null===W.language&&(W.value=Q);var J=I(W,E,P,f,h,g,W.value.length+g,w,S);return m.createElement(N,V,m.createElement(C,c,!h&&H,x({rows:J,stylesheet:a,useInlineStyles:u})))});q.registerLanguage=U.registerLanguage;const B=q;var H=r(5772);const z=r.n(H)();var K=r(7285);const V=r.n(K)();var Q=r(5344);const W=r.n(Q)();var J=r(7533);const G=r.n(J)();var Z=r(3402);const Y=r.n(Z)();var X=r(6571);const ee=r.n(X)();var te=r(5089);const re=r.n(te)();var ne=r(1786);const ae=r.n(ne)();var oe=r(7192);const ie=r.n(oe)();var se=r(4564);const ce=r.n(se)();var le=r(4608);const ue=r.n(le)();var pe=r(2825);const fe=r.n(pe)();var de=r(9721);const he=r.n(de)();var me=r(9688);const ye={json:z,xml:V,bash:W,yaml:G,http:Y,powershell:ee,javascript:re,java:ae,python:ie,go:ce,php:ue,typescript:fe,cpp:he,rust:r.n(me)()},ge=["json","js","xml","yaml","http","bash","powershell","javascript"],ve={js:"javascript"},be={},we=e=>{const t=ve[e]?ve[e]:e;be[e]&&ye[t]&&B.registerLanguage(e,ye[t]),be[e]=!0};function Ee(e,t){return t=>({...e(t),type:({language:e,className:t="",getConfigs:r,syntaxHighlighting:n={},children:a=""})=>{const o=r().syntaxHighlight.theme,{styles:i,defaultStyle:s}=n,c=i?.[o]??s;return(0,m.createElement)(B,{lanuage:e,className:t,style:c},a)}})}function _e(e){if(!e.props)return!1;if(e.props.className&&e.props.className.split(" ").find((e=>"btn"===e)))return!0;let t=!1;for(const r of e.props.children[Symbol.iterator]?e.props.children:[]){const e=_e(r);if("object"==typeof e)return e;t=t||e}return!!t&&e}function Se(e,t){return t=>{const r=e(t),n=_e(r);return"object"==typeof n&&(n.props.style={...n.props.style,paddingLeft:"15px",paddingRight:"15px",paddingTop:"5px",overflow:"auto"}),r}}const Oe=e=>()=>{return{afterLoad:(t=e,()=>{for(const e of ge)we(e);for(const e of t)we(e.syntax)}),wrapComponents:{SyntaxHighlighter:Ee,RequestSnippets:Se}};var t};"undefined"!=typeof window&&(window.SwaggerSnippetGenerator=window.SwaggerSnippetGenerator||(e=>{const r=e.map((e=>(e=>{const r=[];if("string"!=typeof e.target&&r.push("target must be string"),"string"!=typeof e.syntax&&void 0!==e.syntax&&r.push("syntax must be string or undefined :"+typeof e.syntax),"string"!=typeof e.title&&void 0!==e.title&&r.push("title must be string or undefined :"+typeof e.title),r.length>0){let e="validation failed";for(const t of r)e=e+"\n "+t;throw SyntaxError(e)}return{title:t(e),syntax:a(e),target:e.target}})(e)));return()=>[h(r),Oe(r)]}))})()})();