From 1d07e33f626e304f126e217a4015e1f5cf2a63cd Mon Sep 17 00:00:00 2001 From: Bart Vanderstukken Date: Wed, 25 Nov 2020 11:58:34 +0100 Subject: [PATCH] Add condition to protect addSchemaInfoToExample --- dist/index.html.gz | Bin 476 -> 476 bytes dist/rapidoc-min.js | 11 +++------- dist/rapidoc-min.js.gz | Bin 218687 -> 218575 bytes dist/rapidoc-min.js.map | 2 +- dist/rapidoc-min.js.map.gz | Bin 190 -> 185 bytes dist/report.html | 43 ------------------------------------- docs/rapidoc-min.js | 11 +++------- src/utils/schema-utils.js | 3 +++ 8 files changed, 10 insertions(+), 60 deletions(-) delete mode 100644 dist/report.html diff --git a/dist/index.html.gz b/dist/index.html.gz index 2f42e57b51365031b5a66440bb1be732b148741a..d65675d8eca2edb05c8913855871c5ae1e0a1148 100644 GIT binary patch delta 19 Ycmcb^e21A!zMF#q1emxsa$RBs04?PN6#xJL delta 19 Ycmcb^e21A!zMF#q1ek<3a$RBs04@>)9smFU diff --git a/dist/rapidoc-min.js b/dist/rapidoc-min.js index 78e3f8f4..7bf58e26 100644 --- a/dist/rapidoc-min.js +++ b/dist/rapidoc-min.js @@ -1,9 +1,4 @@ -/*! - * RapiDoc 8.4.0 - WebComponent to View OpenAPI docs - * License: MIT - * Repo : https://github.com/mrin9/RapiDoc - * Author : Mrinmoy Majumdar - */!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,t){if(!w[e]||!x[e])return;for(var r in x[e]=!1,t)Object.prototype.hasOwnProperty.call(t,r)&&(h[r]=t[r]);0==--g&&0===y&&A()}(e,r),t&&t(e,r)};var r,n=!0,o="605a6930a8e2a65fa711",i={},a=[],s=[];function c(e){var t=T[e];if(!t)return C;var n=function(n){return t.hot.active?(T[n]?-1===T[n].parents.indexOf(e)&&T[n].parents.push(e):(a=[e],r=n),-1===t.children.indexOf(n)&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),a=[]),C(n)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return C[e]},set:function(t){C[e]=t}}};for(var i in C)Object.prototype.hasOwnProperty.call(C,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(n,i,o(i));return n.e=function(e){return"ready"===p&&f("prepare"),y++,C.e(e).then(t,(function(e){throw t(),e}));function t(){y--,"prepare"===p&&(b[e]||O(e),0===y&&0===g&&A())}},n.t=function(e,t){return 1&t&&(e=n(e)),C.t(e,-2&t)},n}function l(t){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==t,active:!0,accept:function(e,t){if(void 0===e)n._selfAccepted=!0;else if("function"==typeof e)n._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&n._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(h={})[t]=e[t],f("ready");break;case"ready":_(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:S,apply:E,status:function(e){if(!e)return p;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:i[t]};return r=void 0,n}var u=[],p="idle";function f(e){p=e;for(var t=0;t0;){var o=n.pop(),i=o.id,a=o.chain;if((u=T[i])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(u.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var s=0;s ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(E=new Error("Aborted because of self decline: "+A.moduleId+I));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(E=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+I));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(E=new Error("Aborted because "+p+" is not accepted"+I));break;case"accepted":n.onAccepted&&n.onAccepted(A),_=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),P=!0;break;default:throw new Error("Unexception type "+A.type)}if(E)return f("abort"),Promise.reject(E);if(_)for(p in x[p]=h[p],g(b,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,p)&&(y[p]||(y[p]=[]),g(y[p],A.outdatedDependencies[p]));P&&(g(b,[A.moduleId]),x[p]=S)}var R,L=[];for(c=0;c0;)if(p=D.pop(),u=T[p]){var B={},q=u.hot._disposeHandlers;for(l=0;l=0&&F.parents.splice(R,1))}}for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=T[p]))for(M=y[p],l=0;l=0&&u.children.splice(R,1);f("apply"),void 0!==v&&(o=v,v=void 0);for(p in h=void 0,x)Object.prototype.hasOwnProperty.call(x,p)&&(e[p]=x[p]);var z=null;for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=T[p])){M=y[p];var U=[];for(c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}r.d(t,"a",(function(){return A})),r.d(t,"b",(function(){return L})),r.d(t,"c",(function(){return F})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return E})),r.d(t,"f",(function(){return B})),r.d(t,"g",(function(){return O})),r.d(t,"h",(function(){return n})),r.d(t,"i",(function(){return a})),r.d(t,"j",(function(){return o})),r.d(t,"k",(function(){return j})),r.d(t,"l",(function(){return s})),r.d(t,"m",(function(){return q})),r.d(t,"n",(function(){return D})),r.d(t,"o",(function(){return y})),r.d(t,"p",(function(){return N})),r.d(t,"q",(function(){return c})),r.d(t,"r",(function(){return m})),r.d(t,"s",(function(){return g})),r.d(t,"t",(function(){return l})),r.d(t,"u",(function(){return _})),r.d(t,"v",(function(){return M})),r.d(t,"w",(function(){return h})),r.d(t,"x",(function(){return b})),r.d(t,"y",(function(){return v}));var A={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},E={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},j="tag:yaml.org,2002:",_={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function T(e){for(var t=[0],r=e.indexOf("\n");-1!==r;)r+=1,t.push(r),r=e.indexOf("\n",r);return t}function C(e){var t,r;return"string"==typeof e?(t=T(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=T(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function P(e,t){if("number"!=typeof e||e<0)return null;var r=C(t),n=r.lineStarts,o=r.src;if(!n||!o||e>o.length)return null;for(var i=0;i=1)||e>n.length)return null;for(var i=n[e-1],a=n[e];a&&a>i&&"\n"===o[a-1];)--a;return o.slice(i,a)}var R=function(){function e(t,r){o(this,e),this.start=t,this.end=r||t}return a(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var r=this.start,n=this.end;if(0===e.length||n<=e[0])return this.origStart=r,this.origEnd=n,t;for(var o=t;or);)++o;this.origStart=r+o;for(var i=o;o=n);)++o;return this.origEnd=n+o,i}}]),e}(),L=function(){function e(t,r,n){o(this,e),Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=r||[],this.type=t,this.value=null}return a(e,null,[{key:"addStringTerminator",value:function(t,r,n){if("\n"===n[n.length-1])return n;var o=e.endOfWhiteSpace(t,r);return o>=t.length||"\n"===t[o]?n+"\n":n}},{key:"atDocumentBoundary",value:function(e,t,r){var n=e[t];if(!n)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(r){if(n!==r)return!1}else if(n!==A.DIRECTIVES_END&&n!==A.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==n||a!==n)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var r=e[t],n="<"===r,o=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];r&&-1===o.indexOf(r);)r=e[t+=1];return n&&">"===r&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var r=e[t];" "===r;)r=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var r=e[t];r&&"\n"!==r;)r=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var r=e[t];"\t"===r||" "===r;)r=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var r=e[t-1];if("\n"===r)return t;for(;r&&"\n"!==r;)r=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,r,n){var o=e.endOfIndent(t,n);if(o>n+r)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,r){var n=e[t];return"\n"===n||"\t"===n||" "===n||r&&!n}},{key:"nextNodeIsIndented",value:function(e,t,r){return!(!e||t<0)&&(t>0||r&&"-"===e)}},{key:"normalizeOffset",value:function(t,r){var n=t[r];return n?"\n"!==n&&"\n"===t[r-1]?r-1:e.endOfWhiteSpace(t,r):r}},{key:"foldNewline",value:function(t,r,n){for(var o=0,i=!1,a="",s=t[r+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,r+=1,a+="\n";break;case"\t":o<=n&&(i=!0),r=e.endOfWhiteSpace(t,r+2)-1;break;case" ":o+=1,r+=1}s=t[r+1]}return a||(a=" "),s&&o<=n&&(i=!0),{fold:a,offset:r,error:i}}}]),a(e,[{key:"getPropValue",value:function(e,t,r){if(!this.context)return null;var n=this.context.src,o=this.props[e];return o&&n[o.start]===t?n.slice(o.start+(r?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var r=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var n=this.valueRange.end;return t!==n||e.atBlank(r,n-1)}},{key:"parseComment",value:function(t){var r=this.context.src;if(r[t]===A.COMMENT){var n=e.endOfLine(r,t+1),o=new R(t,n);return this.props.push(o),n}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(r){return r.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,r=this.range,n=this.value;if(null!=n)return n;var o=t.slice(r.start,r.end);return e.addStringTerminator(t,r.end,o)}},{key:"anchor",get:function(){for(var e=0;e0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t2&&void 0!==arguments[2]?arguments[2]:80,i=I(r.line,t);if(!i)return null;var a=r.col;if(i.length>o)if(a<=o-10)i=i.substr(0,o-1)+"…";else{var s=Math.round(o/2);i.length>a+s&&(i=i.substr(0,a+s-1)+"…"),a-=i.length-o,i="…"+i.substr(1-o)}var c=1,l="";n&&(n.line===r.line&&a+(n.col-r.col)<=o+1?c=n.col-r.col:(c=Math.min(i.length+1,o)-a,l="…"));var u=a>1?" ".repeat(a-1):"",p="^".repeat(c);return"".concat(i,"\n").concat(u).concat(p).concat(l)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),r}(d(Error)),M=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLReferenceError",e,n)}return r}(N),D=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSemanticError",e,n)}return r}(N),B=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSyntaxError",e,n)}return r}(N),q=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLWarning",e,n)}return r}(N),F=function(e){c(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,o=t.inFlow,i=t.src,a=e,s=e,c=i[a];"\n"===c&&!L.atDocumentBoundary(i,a+1);c=i[a]){var l=L.endOfBlockIndent(i,n,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=r.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var n=e.inFlow,o=e.src,i=t,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=r.endOfLine(o,t,n)),this.valueRange=new R(t,i),i=L.endOfWhiteSpace(o,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,n=this.context.src,o=n[r-1];tl?n.slice(l,a+1):s)}else i+=s}var p=n[t];switch(p){case"\t":return{errors:[new D(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":var f="Plain value cannot start with reserved character ".concat(p);return{errors:[new D(this,f)],str:i};default:return i}}}],[{key:"endOfLine",value:function(e,t,r){for(var n=e[t],o=t;n&&"\n"!==n&&(!r||"["!==n&&"]"!==n&&"{"!==n&&"}"!==n&&","!==n);){var i=e[o+1];if(":"===n&&(!i||"\n"===i||"\t"===i||" "===i||r&&","===i))break;if((" "===n||"\t"===n)&&"#"===i)break;o+=1,n=i}return o}}]),r}(L)},function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return d})),r.d(t,"f",(function(){return s})),r.d(t,"g",(function(){return f})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return b})),r.d(t,"j",(function(){return I})),r.d(t,"k",(function(){return g})),r.d(t,"l",(function(){return l})),r.d(t,"m",(function(){return o})),r.d(t,"n",(function(){return H})),r.d(t,"o",(function(){return V})),r.d(t,"p",(function(){return w})),r.d(t,"q",(function(){return B})),r.d(t,"r",(function(){return R})),r.d(t,"s",(function(){return m})),r.d(t,"t",(function(){return k})),r.d(t,"u",(function(){return $})),r.d(t,"v",(function(){return S})),r.d(t,"w",(function(){return a}));var n=r(0);function o(e,t,r){return r?-1===r.indexOf("\n")?"".concat(e," #").concat(r):"".concat(e,"\n")+r.replace(/^/gm,"".concat(t||"","#")):e}var i=function e(){Object(n.j)(this,e)};function a(e,t,r){if(Array.isArray(e))return e.map((function(e,t){return a(e,String(t),r)}));if(e&&"function"==typeof e.toJSON){var n=r&&r.anchors&&r.anchors.get(e);n&&(r.onCreate=function(e){n.res=e,delete r.onCreate});var o=e.toJSON(t,r);return n&&r.onCreate&&r.onCreate(o),o}return r&&r.keep||"bigint"!=typeof e?e:Number(e)}var s=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),(o=t.call(this)).value=e,o}return Object(n.i)(r,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:a(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),r}(i);function c(e,t,r){for(var n=r,o=t.length-1;o>=0;--o){var i=t[o],a=Number.isInteger(i)&&i>=0?[]:{};a[i]=n,n=a}return e.createNode(n,!1)}var l=function(e){return null==e||"object"===Object(n.h)(e)&&e[Symbol.iterator]().next().done},u=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),o=t.call(this),Object(n.l)(Object(n.w)(o),"items",[]),o.schema=e,o}return Object(n.i)(r,[{key:"addIn",value:function(e,t){if(l(e))this.add(t);else{var o=Object(n.x)(e),i=o[0],a=o.slice(1),s=this.get(i,!0);if(s instanceof r)s.addIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(a));this.set(i,c(this.schema,a,t))}}}},{key:"deleteIn",value:function(e){var t=Object(n.x)(e),o=t[0],i=t.slice(1);if(0===i.length)return this.delete(o);var a=this.get(o,!0);if(a instanceof r)return a.deleteIn(i);throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i))}},{key:"getIn",value:function(e,t){var o=Object(n.x)(e),i=o[0],a=o.slice(1),c=this.get(i,!0);return 0===a.length?!t&&c instanceof s?c.value:c:c instanceof r?c.getIn(a,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=Object(n.x)(e),o=t[0],i=t.slice(1);if(0===i.length)return this.has(o);var a=this.get(o,!0);return a instanceof r&&a.hasIn(i)}},{key:"setIn",value:function(e,t){var o=Object(n.x)(e),i=o[0],a=o.slice(1);if(0===a.length)this.set(i,t);else{var s=this.get(i,!0);if(s instanceof r)s.setIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(a));this.set(i,c(this.schema,a,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,i,a){var s=this,c=t.blockItem,l=t.flowChars,u=t.isMap,p=t.itemIndent,f=e,d=f.indent,h=f.indentStep,v=f.stringify,m=this.type===n.e.FLOW_MAP||this.type===n.e.FLOW_SEQ||e.inFlow;m&&(p+=h);var g=u&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:g,indent:p,inFlow:m,type:null});var y,b=!1,x=!1,w=this.items.reduce((function(t,r,n){var i;r&&(!b&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(i=r.comment),m&&(!b&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(x=!0)),b=!1;var a=v(r,e,(function(){return i=null}),(function(){return b=!0}));return m&&!x&&a.includes("\n")&&(x=!0),m&&nr.maxFlowStringSingleLineLength){y=k;var A,E=Object(n.g)(O);try{for(E.s();!(A=E.n()).done;){var j=A.value;y+=j?"\n".concat(h).concat(d).concat(j):"\n"}}catch(e){E.e(e)}finally{E.f()}y+="\n".concat(d).concat(S)}else y="".concat(k," ").concat(O.join(" ")," ").concat(S)}else{var _=w.map(c);y=_.shift();var T,C=Object(n.g)(_);try{for(C.s();!(T=C.n()).done;){var P=T.value;y+=P?"\n".concat(d).concat(P):"\n"}}catch(e){C.e(e)}finally{C.f()}}return this.comment?(y+="\n"+this.comment.replace(/^/gm,"".concat(d,"#")),i&&i()):b&&a&&a(),y}}]),r}(i);function p(e){var t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}Object(n.l)(u,"maxFlowStringSingleLineLength",60);var f=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(){return Object(n.j)(this,r),t.apply(this,arguments)}return Object(n.i)(r,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=p(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var r=p(e);if("number"==typeof r){var n=this.items[r];return!t&&n instanceof s?n.value:n}}},{key:"has",value:function(e){var t=p(e);return"number"==typeof t&&t1&&void 0!==arguments[1]?arguments[1]:null;return Object(n.j)(this,r),(o=t.call(this)).key=e,o.value=i,o.type=r.Type.PAIR,o}return Object(n.i)(r,[{key:"addToJSMap",value:function(e,t){var r=a(this.key,"",e);if(t instanceof Map){var o=a(this.value,r,e);t.set(r,o)}else if(t instanceof Set)t.add(r);else{var s=function(e,t,r){return null===t?"":"object"!==Object(n.h)(t)?String(t):e instanceof i&&r&&r.doc?e.toString({anchors:{},doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t)}(this.key,r,e);t[s]=a(this.value,s,e)}return t}},{key:"toJSON",value:function(e,t){var r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}},{key:"toString",value:function(e,t,r){if(!e||!e.doc)return JSON.stringify(this);var a=e.doc.options,c=a.indent,l=a.indentSeq,p=a.simpleKeys,d=this.key,h=this.value,v=d instanceof i&&d.comment;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof u){throw new Error("With simple keys, collection cannot be used as a key value")}}var m=!p&&(!d||v||d instanceof u||d.type===n.e.BLOCK_FOLDED||d.type===n.e.BLOCK_LITERAL),g=e,y=g.doc,b=g.indent,x=g.indentStep,w=g.stringify;e=Object.assign({},e,{implicitKey:!m,indent:b+x});var k=!1,S=w(d,e,(function(){return v=null}),(function(){return k=!0}));if(S=o(S,e.indent,v),e.allNullValues&&!p)return this.comment?(S=o(S,e.indent,this.comment),t&&t()):k&&!v&&r&&r(),e.inFlow?S:"? ".concat(S);S=m?"? ".concat(S,"\n").concat(b,":"):"".concat(S,":"),this.comment&&(S=o(S,e.indent,this.comment),t&&t());var O="",A=null;if(h instanceof i){if(h.spaceBefore&&(O="\n"),h.commentBefore){var E=h.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));O+="\n".concat(E)}A=h.comment}else h&&"object"===Object(n.h)(h)&&(h=y.schema.createNode(h,!0));e.implicitKey=!1,!m&&!this.comment&&h instanceof s&&(e.indentAtStart=S.length+1),k=!1,!l&&c>=2&&!e.inFlow&&!m&&h instanceof f&&h.type!==n.e.FLOW_SEQ&&!h.tag&&!y.anchors.getName(h)&&(e.indent=e.indent.substr(2));var j=w(h,e,(function(){return A=null}),(function(){return k=!0})),_=" ";if(O||this.comment)_="".concat(O,"\n").concat(e.indent);else if(!m&&h instanceof u){("["===j[0]||"{"===j[0])&&!j.includes("\n")||(_="\n".concat(e.indent))}return k&&!A&&r&&r(),o(S+_+j,e.indent,A)}},{key:"commentBefore",get:function(){return this.key instanceof i?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof i)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}}]),r}(i);Object(n.l)(d,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var h=function e(t,r){if(t instanceof v){var o=r.get(t.source);return o.count*o.aliasCount}if(t instanceof u){var i,a=0,s=Object(n.g)(t.items);try{for(s.s();!(i=s.n()).done;){var c=e(i.value,r);c>a&&(a=c)}}catch(e){s.e(e)}finally{s.f()}return a}if(t instanceof d){var l=e(t.key,r),p=e(t.value,r);return Math.max(l,p)}return 1},v=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),(o=t.call(this)).source=e,o.type=n.e.ALIAS,o}return Object(n.i)(r,null,[{key:"stringify",value:function(e,t){var r=e.range,n=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,c=Object.keys(o).find((function(e){return o[e]===n}));if(!c&&s&&(c=i.anchors.getName(n)||i.anchors.newName()),c)return"*".concat(c).concat(a?" ":"");var l=i.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(l," [").concat(r,"]"))}}]),Object(n.i)(r,[{key:"toJSON",value:function(e,t){if(!t)return a(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.get(this.source);if(!i||void 0===i.res){var s="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new n.v(this.cstNode,s):new ReferenceError(s)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=h(this.source,r)),i.count*i.aliasCount>o)){var c="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new n.v(this.cstNode,c):new ReferenceError(c)}return i.res}},{key:"toString",value:function(e){return r.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),r}(i);function m(e,t){var r,o=t instanceof s?t.value:t,i=Object(n.g)(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a instanceof d){if(a.key===t||a.key===o)return a;if(a.key&&a.key.value===o)return a}}}catch(e){i.e(e)}finally{i.f()}}Object(n.l)(v,"default",!0);var g=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(){return Object(n.j)(this,r),t.apply(this,arguments)}return Object(n.i)(r,[{key:"add",value:function(e,t){e?e instanceof d||(e=new d(e.key||e,e.value)):e=new d(e);var r=m(this.items,e.key),n=this.schema&&this.schema.sortMapEntries;if(r){if(!t)throw new Error("Key ".concat(e.key," already set"));r.value=e.value}else if(n){var o=this.items.findIndex((function(t){return n(e,t)<0}));-1===o?this.items.push(e):this.items.splice(o,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var r=m(this.items,e),n=r&&r.value;return!t&&n instanceof s?n.value:n}},{key:"has",value:function(e){return!!m(this.items,e)}},{key:"set",value:function(e,t){this.add(new d(e,t),!0)}},{key:"toJSON",value:function(e,t,r){var o=r?new r:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(o);var i,a=Object(n.g)(this.items);try{for(a.s();!(i=a.n()).done;){i.value.addToJSMap(t,o)}}catch(e){a.e(e)}finally{a.f()}return o}},{key:"toString",value:function(e,t,o){if(!e)return JSON.stringify(this);var i,a=Object(n.g)(this.items);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!(s instanceof d))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(s)," instead"))}}catch(e){a.e(e)}finally{a.f()}return Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,o)}}]),r}(u),y=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;if(Object(n.j)(this,r),e instanceof d){var i=e.value;i instanceof f||((i=new f).items.push(e.value),i.range=e.value.range),(o=t.call(this,e.key,i)).range=e.range}else o=t.call(this,new s("<<"),new f);return o.type=d.Type.MERGE_PAIR,Object(n.y)(o)}return Object(n.i)(r,[{key:"addToJSMap",value:function(e,t){var r,o=Object(n.g)(this.value.items);try{for(o.s();!(r=o.n()).done;){var i=r.value.source;if(!(i instanceof g))throw new Error("Merge sources must be maps");var a,s=i.toJSON(null,e,Map),c=Object(n.g)(s);try{for(c.s();!(a=c.n()).done;){var l=Object(n.o)(a.value,2),u=l[0],p=l[1];t instanceof Map?t.has(u)||t.set(u,p):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||(t[u]=p)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){o.e(e)}finally{o.f()}return t}},{key:"toString",value:function(e,t){var o=this.value;if(o.items.length>1)return Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,t);this.value=o.items[0];var i=Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,t);return this.value=o,i}}]),r}(d),b={defaultType:n.e.BLOCK_LITERAL,lineWidth:76},x={trueStr:"true",falseStr:"false"},w={asBigInt:!1},k={nullStr:"null"},S={defaultType:n.e.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function O(e,t,r){var o,i=Object(n.g)(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=a.format,l=a.test,u=a.resolve;if(l){var p=e.match(l);if(p){var f=u.apply(null,p);return f instanceof s||(f=new s(f)),c&&(f.format=c),f}}}}catch(e){i.e(e)}finally{i.f()}return r&&(e=r(e)),new s(e)}var A=function(e,t){for(var r=e[t+1];" "===r||"\t"===r;){do{r=e[t+=1]}while(r&&"\n"!==r);r=e[t+1]}return t};function E(e,t,r,n){var o=n.indentAtStart,i=n.lineWidth,a=void 0===i?80:i,s=n.minContentWidth,c=void 0===s?20:s,l=n.onFold,u=n.onOverflow;if(!a||a<0)return e;var p=Math.max(1+c,1+a-t.length);if(e.length<=p)return e;var f,d=[],h={},v=a-("number"==typeof o?o:t.length),m=void 0,g=void 0,y=!1,b=-1;for("block"===r&&-1!==(b=A(e,b))&&(v=b+p);f=e[b+=1];){if("quoted"===r&&"\\"===f)switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}if("\n"===f)"block"===r&&(b=A(e,b)),v=b+p,m=void 0;else{if(" "===f&&g&&" "!==g&&"\n"!==g&&"\t"!==g){var x=e[b+1];x&&" "!==x&&"\n"!==x&&"\t"!==x&&(m=b)}if(b>=v)if(m)d.push(m),v=m+p,m=void 0;else if("quoted"===r){for(;" "===g||"\t"===g;)g=f,f=e[b+=1],y=!0;d.push(b-2),h[b-2]=!0,v=b-2+p,m=void 0}else y=!0}g=f}if(y&&u&&u(),0===d.length)return e;l&&l();for(var w=e.slice(0,d[0]),k=0;kt)return!0;if(r-(o=n+1)<=t)return!1}return!0}(s,S.fold.lineWidth-c.length)),p=u?"|":">";if(!s)return p+"\n";var f="",d="";if(s=s.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?p+="-":s!==e&&t===e.length-1||(p+="+",o&&o()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(p+=l);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,"$&".concat(c))),f&&(f=f.replace(/\n+/g,"$&".concat(c))),i&&(p+=" #"+i.replace(/ ?[\r\n]+/g," "),r&&r()),!s)return"".concat(p).concat(l,"\n").concat(c).concat(d);if(u)return s=s.replace(/\n+/g,"$&".concat(c)),"".concat(p,"\n").concat(c).concat(f).concat(s).concat(d);s=s.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(c));var h=E("".concat(f).concat(s).concat(d),c,"block",S.fold);return"".concat(p,"\n").concat(c).concat(h)}function I(e,t,r,o){var i=S.defaultType,a=t.implicitKey,s=t.inFlow,c=e,l=c.type,u=c.value;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));var p=function(i){switch(i){case n.e.BLOCK_FOLDED:case n.e.BLOCK_LITERAL:return P(e,t,r,o);case n.e.QUOTE_DOUBLE:return T(u,t);case n.e.QUOTE_SINGLE:return C(u,t);case n.e.PLAIN:return function(e,t,r,o){var i=e.comment,a=e.type,s=e.value,c=t.actualString,l=t.implicitKey,u=t.indent,p=t.inFlow;if(l&&/[\n[\]{},]/.test(s)||p&&/[[\]{},]/.test(s))return T(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||p||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?C(s,t):T(s,t):P(e,t,r,o);if(!l&&!p&&a!==n.e.PLAIN&&-1!==s.indexOf("\n"))return P(e,t,r,o);if(""===u&&_(s))return t.forceBlockIndent=!0,P(e,t,r,o);var f=s.replace(/\n+/g,"$&\n".concat(u));if(c){var d=t.doc.schema.tags;if("string"!=typeof O(f,d,d.scalarFallback).value)return T(s,t)}var h=l?f:E(f,u,"flow",j(t));return!i||p||-1===h.indexOf("\n")&&-1===i.indexOf("\n")?h:(r&&r(),function(e,t,r){if(!r)return e;var n=r.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(n,"\n").concat(t).concat(e)}(h,u,i))}(e,t,r,o);default:return null}};l!==n.e.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?l=n.e.QUOTE_DOUBLE:!a&&!s||l!==n.e.BLOCK_FOLDED&&l!==n.e.BLOCK_LITERAL||(l=n.e.QUOTE_DOUBLE);var f=p(l);if(null===f&&null===(f=p(i)))throw new Error("Unsupported default string type ".concat(i));return f}function R(e){var t=e.format,r=e.minFractionDigits,n=e.tag,o=e.value;if("bigint"==typeof o)return String(o);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";var i=JSON.stringify(o);if(!t&&r&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){var a=i.indexOf(".");a<0&&(a=i.length,i+=".");for(var s=r-(i.length-a-1);s-- >0;)i+="0"}return i}function L(e,t){var r,o,i;switch(t.type){case n.e.FLOW_MAP:r="}",o="flow map";break;case n.e.FLOW_SEQ:r="]",o="flow sequence";break;default:return void e.push(new n.n(t,"Not a flow collection!?"))}for(var a=t.items.length-1;a>=0;--a){var s=t.items[a];if(!s||s.type!==n.e.COMMENT){i=s;break}}if(i&&i.char!==r){var c,l="Expected ".concat(o," to end with ").concat(r);"number"==typeof i.offset?(c=new n.n(t,l)).offset=i.offset+1:(c=new n.n(i,l),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function N(e,t){var r=t.context.src[t.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){e.push(new n.n(t,"Comments must be separated from other tokens by white space characters"))}}function M(e,t){var r=String(t),o=r.substr(0,8)+"..."+r.substr(-8);return new n.n(e,'The "'.concat(o,'" key is too long'))}function D(e,t){var r,o=Object(n.g)(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.afterKey,s=i.before,c=i.comment,l=e.items[s];l?(a&&l.value&&(l=l.value),void 0===c?!a&&l.commentBefore||(l.spaceBefore=!0):l.commentBefore?l.commentBefore+="\n"+c:l.commentBefore=c):void 0!==c&&(e.comment?e.comment+="\n"+c:e.comment=c)}}catch(e){o.e(e)}finally{o.f()}}function B(e,t){var r=t.strValue;return r?"string"==typeof r?r:(r.errors.forEach((function(r){r.source||(r.source=t),e.errors.push(r)})),r.str):""}function q(e,t){var r=t.tag,o=t.type,i=!1;if(r){var a=r.handle,s=r.suffix,c=r.verbatim;if(c){if("!"!==c&&"!!"!==c)return c;var l="Verbatim tags aren't resolved, so ".concat(c," is invalid.");e.errors.push(new n.n(t,l))}else if("!"!==a||s)try{return function(e,t){var r=t.tag,o=r.handle,i=r.suffix,a=e.tagPrefixes.find((function(e){return e.handle===o}));if(!a){var s=e.getDefaults().tagPrefixes;if(s&&(a=s.find((function(e){return e.handle===o}))),!a)throw new n.n(t,"The ".concat(o," tag handle is non-default and was not declared."))}if(!i)throw new n.n(t,"The ".concat(o," tag has no suffix."));if("!"===o&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new n.m(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var c=i.match(/^([a-z0-9-]+)\/(.*)/i);return c?"tag:".concat(c[1],".yaml.org,2002:").concat(c[2]):"tag:".concat(i)}}return a.prefix+decodeURIComponent(i)}(e,t)}catch(t){e.errors.push(t)}else i=!0}switch(o){case n.e.BLOCK_FOLDED:case n.e.BLOCK_LITERAL:case n.e.QUOTE_DOUBLE:case n.e.QUOTE_SINGLE:return n.u.STR;case n.e.FLOW_MAP:case n.e.MAP:return n.u.MAP;case n.e.FLOW_SEQ:case n.e.SEQ:return n.u.SEQ;case n.e.PLAIN:return i?n.u.STR:null;default:return null}}function F(e,t,r){var o,i=e.schema.tags,a=[],c=Object(n.g)(i);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(l.tag===r){if(!l.test){var p=l.resolve(e,t);return p instanceof u?p:new s(p)}a.push(l)}}}catch(e){c.e(e)}finally{c.f()}var f=B(e,t);return"string"==typeof f&&a.length>0?O(f,a,i.scalarFallback):null}function z(e,t,r){try{var o=F(e,t,r);if(o)return r&&t.tag&&(o.tag=r),o}catch(r){return r.source||(r.source=t),e.errors.push(r),null}try{var i=function(e){switch(e.type){case n.e.FLOW_MAP:case n.e.MAP:return n.u.MAP;case n.e.FLOW_SEQ:case n.e.SEQ:return n.u.SEQ;default:return n.u.STR}}(t);if(!i)throw new Error("The tag ".concat(r," is unavailable"));var a="The tag ".concat(r," is unavailable, falling back to ").concat(i);e.warnings.push(new n.m(t,a));var s=F(e,t,i);return s.tag=r,s}catch(r){var c=new n.v(t,r.message);return c.stack=r.stack,e.errors.push(c),null}}function U(e,t){var r,o={before:[],after:[]},i=!1,a=!1,s=function(e){if(!e)return!1;var t=e.type;return t===n.e.MAP_KEY||t===n.e.MAP_VALUE||t===n.e.SEQ_ITEM}(t.context.parent)?t.context.parent.props.concat(t.props):t.props,c=Object(n.g)(s);try{for(c.s();!(r=c.n()).done;){var l=r.value,u=l.start,p=l.end;switch(t.context.src[u]){case n.a.COMMENT:if(!t.commentHasRequiredWhitespace(u)){e.push(new n.n(t,"Comments must be separated from other tokens by white space characters"))}var f=t.header,d=t.valueRange;(d&&(u>d.start||f&&u>f.start)?o.after:o.before).push(t.context.src.slice(u+1,p));break;case n.a.ANCHOR:if(i){e.push(new n.n(t,"A node can have at most one anchor"))}i=!0;break;case n.a.TAG:if(a){e.push(new n.n(t,"A node can have at most one tag"))}a=!0}}}catch(e){c.e(e)}finally{c.f()}return{comments:o,hasAnchor:i,hasTag:a}}function $(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var r=U(e.errors,t),o=r.comments,i=r.hasAnchor,a=r.hasTag;if(i){var s=e.anchors,c=t.anchor,l=s.getNode(c);l&&(s.map[s.newName(c)]=l),s.map[c]=t}if(t.type===n.e.ALIAS&&(i||a)){e.errors.push(new n.n(t,"An alias node must not specify any properties"))}var u=function(e,t){var r=e.anchors,o=e.errors,i=e.schema;if(t.type===n.e.ALIAS){var a=t.rawValue,s=r.getNode(a);if(!s){var c="Aliased anchor not found: ".concat(a);return o.push(new n.v(t,c)),null}var l=new v(s);return r._cstAliases.push(l),l}var u=q(e,t);if(u)return z(e,t,u);if(t.type!==n.e.PLAIN){var p="Failed to resolve ".concat(t.type," node here");return o.push(new n.f(t,p)),null}try{return O(B(e,t),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=t),o.push(e),null}}(e,t);if(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);var p=o.before.join("\n");p&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(p):p);var f=o.after.join("\n");f&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(f):f)}return t.resolved=u}function H(e,t){if(t.type!==n.e.MAP&&t.type!==n.e.FLOW_MAP){var r="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new n.f(t,r)),null}var o=t.type===n.e.FLOW_MAP?function(e,t){for(var r=[],o=[],i=void 0,a=!1,s="{",c=0;c0){(l=new n.c(n.e.PLAIN,[])).context={parent:c,src:c.context.src};var u=c.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},"number"==typeof c.range.origStart){var p=c.range.origStart+1;l.range.origStart=l.range.origEnd=p,l.valueRange.origStart=l.valueRange.origEnd=p}}var f=new d(i,$(e,l));W(c,f),o.push(f),i&&"number"==typeof a&&c.range.start>a+1024&&e.errors.push(M(t,i)),i=void 0,a=null;break;default:void 0!==i&&o.push(new d(i)),i=$(e,c),a=c.range.start,c.error&&e.errors.push(c.error);e:for(var h=s+1;;++h){var v=t.items[h];switch(v&&v.type){case n.e.BLANK_LINE:case n.e.COMMENT:continue e;case n.e.MAP_VALUE:break e;default:e.errors.push(new n.n(c,"Implicit map keys need to be followed by map values"));break e}}if(c.valueRangeContainsNewline){e.errors.push(new n.n(c,"Implicit map keys need to be on a single line"))}}}void 0!==i&&o.push(new d(i));return{comments:r,items:o}}(e,t),i=o.comments,a=o.items,s=new g;s.items=a,D(s,i);for(var c=!1,l=0;lo.valueRange.start)return!1;if(i[s]!==n.a.COMMENT)return!1;for(var c=r;cs+1024&&e.errors.push(M(t,a));for(var g=l.context.src,y=s;ye.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}})),o=(n.defaults,n.getDefaults,n.changeDefaults,/[&<>"']/),i=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return c[e]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var f=/(^|[^\[])\^/g,d=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,v={},m=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){v[" "+e]||(m.test(e)?v[" "+e]=e+"/":v[" "+e]=x(e,"/",!0));var r=-1===(e=v[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(y,"$1")+t:e+t}function x(e,t,r){var n=e.length;if(0===n)return"";for(var o=0;o=0&&"\\"===r[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e},I=n.defaults,R=_,L=j,N=w,M=T;function D(e,t,r){var n=t.href,o=t.title?N(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:r,href:n,title:o,text:i}:{type:"image",raw:r,href:n,title:o,text:N(i)}}var B=function(){function e(e){this.options=e||I}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var r=this.rules.block.code.exec(e);if(r){var n=t[t.length-1];if(n&&"paragraph"===n.type)return{raw:r[0],text:r[0].trimRight()};var o=r[0].replace(/^ {4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:R(o,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var r={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(r.header.length===r.align.length){var n,o=r.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:t[0],text:r}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,o,i,a,s,c,l,u=t[0],p=t[2],f=p.length>1,d={type:"list",raw:u,ordered:f,start:f?+p.slice(0,-1):"",loose:!1,items:[]},h=t[0].match(this.rules.block.item),v=!1,m=h.length;o=this.rules.block.listItemStart.exec(h[0]);for(var g=0;go[0].length||i[1].length>3){h.splice(g,2,h[g]+"\n"+h[g+1]),g--,m--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==p[p.length-1]:f===(1===i[2].length))&&(a=h.slice(g+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-a.length),g=m-1),o=i}n=r.length,~(r=r.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=r.length,r=this.options.pedantic?r.replace(/^ {1,4}/gm,""):r.replace(new RegExp("^ {1,"+n+"}","gm"),"")),s=v||/\n\n(?!\s*$)/.test(r),g!==m-1&&(v="\n"===r.charAt(r.length-1),s||(s=v)),s&&(d.loose=!0),this.options.gfm&&(l=void 0,(c=/^\[[ xX]\] /.test(r))&&(l=" "!==r[1],r=r.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:u,task:c,checked:l,loose:s,text:r})}return d}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,o=r.align.length;for(n=0;n/i.test(n[0])&&(t=!1),!r&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?r=!0:r&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(r=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:t,inRawBlock:r,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]):n[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=M(t[2],"()");if(r>-1){var n=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,n).trim(),t[3]=""}var o=t[2],i="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a?(o=a[1],i=a[3]):i=""}else i=t[3]?t[3].slice(1,-1):"";return D(t,{href:(o=o.trim().replace(/^<([\s\S]*)>$/,"$1"))?o.replace(this.rules.inline._escapes,"$1"):o,title:i?i.replace(this.rules.inline._escapes,"$1"):i},t[0])}},t.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return D(r,n,r[0])}},t.strong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.strong.start.exec(e);if(n&&(!n[1]||n[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){t=t.slice(-1*e.length);var o,i="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(i.lastIndex=0;null!=(n=i.exec(t));)if(o=this.rules.inline.strong.middle.exec(t.slice(0,n.index+3)))return{type:"strong",raw:e.slice(0,o[0].length),text:e.slice(2,o[0].length-2)}}},t.em=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.em.start.exec(e);if(n&&(!n[1]||n[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){t=t.slice(-1*e.length);var o,i="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(i.lastIndex=0;null!=(n=i.exec(t));)if(o=this.rules.inline.em.middle.exec(t.slice(0,n.index+2)))return{type:"em",raw:e.slice(0,o[0].length),text:e.slice(1,o[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),o=r.startsWith(" ")&&r.endsWith(" ");return n&&o&&(r=r.substring(1,r.length-1)),r=N(r,!0),{type:"codespan",raw:t[0],text:r}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var r,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(r=N(this.options.mangle?t(o[1]):o[1])):r=N(o[1]),{type:"link",raw:o[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},t.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,o;if("@"===r[2])o="mailto:"+(n=N(this.options.mangle?t(r[0]):r[0]));else{var i;do{i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(i!==r[0]);n=N(r[0]),o="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t,r){var n,o=this.rules.inline.text.exec(e);if(o)return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):N(o[0]):o[0]:N(this.options.smartypants?r(o[0]):o[0]),{type:"text",raw:o[0],text:n}},e}(),q=A,F=S,z=E,U={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:q,table:q,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};U.def=F(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,U.item=F(U.item,"gm").replace(/bull/g,U.bullet).getRegex(),U.listItemStart=F(/^( *)(bull)/).replace("bull",U.bullet).getRegex(),U.list=F(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U._comment=/|$)/,U.html=F(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.paragraph=F(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.blockquote=F(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal=z({},U),U.gfm=z({},U.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),U.gfm.nptable=F(U.gfm.nptable).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.gfm.table=F(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.pedantic=z({},U.normal,{html:F("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:q,paragraph:F(U.normal._paragraph).replace("hr",U.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:q,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:q,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};$.punctuation=F($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$._comment=F(U._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$.em.start=F($.em.start).replace(/punctuation/g,$._punctuation).getRegex(),$.em.middle=F($.em.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.em.endAst=F($.em.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.em.endUnd=F($.em.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.start=F($.strong.start).replace(/punctuation/g,$._punctuation).getRegex(),$.strong.middle=F($.strong.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.strong.endAst=F($.strong.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.endUnd=F($.strong.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=F($._blockSkip,"g").getRegex(),$.overlapSkip=F($._overlapSkip,"g").getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$.autolink=F($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=F($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=F($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=F($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=F($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=z({},$),$.pedantic=z({},$.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=z({},$.normal,{escape:F($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var Q=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||W,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:V.normal,inline:Y.normal};this.options.pedantic?(t.block=V.pedantic,t.inline=Y.pedantic):this.options.gfm&&(t.block=V.gfm,this.options.breaks?t.inline=Y.breaks:t.inline=Y.gfm),this.tokenizer.rules=t}t.lex=function(e,r){return new t(r).lex(e)},t.lexInline=function(e,r){return new t(r).inlineTokens(e)};var r,n,o,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,r){var n,o,i,a;for(void 0===t&&(t=[]),void 0===r&&(r=!0),e=e.replace(/^ +$/gm,"");e;)if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e,t))e=e.substring(n.raw.length),n.type?t.push(n):((a=t[t.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.nptable(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],r),t.push(n);else if(n=this.tokenizer.list(e)){for(e=e.substring(n.raw.length),i=n.items.length,o=0;o0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+K("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+K("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(a||(s=""),a=!1,o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e,r,n))e=e.substring(o.raw.length),r=o.inLink,n=o.inRawBlock,t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),t.push(o);else if(o=this.tokenizer.strong(e,c,s))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.em(e,c,s))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.autolink(e,J))e=e.substring(o.raw.length),t.push(o);else if(r||!(o=this.tokenizer.url(e,J))){if(o=this.tokenizer.inlineText(e,n,G))e=e.substring(o.raw.length),s=o.raw.slice(-1),a=!0,t.push(o);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else e=e.substring(o.raw.length),t.push(o);return t},r=t,o=[{key:"rules",get:function(){return{block:V,inline:Y}}}],(n=null)&&e(r.prototype,n),o&&e(r,o),t}(),X=n.defaults,Z=O,ee=w,te=function(){function e(e){this.options=e||X}var t=e.prototype;return t.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(r=!0,e=o)}return n?'
'+(r?e:ee(e,!0))+"
\n":"
"+(r?e:ee(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,r){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return r;var n='"},t.image=function(e,t,r){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return r;var n=''+r+'":">"},t.text=function(e){return e},e}(),re=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),ne=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),oe=n.defaults,ie=k,ae=function(){function e(e){this.options=e||oe,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new re,this.slugger=new ne}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,o,i,a,s,c,l,u,p,f,d,h,v,m,g,y,b,x="",w=e.length;for(r=0;r0&&"text"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(m.tokens,h),u+=this.renderer.listitem(v,y,g);x+=this.renderer.list(u,f,d);continue;case"html":x+=this.renderer.html(p.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;r+1An error occurred:

    "+le(e.message+"",!0)+"
    ";throw e}}return de.options=de.setOptions=function(e){return se(de.defaults,e),pe(de.defaults),de},de.getDefaults=ue,de.defaults=fe,de.use=function(e){var t=se({},e);if(e.renderer&&function(){var r=de.defaults.renderer||new te,n=function(t){var n=r[t];r[t]=function(){for(var o=arguments.length,i=new Array(o),a=0;aAn error occurred:

    "+le(e.message+"",!0)+"
    ";throw e}},de.Parser=ae,de.parser=ae.parse,de.Renderer=te,de.TextRenderer=re,de.Lexer=Q,de.lexer=Q.lex,de.Tokenizer=B,de.Slugger=ne,de.parse=de,de}()},function(e,t,r){e.exports=r(444)},function(e,t,r){e.exports=r(428)},function(e,t,r){e.exports=r(429)},function(e,t,r){"use strict";var n=r(16),o=r(69).f,i=r(193),a=r(12),s=r(85),c=r(37),l=r(29),u=function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,p,f,d,h,v,m,g,y=e.target,b=e.global,x=e.stat,w=e.proto,k=b?n:x?n[y]:(n[y]||{}).prototype,S=b?a:a[y]||(a[y]={}),O=S.prototype;for(f in t)r=!i(b?f:y+(x?".":"#")+f,e.forced)&&k&&l(k,f),h=S[f],r&&(v=e.noTargetGet?(g=o(k,f))&&g.value:k[f]),d=r&&v?v:t[f],r&&typeof h==typeof d||(m=e.bind&&r?s(d,n):e.wrap&&r?u(d):w&&"function"==typeof d?s(Function.call,d):d,(e.sham||d&&d.sham||h&&h.sham)&&c(m,"sham",!0),S[f]=m,w&&(l(a,p=y+"Prototype")||c(a,p,{}),a[p][f]=d,e.real&&O&&!O[f]&&c(O,f,d)))}},function(e,t,r){var n=r(136),o=r(325),i=r(329),a=r(334),s=r(206),c=r(348),l=r(209),u=r(211),p=r(172);function f(e,t){var r=u(e);if(l){var n=l(e);t&&(n=c(n).call(n,(function(t){return s(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t1){throw new o.n(t,"Each pair must have its own sequence indicator")}var s=a.items[0]||new i.e;a.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(a.commentBefore,"\n").concat(s.commentBefore):a.commentBefore),a.comment&&(s.comment=s.comment?"".concat(a.comment,"\n").concat(s.comment):a.comment),a=s}r.items[n]=a instanceof i.e?a:new i.e(a)}}return r}function c(e,t,r){var n=new i.g(e);n.tag="tag:yaml.org,2002:pairs";var a,s=Object(o.g)(t);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=void 0,u=void 0;if(Array.isArray(c)){if(2!==c.length)throw new TypeError("Expected [key, value] tuple: ".concat(c));l=c[0],u=c[1]}else if(c&&c instanceof Object){var p=Object.keys(c);if(1!==p.length)throw new TypeError("Expected { key: value } tuple: ".concat(c));u=c[l=p[0]]}else l=c;var f=e.createPair(l,u,r);n.items.push(f)}}catch(e){s.e(e)}finally{s.f()}return n}var l={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:c},u=function(e){Object(o.q)(r,e);var t=Object(o.r)(r);function r(){var e;return Object(o.j)(this,r),e=t.call(this),Object(o.l)(Object(o.w)(e),"add",i.k.prototype.add.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"delete",i.k.prototype.delete.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"get",i.k.prototype.get.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"has",i.k.prototype.has.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"set",i.k.prototype.set.bind(Object(o.w)(e))),e.tag=r.tag,e}return Object(o.i)(r,[{key:"toJSON",value:function(e,t){var r=new Map;t&&t.onCreate&&t.onCreate(r);var n,a=Object(o.g)(this.items);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=void 0,l=void 0;if(s instanceof i.e?(c=Object(i.w)(s.key,"",t),l=Object(i.w)(s.value,c,t)):c=Object(i.w)(s,"",t),r.has(c))throw new Error("Ordered maps must not include duplicate keys");r.set(c,l)}}catch(e){a.e(e)}finally{a.f()}return r}}]),r}(i.g);Object(o.l)(u,"tag","tag:yaml.org,2002:omap");var p={identify:function(e){return e instanceof Map},nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var r,n=s(e,t),a=[],c=Object(o.g)(n.items);try{for(c.s();!(r=c.n()).done;){var l=r.value.key;if(l instanceof i.f){if(a.includes(l.value)){throw new o.n(t,"Ordered maps must not include duplicate keys")}a.push(l.value)}}}catch(e){c.e(e)}finally{c.f()}return Object.assign(new u,n)},createNode:function(e,t,r){var n=c(e,t,r),o=new u;return o.items=n.items,o}},f=function(e){Object(o.q)(r,e);var t=Object(o.r)(r);function r(){var e;return Object(o.j)(this,r),(e=t.call(this)).tag=r.tag,e}return Object(o.i)(r,[{key:"add",value:function(e){var t=e instanceof i.e?e:new i.e(e);Object(i.s)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var r=Object(i.s)(this.items,e);return!t&&r instanceof i.e?r.key instanceof i.f?r.key.value:r.key:r}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Object(o.h)(t)));var r=Object(i.s)(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new i.e(e))}},{key:"toJSON",value:function(e,t){return Object(o.s)(Object(o.t)(r.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return Object(o.s)(Object(o.t)(r.prototype),"toString",this).call(this,e,t,n);throw new Error("Set items must all have null values")}}]),r}(i.k);Object(o.l)(f,"tag","tag:yaml.org,2002:set");var d={identify:function(e){return e instanceof Set},nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var r=Object(i.n)(e,t);if(!r.hasAllNullValues())throw new o.n(t,"Set items must all have null values");return Object.assign(new f,r)},createNode:function(e,t,r){var n,i=new f,a=Object(o.g)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.items.push(e.createPair(s,null,r))}}catch(e){a.e(e)}finally{a.f()}return i}},h=function(e,t){var r=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-r:r},v=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(i.r)(t);var r="";t<0&&(r="-",t=Math.abs(t));var n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),r+n.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},m={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return h(t,r.replace(/_/g,""))},stringify:v},g={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,r){return h(t,r.replace(/_/g,""))},stringify:v},y={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,r,n,o,i,a,s,c){s&&(s=(s+"00").substr(1,3));var l=Date.UTC(t,r-1,n,o||0,i||0,a||0,s||0);if(c&&"Z"!==c){var u=h(c[0],c.slice(1));Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function b(e){var t=void 0!==n&&n.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function x(e,t){if(b(!1)){var r=void 0!==n&&n.emitWarning;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var w={};function k(e,t){if(!w[e]&&b(!0)){w[e]=!0;var r="The option '".concat(e,"' will be removed in a future release");x(r+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}}).call(this,r(32).Buffer,r(41))},function(e,t,r){var n=r(13);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){e.exports=r(562)},function(e,t,r){e.exports=r(440)},function(e,t,r){e.exports=r(572)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(12);e.exports=function(e){return n[e+"Prototype"]}},function(e,t,r){(function(t){var r=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,r=0,n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach);S+=k.value.length,k=k.next){var O=k.value;if(r.length>t.length)return;if(!(O instanceof o)){var A=1;if(g&&k!=r.tail.prev){if(w.lastIndex=S,!(C=w.exec(t)))break;var E=C.index+(m&&C[1]?C[1].length:0),j=C.index+C[0].length,_=S;for(_+=k.value.length;E>=_;)k=k.next,_+=k.value.length;if(_-=k.value.length,S=_,k.value instanceof o)continue;for(var T=k;T!==r.tail&&(_u.reach&&(u.reach=L);var N=k.prev;I&&(N=a(r,N,I),S+=I.length),s(r,N,A);var M=new o(p,v?n.tokenize(P,v):P,b,P);k=a(r,N,M),R&&a(r,k,R),A>1&&e(t,r,i,k.prev,S,{cause:p+","+d,reach:L})}}}}}}(e,l,t,l.head,0),function(e){var t=[],r=e.head.next;for(;r!==e.tail;)t.push(r.value),r=r.next;return t}(l)},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var o,i=0;o=r[i++];)o(t)}},Token:o};function o(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function a(e,t,r){var n=t.next,o={value:r,prev:t,next:n};return t.next=o,n.prev=o,e.length++,o}function s(e,t,r){for(var n=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),o=r.language,i=r.code,a=r.immediateClose;e.postMessage(n.highlight(i,n.languages[o],o)),a&&e.close()}),!1),n):n;var c=n.util.currentScript();function l(){n.manual||n.highlightAll()}if(c&&(n.filename=c.src,c.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var u=document.readyState;"loading"===u||"interactive"===u&&c&&c.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return n}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}); +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,t){if(!w[e]||!x[e])return;for(var r in x[e]=!1,t)Object.prototype.hasOwnProperty.call(t,r)&&(h[r]=t[r]);0==--g&&0===y&&A()}(e,r),t&&t(e,r)};var r,n=!0,o="a11dd1846ee4bf4d0652",i={},a=[],s=[];function c(e){var t=T[e];if(!t)return C;var n=function(n){return t.hot.active?(T[n]?-1===T[n].parents.indexOf(e)&&T[n].parents.push(e):(a=[e],r=n),-1===t.children.indexOf(n)&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),a=[]),C(n)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return C[e]},set:function(t){C[e]=t}}};for(var i in C)Object.prototype.hasOwnProperty.call(C,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(n,i,o(i));return n.e=function(e){return"ready"===p&&f("prepare"),y++,C.e(e).then(t,(function(e){throw t(),e}));function t(){y--,"prepare"===p&&(b[e]||O(e),0===y&&0===g&&A())}},n.t=function(e,t){return 1&t&&(e=n(e)),C.t(e,-2&t)},n}function l(t){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==t,active:!0,accept:function(e,t){if(void 0===e)n._selfAccepted=!0;else if("function"==typeof e)n._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&n._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(h={})[t]=e[t],f("ready");break;case"ready":_(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:S,apply:E,status:function(e){if(!e)return p;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:i[t]};return r=void 0,n}var u=[],p="idle";function f(e){p=e;for(var t=0;t0;){var o=n.pop(),i=o.id,a=o.chain;if((u=T[i])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(u.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var s=0;s ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(E=new Error("Aborted because of self decline: "+A.moduleId+I));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(E=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+I));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(E=new Error("Aborted because "+p+" is not accepted"+I));break;case"accepted":n.onAccepted&&n.onAccepted(A),_=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),P=!0;break;default:throw new Error("Unexception type "+A.type)}if(E)return f("abort"),Promise.reject(E);if(_)for(p in x[p]=h[p],g(b,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,p)&&(y[p]||(y[p]=[]),g(y[p],A.outdatedDependencies[p]));P&&(g(b,[A.moduleId]),x[p]=S)}var R,L=[];for(c=0;c0;)if(p=D.pop(),u=T[p]){var B={},q=u.hot._disposeHandlers;for(l=0;l=0&&F.parents.splice(R,1))}}for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=T[p]))for(M=y[p],l=0;l=0&&u.children.splice(R,1);f("apply"),void 0!==v&&(o=v,v=void 0);for(p in h=void 0,x)Object.prototype.hasOwnProperty.call(x,p)&&(e[p]=x[p]);var z=null;for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=T[p])){M=y[p];var U=[];for(c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}r.d(t,"a",(function(){return A})),r.d(t,"b",(function(){return L})),r.d(t,"c",(function(){return F})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return E})),r.d(t,"f",(function(){return B})),r.d(t,"g",(function(){return O})),r.d(t,"h",(function(){return n})),r.d(t,"i",(function(){return a})),r.d(t,"j",(function(){return o})),r.d(t,"k",(function(){return j})),r.d(t,"l",(function(){return s})),r.d(t,"m",(function(){return q})),r.d(t,"n",(function(){return D})),r.d(t,"o",(function(){return y})),r.d(t,"p",(function(){return N})),r.d(t,"q",(function(){return c})),r.d(t,"r",(function(){return m})),r.d(t,"s",(function(){return g})),r.d(t,"t",(function(){return l})),r.d(t,"u",(function(){return _})),r.d(t,"v",(function(){return M})),r.d(t,"w",(function(){return h})),r.d(t,"x",(function(){return b})),r.d(t,"y",(function(){return v}));var A={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},E={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},j="tag:yaml.org,2002:",_={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function T(e){for(var t=[0],r=e.indexOf("\n");-1!==r;)r+=1,t.push(r),r=e.indexOf("\n",r);return t}function C(e){var t,r;return"string"==typeof e?(t=T(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=T(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function P(e,t){if("number"!=typeof e||e<0)return null;var r=C(t),n=r.lineStarts,o=r.src;if(!n||!o||e>o.length)return null;for(var i=0;i=1)||e>n.length)return null;for(var i=n[e-1],a=n[e];a&&a>i&&"\n"===o[a-1];)--a;return o.slice(i,a)}var R=function(){function e(t,r){o(this,e),this.start=t,this.end=r||t}return a(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var r=this.start,n=this.end;if(0===e.length||n<=e[0])return this.origStart=r,this.origEnd=n,t;for(var o=t;or);)++o;this.origStart=r+o;for(var i=o;o=n);)++o;return this.origEnd=n+o,i}}]),e}(),L=function(){function e(t,r,n){o(this,e),Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=r||[],this.type=t,this.value=null}return a(e,null,[{key:"addStringTerminator",value:function(t,r,n){if("\n"===n[n.length-1])return n;var o=e.endOfWhiteSpace(t,r);return o>=t.length||"\n"===t[o]?n+"\n":n}},{key:"atDocumentBoundary",value:function(e,t,r){var n=e[t];if(!n)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(r){if(n!==r)return!1}else if(n!==A.DIRECTIVES_END&&n!==A.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==n||a!==n)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var r=e[t],n="<"===r,o=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];r&&-1===o.indexOf(r);)r=e[t+=1];return n&&">"===r&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var r=e[t];" "===r;)r=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var r=e[t];r&&"\n"!==r;)r=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var r=e[t];"\t"===r||" "===r;)r=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var r=e[t-1];if("\n"===r)return t;for(;r&&"\n"!==r;)r=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,r,n){var o=e.endOfIndent(t,n);if(o>n+r)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,r){var n=e[t];return"\n"===n||"\t"===n||" "===n||r&&!n}},{key:"nextNodeIsIndented",value:function(e,t,r){return!(!e||t<0)&&(t>0||r&&"-"===e)}},{key:"normalizeOffset",value:function(t,r){var n=t[r];return n?"\n"!==n&&"\n"===t[r-1]?r-1:e.endOfWhiteSpace(t,r):r}},{key:"foldNewline",value:function(t,r,n){for(var o=0,i=!1,a="",s=t[r+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,r+=1,a+="\n";break;case"\t":o<=n&&(i=!0),r=e.endOfWhiteSpace(t,r+2)-1;break;case" ":o+=1,r+=1}s=t[r+1]}return a||(a=" "),s&&o<=n&&(i=!0),{fold:a,offset:r,error:i}}}]),a(e,[{key:"getPropValue",value:function(e,t,r){if(!this.context)return null;var n=this.context.src,o=this.props[e];return o&&n[o.start]===t?n.slice(o.start+(r?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var r=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var n=this.valueRange.end;return t!==n||e.atBlank(r,n-1)}},{key:"parseComment",value:function(t){var r=this.context.src;if(r[t]===A.COMMENT){var n=e.endOfLine(r,t+1),o=new R(t,n);return this.props.push(o),n}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(r){return r.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,r=this.range,n=this.value;if(null!=n)return n;var o=t.slice(r.start,r.end);return e.addStringTerminator(t,r.end,o)}},{key:"anchor",get:function(){for(var e=0;e0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t2&&void 0!==arguments[2]?arguments[2]:80,i=I(r.line,t);if(!i)return null;var a=r.col;if(i.length>o)if(a<=o-10)i=i.substr(0,o-1)+"…";else{var s=Math.round(o/2);i.length>a+s&&(i=i.substr(0,a+s-1)+"…"),a-=i.length-o,i="…"+i.substr(1-o)}var c=1,l="";n&&(n.line===r.line&&a+(n.col-r.col)<=o+1?c=n.col-r.col:(c=Math.min(i.length+1,o)-a,l="…"));var u=a>1?" ".repeat(a-1):"",p="^".repeat(c);return"".concat(i,"\n").concat(u).concat(p).concat(l)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),r}(d(Error)),M=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLReferenceError",e,n)}return r}(N),D=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSemanticError",e,n)}return r}(N),B=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLSyntaxError",e,n)}return r}(N),q=function(e){c(r,e);var t=m(r);function r(e,n){return o(this,r),t.call(this,"YAMLWarning",e,n)}return r}(N),F=function(e){c(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return a(r,[{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,o=t.inFlow,i=t.src,a=e,s=e,c=i[a];"\n"===c&&!L.atDocumentBoundary(i,a+1);c=i[a]){var l=L.endOfBlockIndent(i,n,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=r.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var n=e.inFlow,o=e.src,i=t,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=r.endOfLine(o,t,n)),this.valueRange=new R(t,i),i=L.endOfWhiteSpace(o,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,n=this.context.src,o=n[r-1];tl?n.slice(l,a+1):s)}else i+=s}var p=n[t];switch(p){case"\t":return{errors:[new D(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":var f="Plain value cannot start with reserved character ".concat(p);return{errors:[new D(this,f)],str:i};default:return i}}}],[{key:"endOfLine",value:function(e,t,r){for(var n=e[t],o=t;n&&"\n"!==n&&(!r||"["!==n&&"]"!==n&&"{"!==n&&"}"!==n&&","!==n);){var i=e[o+1];if(":"===n&&(!i||"\n"===i||"\t"===i||" "===i||r&&","===i))break;if((" "===n||"\t"===n)&&"#"===i)break;o+=1,n=i}return o}}]),r}(L)},function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return d})),r.d(t,"f",(function(){return s})),r.d(t,"g",(function(){return f})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return b})),r.d(t,"j",(function(){return I})),r.d(t,"k",(function(){return g})),r.d(t,"l",(function(){return l})),r.d(t,"m",(function(){return o})),r.d(t,"n",(function(){return H})),r.d(t,"o",(function(){return V})),r.d(t,"p",(function(){return w})),r.d(t,"q",(function(){return B})),r.d(t,"r",(function(){return R})),r.d(t,"s",(function(){return m})),r.d(t,"t",(function(){return k})),r.d(t,"u",(function(){return $})),r.d(t,"v",(function(){return S})),r.d(t,"w",(function(){return a}));var n=r(0);function o(e,t,r){return r?-1===r.indexOf("\n")?"".concat(e," #").concat(r):"".concat(e,"\n")+r.replace(/^/gm,"".concat(t||"","#")):e}var i=function e(){Object(n.j)(this,e)};function a(e,t,r){if(Array.isArray(e))return e.map((function(e,t){return a(e,String(t),r)}));if(e&&"function"==typeof e.toJSON){var n=r&&r.anchors&&r.anchors.get(e);n&&(r.onCreate=function(e){n.res=e,delete r.onCreate});var o=e.toJSON(t,r);return n&&r.onCreate&&r.onCreate(o),o}return r&&r.keep||"bigint"!=typeof e?e:Number(e)}var s=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),(o=t.call(this)).value=e,o}return Object(n.i)(r,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:a(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),r}(i);function c(e,t,r){for(var n=r,o=t.length-1;o>=0;--o){var i=t[o],a=Number.isInteger(i)&&i>=0?[]:{};a[i]=n,n=a}return e.createNode(n,!1)}var l=function(e){return null==e||"object"===Object(n.h)(e)&&e[Symbol.iterator]().next().done},u=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),o=t.call(this),Object(n.l)(Object(n.w)(o),"items",[]),o.schema=e,o}return Object(n.i)(r,[{key:"addIn",value:function(e,t){if(l(e))this.add(t);else{var o=Object(n.x)(e),i=o[0],a=o.slice(1),s=this.get(i,!0);if(s instanceof r)s.addIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(a));this.set(i,c(this.schema,a,t))}}}},{key:"deleteIn",value:function(e){var t=Object(n.x)(e),o=t[0],i=t.slice(1);if(0===i.length)return this.delete(o);var a=this.get(o,!0);if(a instanceof r)return a.deleteIn(i);throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i))}},{key:"getIn",value:function(e,t){var o=Object(n.x)(e),i=o[0],a=o.slice(1),c=this.get(i,!0);return 0===a.length?!t&&c instanceof s?c.value:c:c instanceof r?c.getIn(a,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=Object(n.x)(e),o=t[0],i=t.slice(1);if(0===i.length)return this.has(o);var a=this.get(o,!0);return a instanceof r&&a.hasIn(i)}},{key:"setIn",value:function(e,t){var o=Object(n.x)(e),i=o[0],a=o.slice(1);if(0===a.length)this.set(i,t);else{var s=this.get(i,!0);if(s instanceof r)s.setIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(a));this.set(i,c(this.schema,a,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,i,a){var s=this,c=t.blockItem,l=t.flowChars,u=t.isMap,p=t.itemIndent,f=e,d=f.indent,h=f.indentStep,v=f.stringify,m=this.type===n.e.FLOW_MAP||this.type===n.e.FLOW_SEQ||e.inFlow;m&&(p+=h);var g=u&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:g,indent:p,inFlow:m,type:null});var y,b=!1,x=!1,w=this.items.reduce((function(t,r,n){var i;r&&(!b&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),r.comment&&(i=r.comment),m&&(!b&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(x=!0)),b=!1;var a=v(r,e,(function(){return i=null}),(function(){return b=!0}));return m&&!x&&a.includes("\n")&&(x=!0),m&&nr.maxFlowStringSingleLineLength){y=k;var A,E=Object(n.g)(O);try{for(E.s();!(A=E.n()).done;){var j=A.value;y+=j?"\n".concat(h).concat(d).concat(j):"\n"}}catch(e){E.e(e)}finally{E.f()}y+="\n".concat(d).concat(S)}else y="".concat(k," ").concat(O.join(" ")," ").concat(S)}else{var _=w.map(c);y=_.shift();var T,C=Object(n.g)(_);try{for(C.s();!(T=C.n()).done;){var P=T.value;y+=P?"\n".concat(d).concat(P):"\n"}}catch(e){C.e(e)}finally{C.f()}}return this.comment?(y+="\n"+this.comment.replace(/^/gm,"".concat(d,"#")),i&&i()):b&&a&&a(),y}}]),r}(i);function p(e){var t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}Object(n.l)(u,"maxFlowStringSingleLineLength",60);var f=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(){return Object(n.j)(this,r),t.apply(this,arguments)}return Object(n.i)(r,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=p(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var r=p(e);if("number"==typeof r){var n=this.items[r];return!t&&n instanceof s?n.value:n}}},{key:"has",value:function(e){var t=p(e);return"number"==typeof t&&t1&&void 0!==arguments[1]?arguments[1]:null;return Object(n.j)(this,r),(o=t.call(this)).key=e,o.value=i,o.type=r.Type.PAIR,o}return Object(n.i)(r,[{key:"addToJSMap",value:function(e,t){var r=a(this.key,"",e);if(t instanceof Map){var o=a(this.value,r,e);t.set(r,o)}else if(t instanceof Set)t.add(r);else{var s=function(e,t,r){return null===t?"":"object"!==Object(n.h)(t)?String(t):e instanceof i&&r&&r.doc?e.toString({anchors:{},doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t)}(this.key,r,e);t[s]=a(this.value,s,e)}return t}},{key:"toJSON",value:function(e,t){var r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}},{key:"toString",value:function(e,t,r){if(!e||!e.doc)return JSON.stringify(this);var a=e.doc.options,c=a.indent,l=a.indentSeq,p=a.simpleKeys,d=this.key,h=this.value,v=d instanceof i&&d.comment;if(p){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof u){throw new Error("With simple keys, collection cannot be used as a key value")}}var m=!p&&(!d||v||d instanceof u||d.type===n.e.BLOCK_FOLDED||d.type===n.e.BLOCK_LITERAL),g=e,y=g.doc,b=g.indent,x=g.indentStep,w=g.stringify;e=Object.assign({},e,{implicitKey:!m,indent:b+x});var k=!1,S=w(d,e,(function(){return v=null}),(function(){return k=!0}));if(S=o(S,e.indent,v),e.allNullValues&&!p)return this.comment?(S=o(S,e.indent,this.comment),t&&t()):k&&!v&&r&&r(),e.inFlow?S:"? ".concat(S);S=m?"? ".concat(S,"\n").concat(b,":"):"".concat(S,":"),this.comment&&(S=o(S,e.indent,this.comment),t&&t());var O="",A=null;if(h instanceof i){if(h.spaceBefore&&(O="\n"),h.commentBefore){var E=h.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));O+="\n".concat(E)}A=h.comment}else h&&"object"===Object(n.h)(h)&&(h=y.schema.createNode(h,!0));e.implicitKey=!1,!m&&!this.comment&&h instanceof s&&(e.indentAtStart=S.length+1),k=!1,!l&&c>=2&&!e.inFlow&&!m&&h instanceof f&&h.type!==n.e.FLOW_SEQ&&!h.tag&&!y.anchors.getName(h)&&(e.indent=e.indent.substr(2));var j=w(h,e,(function(){return A=null}),(function(){return k=!0})),_=" ";if(O||this.comment)_="".concat(O,"\n").concat(e.indent);else if(!m&&h instanceof u){("["===j[0]||"{"===j[0])&&!j.includes("\n")||(_="\n".concat(e.indent))}return k&&!A&&r&&r(),o(S+_+j,e.indent,A)}},{key:"commentBefore",get:function(){return this.key instanceof i?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof i)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}}]),r}(i);Object(n.l)(d,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var h=function e(t,r){if(t instanceof v){var o=r.get(t.source);return o.count*o.aliasCount}if(t instanceof u){var i,a=0,s=Object(n.g)(t.items);try{for(s.s();!(i=s.n()).done;){var c=e(i.value,r);c>a&&(a=c)}}catch(e){s.e(e)}finally{s.f()}return a}if(t instanceof d){var l=e(t.key,r),p=e(t.value,r);return Math.max(l,p)}return 1},v=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;return Object(n.j)(this,r),(o=t.call(this)).source=e,o.type=n.e.ALIAS,o}return Object(n.i)(r,null,[{key:"stringify",value:function(e,t){var r=e.range,n=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,c=Object.keys(o).find((function(e){return o[e]===n}));if(!c&&s&&(c=i.anchors.getName(n)||i.anchors.newName()),c)return"*".concat(c).concat(a?" ":"");var l=i.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(l," [").concat(r,"]"))}}]),Object(n.i)(r,[{key:"toJSON",value:function(e,t){if(!t)return a(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.get(this.source);if(!i||void 0===i.res){var s="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new n.v(this.cstNode,s):new ReferenceError(s)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=h(this.source,r)),i.count*i.aliasCount>o)){var c="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new n.v(this.cstNode,c):new ReferenceError(c)}return i.res}},{key:"toString",value:function(e){return r.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),r}(i);function m(e,t){var r,o=t instanceof s?t.value:t,i=Object(n.g)(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a instanceof d){if(a.key===t||a.key===o)return a;if(a.key&&a.key.value===o)return a}}}catch(e){i.e(e)}finally{i.f()}}Object(n.l)(v,"default",!0);var g=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(){return Object(n.j)(this,r),t.apply(this,arguments)}return Object(n.i)(r,[{key:"add",value:function(e,t){e?e instanceof d||(e=new d(e.key||e,e.value)):e=new d(e);var r=m(this.items,e.key),n=this.schema&&this.schema.sortMapEntries;if(r){if(!t)throw new Error("Key ".concat(e.key," already set"));r.value=e.value}else if(n){var o=this.items.findIndex((function(t){return n(e,t)<0}));-1===o?this.items.push(e):this.items.splice(o,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var r=m(this.items,e),n=r&&r.value;return!t&&n instanceof s?n.value:n}},{key:"has",value:function(e){return!!m(this.items,e)}},{key:"set",value:function(e,t){this.add(new d(e,t),!0)}},{key:"toJSON",value:function(e,t,r){var o=r?new r:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(o);var i,a=Object(n.g)(this.items);try{for(a.s();!(i=a.n()).done;){i.value.addToJSMap(t,o)}}catch(e){a.e(e)}finally{a.f()}return o}},{key:"toString",value:function(e,t,o){if(!e)return JSON.stringify(this);var i,a=Object(n.g)(this.items);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!(s instanceof d))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(s)," instead"))}}catch(e){a.e(e)}finally{a.f()}return Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,o)}}]),r}(u),y=function(e){Object(n.q)(r,e);var t=Object(n.r)(r);function r(e){var o;if(Object(n.j)(this,r),e instanceof d){var i=e.value;i instanceof f||((i=new f).items.push(e.value),i.range=e.value.range),(o=t.call(this,e.key,i)).range=e.range}else o=t.call(this,new s("<<"),new f);return o.type=d.Type.MERGE_PAIR,Object(n.y)(o)}return Object(n.i)(r,[{key:"addToJSMap",value:function(e,t){var r,o=Object(n.g)(this.value.items);try{for(o.s();!(r=o.n()).done;){var i=r.value.source;if(!(i instanceof g))throw new Error("Merge sources must be maps");var a,s=i.toJSON(null,e,Map),c=Object(n.g)(s);try{for(c.s();!(a=c.n()).done;){var l=Object(n.o)(a.value,2),u=l[0],p=l[1];t instanceof Map?t.has(u)||t.set(u,p):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||(t[u]=p)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){o.e(e)}finally{o.f()}return t}},{key:"toString",value:function(e,t){var o=this.value;if(o.items.length>1)return Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,t);this.value=o.items[0];var i=Object(n.s)(Object(n.t)(r.prototype),"toString",this).call(this,e,t);return this.value=o,i}}]),r}(d),b={defaultType:n.e.BLOCK_LITERAL,lineWidth:76},x={trueStr:"true",falseStr:"false"},w={asBigInt:!1},k={nullStr:"null"},S={defaultType:n.e.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function O(e,t,r){var o,i=Object(n.g)(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=a.format,l=a.test,u=a.resolve;if(l){var p=e.match(l);if(p){var f=u.apply(null,p);return f instanceof s||(f=new s(f)),c&&(f.format=c),f}}}}catch(e){i.e(e)}finally{i.f()}return r&&(e=r(e)),new s(e)}var A=function(e,t){for(var r=e[t+1];" "===r||"\t"===r;){do{r=e[t+=1]}while(r&&"\n"!==r);r=e[t+1]}return t};function E(e,t,r,n){var o=n.indentAtStart,i=n.lineWidth,a=void 0===i?80:i,s=n.minContentWidth,c=void 0===s?20:s,l=n.onFold,u=n.onOverflow;if(!a||a<0)return e;var p=Math.max(1+c,1+a-t.length);if(e.length<=p)return e;var f,d=[],h={},v=a-("number"==typeof o?o:t.length),m=void 0,g=void 0,y=!1,b=-1;for("block"===r&&-1!==(b=A(e,b))&&(v=b+p);f=e[b+=1];){if("quoted"===r&&"\\"===f)switch(e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}if("\n"===f)"block"===r&&(b=A(e,b)),v=b+p,m=void 0;else{if(" "===f&&g&&" "!==g&&"\n"!==g&&"\t"!==g){var x=e[b+1];x&&" "!==x&&"\n"!==x&&"\t"!==x&&(m=b)}if(b>=v)if(m)d.push(m),v=m+p,m=void 0;else if("quoted"===r){for(;" "===g||"\t"===g;)g=f,f=e[b+=1],y=!0;d.push(b-2),h[b-2]=!0,v=b-2+p,m=void 0}else y=!0}g=f}if(y&&u&&u(),0===d.length)return e;l&&l();for(var w=e.slice(0,d[0]),k=0;kt)return!0;if(r-(o=n+1)<=t)return!1}return!0}(s,S.fold.lineWidth-c.length)),p=u?"|":">";if(!s)return p+"\n";var f="",d="";if(s=s.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?p+="-":s!==e&&t===e.length-1||(p+="+",o&&o()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(p+=l);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,"$&".concat(c))),f&&(f=f.replace(/\n+/g,"$&".concat(c))),i&&(p+=" #"+i.replace(/ ?[\r\n]+/g," "),r&&r()),!s)return"".concat(p).concat(l,"\n").concat(c).concat(d);if(u)return s=s.replace(/\n+/g,"$&".concat(c)),"".concat(p,"\n").concat(c).concat(f).concat(s).concat(d);s=s.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(c));var h=E("".concat(f).concat(s).concat(d),c,"block",S.fold);return"".concat(p,"\n").concat(c).concat(h)}function I(e,t,r,o){var i=S.defaultType,a=t.implicitKey,s=t.inFlow,c=e,l=c.type,u=c.value;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));var p=function(i){switch(i){case n.e.BLOCK_FOLDED:case n.e.BLOCK_LITERAL:return P(e,t,r,o);case n.e.QUOTE_DOUBLE:return T(u,t);case n.e.QUOTE_SINGLE:return C(u,t);case n.e.PLAIN:return function(e,t,r,o){var i=e.comment,a=e.type,s=e.value,c=t.actualString,l=t.implicitKey,u=t.indent,p=t.inFlow;if(l&&/[\n[\]{},]/.test(s)||p&&/[[\]{},]/.test(s))return T(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||p||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?C(s,t):T(s,t):P(e,t,r,o);if(!l&&!p&&a!==n.e.PLAIN&&-1!==s.indexOf("\n"))return P(e,t,r,o);if(""===u&&_(s))return t.forceBlockIndent=!0,P(e,t,r,o);var f=s.replace(/\n+/g,"$&\n".concat(u));if(c){var d=t.doc.schema.tags;if("string"!=typeof O(f,d,d.scalarFallback).value)return T(s,t)}var h=l?f:E(f,u,"flow",j(t));return!i||p||-1===h.indexOf("\n")&&-1===i.indexOf("\n")?h:(r&&r(),function(e,t,r){if(!r)return e;var n=r.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(n,"\n").concat(t).concat(e)}(h,u,i))}(e,t,r,o);default:return null}};l!==n.e.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?l=n.e.QUOTE_DOUBLE:!a&&!s||l!==n.e.BLOCK_FOLDED&&l!==n.e.BLOCK_LITERAL||(l=n.e.QUOTE_DOUBLE);var f=p(l);if(null===f&&null===(f=p(i)))throw new Error("Unsupported default string type ".concat(i));return f}function R(e){var t=e.format,r=e.minFractionDigits,n=e.tag,o=e.value;if("bigint"==typeof o)return String(o);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";var i=JSON.stringify(o);if(!t&&r&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){var a=i.indexOf(".");a<0&&(a=i.length,i+=".");for(var s=r-(i.length-a-1);s-- >0;)i+="0"}return i}function L(e,t){var r,o,i;switch(t.type){case n.e.FLOW_MAP:r="}",o="flow map";break;case n.e.FLOW_SEQ:r="]",o="flow sequence";break;default:return void e.push(new n.n(t,"Not a flow collection!?"))}for(var a=t.items.length-1;a>=0;--a){var s=t.items[a];if(!s||s.type!==n.e.COMMENT){i=s;break}}if(i&&i.char!==r){var c,l="Expected ".concat(o," to end with ").concat(r);"number"==typeof i.offset?(c=new n.n(t,l)).offset=i.offset+1:(c=new n.n(i,l),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function N(e,t){var r=t.context.src[t.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){e.push(new n.n(t,"Comments must be separated from other tokens by white space characters"))}}function M(e,t){var r=String(t),o=r.substr(0,8)+"..."+r.substr(-8);return new n.n(e,'The "'.concat(o,'" key is too long'))}function D(e,t){var r,o=Object(n.g)(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.afterKey,s=i.before,c=i.comment,l=e.items[s];l?(a&&l.value&&(l=l.value),void 0===c?!a&&l.commentBefore||(l.spaceBefore=!0):l.commentBefore?l.commentBefore+="\n"+c:l.commentBefore=c):void 0!==c&&(e.comment?e.comment+="\n"+c:e.comment=c)}}catch(e){o.e(e)}finally{o.f()}}function B(e,t){var r=t.strValue;return r?"string"==typeof r?r:(r.errors.forEach((function(r){r.source||(r.source=t),e.errors.push(r)})),r.str):""}function q(e,t){var r=t.tag,o=t.type,i=!1;if(r){var a=r.handle,s=r.suffix,c=r.verbatim;if(c){if("!"!==c&&"!!"!==c)return c;var l="Verbatim tags aren't resolved, so ".concat(c," is invalid.");e.errors.push(new n.n(t,l))}else if("!"!==a||s)try{return function(e,t){var r=t.tag,o=r.handle,i=r.suffix,a=e.tagPrefixes.find((function(e){return e.handle===o}));if(!a){var s=e.getDefaults().tagPrefixes;if(s&&(a=s.find((function(e){return e.handle===o}))),!a)throw new n.n(t,"The ".concat(o," tag handle is non-default and was not declared."))}if(!i)throw new n.n(t,"The ".concat(o," tag has no suffix."));if("!"===o&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new n.m(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var c=i.match(/^([a-z0-9-]+)\/(.*)/i);return c?"tag:".concat(c[1],".yaml.org,2002:").concat(c[2]):"tag:".concat(i)}}return a.prefix+decodeURIComponent(i)}(e,t)}catch(t){e.errors.push(t)}else i=!0}switch(o){case n.e.BLOCK_FOLDED:case n.e.BLOCK_LITERAL:case n.e.QUOTE_DOUBLE:case n.e.QUOTE_SINGLE:return n.u.STR;case n.e.FLOW_MAP:case n.e.MAP:return n.u.MAP;case n.e.FLOW_SEQ:case n.e.SEQ:return n.u.SEQ;case n.e.PLAIN:return i?n.u.STR:null;default:return null}}function F(e,t,r){var o,i=e.schema.tags,a=[],c=Object(n.g)(i);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(l.tag===r){if(!l.test){var p=l.resolve(e,t);return p instanceof u?p:new s(p)}a.push(l)}}}catch(e){c.e(e)}finally{c.f()}var f=B(e,t);return"string"==typeof f&&a.length>0?O(f,a,i.scalarFallback):null}function z(e,t,r){try{var o=F(e,t,r);if(o)return r&&t.tag&&(o.tag=r),o}catch(r){return r.source||(r.source=t),e.errors.push(r),null}try{var i=function(e){switch(e.type){case n.e.FLOW_MAP:case n.e.MAP:return n.u.MAP;case n.e.FLOW_SEQ:case n.e.SEQ:return n.u.SEQ;default:return n.u.STR}}(t);if(!i)throw new Error("The tag ".concat(r," is unavailable"));var a="The tag ".concat(r," is unavailable, falling back to ").concat(i);e.warnings.push(new n.m(t,a));var s=F(e,t,i);return s.tag=r,s}catch(r){var c=new n.v(t,r.message);return c.stack=r.stack,e.errors.push(c),null}}function U(e,t){var r,o={before:[],after:[]},i=!1,a=!1,s=function(e){if(!e)return!1;var t=e.type;return t===n.e.MAP_KEY||t===n.e.MAP_VALUE||t===n.e.SEQ_ITEM}(t.context.parent)?t.context.parent.props.concat(t.props):t.props,c=Object(n.g)(s);try{for(c.s();!(r=c.n()).done;){var l=r.value,u=l.start,p=l.end;switch(t.context.src[u]){case n.a.COMMENT:if(!t.commentHasRequiredWhitespace(u)){e.push(new n.n(t,"Comments must be separated from other tokens by white space characters"))}var f=t.header,d=t.valueRange;(d&&(u>d.start||f&&u>f.start)?o.after:o.before).push(t.context.src.slice(u+1,p));break;case n.a.ANCHOR:if(i){e.push(new n.n(t,"A node can have at most one anchor"))}i=!0;break;case n.a.TAG:if(a){e.push(new n.n(t,"A node can have at most one tag"))}a=!0}}}catch(e){c.e(e)}finally{c.f()}return{comments:o,hasAnchor:i,hasTag:a}}function $(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var r=U(e.errors,t),o=r.comments,i=r.hasAnchor,a=r.hasTag;if(i){var s=e.anchors,c=t.anchor,l=s.getNode(c);l&&(s.map[s.newName(c)]=l),s.map[c]=t}if(t.type===n.e.ALIAS&&(i||a)){e.errors.push(new n.n(t,"An alias node must not specify any properties"))}var u=function(e,t){var r=e.anchors,o=e.errors,i=e.schema;if(t.type===n.e.ALIAS){var a=t.rawValue,s=r.getNode(a);if(!s){var c="Aliased anchor not found: ".concat(a);return o.push(new n.v(t,c)),null}var l=new v(s);return r._cstAliases.push(l),l}var u=q(e,t);if(u)return z(e,t,u);if(t.type!==n.e.PLAIN){var p="Failed to resolve ".concat(t.type," node here");return o.push(new n.f(t,p)),null}try{return O(B(e,t),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=t),o.push(e),null}}(e,t);if(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);var p=o.before.join("\n");p&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(p):p);var f=o.after.join("\n");f&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(f):f)}return t.resolved=u}function H(e,t){if(t.type!==n.e.MAP&&t.type!==n.e.FLOW_MAP){var r="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new n.f(t,r)),null}var o=t.type===n.e.FLOW_MAP?function(e,t){for(var r=[],o=[],i=void 0,a=!1,s="{",c=0;c0){(l=new n.c(n.e.PLAIN,[])).context={parent:c,src:c.context.src};var u=c.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},"number"==typeof c.range.origStart){var p=c.range.origStart+1;l.range.origStart=l.range.origEnd=p,l.valueRange.origStart=l.valueRange.origEnd=p}}var f=new d(i,$(e,l));W(c,f),o.push(f),i&&"number"==typeof a&&c.range.start>a+1024&&e.errors.push(M(t,i)),i=void 0,a=null;break;default:void 0!==i&&o.push(new d(i)),i=$(e,c),a=c.range.start,c.error&&e.errors.push(c.error);e:for(var h=s+1;;++h){var v=t.items[h];switch(v&&v.type){case n.e.BLANK_LINE:case n.e.COMMENT:continue e;case n.e.MAP_VALUE:break e;default:e.errors.push(new n.n(c,"Implicit map keys need to be followed by map values"));break e}}if(c.valueRangeContainsNewline){e.errors.push(new n.n(c,"Implicit map keys need to be on a single line"))}}}void 0!==i&&o.push(new d(i));return{comments:r,items:o}}(e,t),i=o.comments,a=o.items,s=new g;s.items=a,D(s,i);for(var c=!1,l=0;lo.valueRange.start)return!1;if(i[s]!==n.a.COMMENT)return!1;for(var c=r;cs+1024&&e.errors.push(M(t,a));for(var g=l.context.src,y=s;ye.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}})),o=(n.defaults,n.getDefaults,n.changeDefaults,/[&<>"']/),i=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return c[e]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var f=/(^|[^\[])\^/g,d=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,v={},m=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){v[" "+e]||(m.test(e)?v[" "+e]=e+"/":v[" "+e]=x(e,"/",!0));var r=-1===(e=v[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(y,"$1")+t:e+t}function x(e,t,r){var n=e.length;if(0===n)return"";for(var o=0;o=0&&"\\"===r[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e},I=n.defaults,R=_,L=j,N=w,M=T;function D(e,t,r){var n=t.href,o=t.title?N(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:r,href:n,title:o,text:i}:{type:"image",raw:r,href:n,title:o,text:N(i)}}var B=function(){function e(e){this.options=e||I}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var r=this.rules.block.code.exec(e);if(r){var n=t[t.length-1];if(n&&"paragraph"===n.type)return{raw:r[0],text:r[0].trimRight()};var o=r[0].replace(/^ {4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:R(o,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var r={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(r.header.length===r.align.length){var n,o=r.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:t[0],text:r}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,o,i,a,s,c,l,u=t[0],p=t[2],f=p.length>1,d={type:"list",raw:u,ordered:f,start:f?+p.slice(0,-1):"",loose:!1,items:[]},h=t[0].match(this.rules.block.item),v=!1,m=h.length;o=this.rules.block.listItemStart.exec(h[0]);for(var g=0;go[0].length||i[1].length>3){h.splice(g,2,h[g]+"\n"+h[g+1]),g--,m--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==p[p.length-1]:f===(1===i[2].length))&&(a=h.slice(g+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-a.length),g=m-1),o=i}n=r.length,~(r=r.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=r.length,r=this.options.pedantic?r.replace(/^ {1,4}/gm,""):r.replace(new RegExp("^ {1,"+n+"}","gm"),"")),s=v||/\n\n(?!\s*$)/.test(r),g!==m-1&&(v="\n"===r.charAt(r.length-1),s||(s=v)),s&&(d.loose=!0),this.options.gfm&&(l=void 0,(c=/^\[[ xX]\] /.test(r))&&(l=" "!==r[1],r=r.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:u,task:c,checked:l,loose:s,text:r})}return d}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,o=r.align.length;for(n=0;n/i.test(n[0])&&(t=!1),!r&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?r=!0:r&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(r=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:t,inRawBlock:r,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]):n[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=M(t[2],"()");if(r>-1){var n=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,n).trim(),t[3]=""}var o=t[2],i="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a?(o=a[1],i=a[3]):i=""}else i=t[3]?t[3].slice(1,-1):"";return D(t,{href:(o=o.trim().replace(/^<([\s\S]*)>$/,"$1"))?o.replace(this.rules.inline._escapes,"$1"):o,title:i?i.replace(this.rules.inline._escapes,"$1"):i},t[0])}},t.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return D(r,n,r[0])}},t.strong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.strong.start.exec(e);if(n&&(!n[1]||n[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){t=t.slice(-1*e.length);var o,i="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(i.lastIndex=0;null!=(n=i.exec(t));)if(o=this.rules.inline.strong.middle.exec(t.slice(0,n.index+3)))return{type:"strong",raw:e.slice(0,o[0].length),text:e.slice(2,o[0].length-2)}}},t.em=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.em.start.exec(e);if(n&&(!n[1]||n[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){t=t.slice(-1*e.length);var o,i="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(i.lastIndex=0;null!=(n=i.exec(t));)if(o=this.rules.inline.em.middle.exec(t.slice(0,n.index+2)))return{type:"em",raw:e.slice(0,o[0].length),text:e.slice(1,o[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),o=r.startsWith(" ")&&r.endsWith(" ");return n&&o&&(r=r.substring(1,r.length-1)),r=N(r,!0),{type:"codespan",raw:t[0],text:r}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var r,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(r=N(this.options.mangle?t(o[1]):o[1])):r=N(o[1]),{type:"link",raw:o[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},t.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,o;if("@"===r[2])o="mailto:"+(n=N(this.options.mangle?t(r[0]):r[0]));else{var i;do{i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(i!==r[0]);n=N(r[0]),o="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t,r){var n,o=this.rules.inline.text.exec(e);if(o)return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):N(o[0]):o[0]:N(this.options.smartypants?r(o[0]):o[0]),{type:"text",raw:o[0],text:n}},e}(),q=A,F=S,z=E,U={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:q,table:q,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};U.def=F(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,U.item=F(U.item,"gm").replace(/bull/g,U.bullet).getRegex(),U.listItemStart=F(/^( *)(bull)/).replace("bull",U.bullet).getRegex(),U.list=F(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U._comment=/|$)/,U.html=F(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.paragraph=F(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.blockquote=F(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal=z({},U),U.gfm=z({},U.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),U.gfm.nptable=F(U.gfm.nptable).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.gfm.table=F(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.pedantic=z({},U.normal,{html:F("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:q,paragraph:F(U.normal._paragraph).replace("hr",U.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:q,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:q,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};$.punctuation=F($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$._comment=F(U._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$.em.start=F($.em.start).replace(/punctuation/g,$._punctuation).getRegex(),$.em.middle=F($.em.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.em.endAst=F($.em.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.em.endUnd=F($.em.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.start=F($.strong.start).replace(/punctuation/g,$._punctuation).getRegex(),$.strong.middle=F($.strong.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.strong.endAst=F($.strong.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.endUnd=F($.strong.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=F($._blockSkip,"g").getRegex(),$.overlapSkip=F($._overlapSkip,"g").getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$.autolink=F($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=F($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=F($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=F($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=F($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=z({},$),$.pedantic=z({},$.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=z({},$.normal,{escape:F($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var Q=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||W,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:V.normal,inline:Y.normal};this.options.pedantic?(t.block=V.pedantic,t.inline=Y.pedantic):this.options.gfm&&(t.block=V.gfm,this.options.breaks?t.inline=Y.breaks:t.inline=Y.gfm),this.tokenizer.rules=t}t.lex=function(e,r){return new t(r).lex(e)},t.lexInline=function(e,r){return new t(r).inlineTokens(e)};var r,n,o,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,r){var n,o,i,a;for(void 0===t&&(t=[]),void 0===r&&(r=!0),e=e.replace(/^ +$/gm,"");e;)if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e,t))e=e.substring(n.raw.length),n.type?t.push(n):((a=t[t.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.nptable(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],r),t.push(n);else if(n=this.tokenizer.list(e)){for(e=e.substring(n.raw.length),i=n.items.length,o=0;o0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+K("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+K("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(a||(s=""),a=!1,o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e,r,n))e=e.substring(o.raw.length),r=o.inLink,n=o.inRawBlock,t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),t.push(o);else if(o=this.tokenizer.strong(e,c,s))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.em(e,c,s))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,n),t.push(o);else if(o=this.tokenizer.autolink(e,J))e=e.substring(o.raw.length),t.push(o);else if(r||!(o=this.tokenizer.url(e,J))){if(o=this.tokenizer.inlineText(e,n,G))e=e.substring(o.raw.length),s=o.raw.slice(-1),a=!0,t.push(o);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else e=e.substring(o.raw.length),t.push(o);return t},r=t,o=[{key:"rules",get:function(){return{block:V,inline:Y}}}],(n=null)&&e(r.prototype,n),o&&e(r,o),t}(),X=n.defaults,Z=O,ee=w,te=function(){function e(e){this.options=e||X}var t=e.prototype;return t.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(r=!0,e=o)}return n?'
    '+(r?e:ee(e,!0))+"
    \n":"
    "+(r?e:ee(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,r){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return r;var n='
    "},t.image=function(e,t,r){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return r;var n=''+r+'":">"},t.text=function(e){return e},e}(),re=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),ne=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),oe=n.defaults,ie=k,ae=function(){function e(e){this.options=e||oe,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new re,this.slugger=new ne}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,o,i,a,s,c,l,u,p,f,d,h,v,m,g,y,b,x="",w=e.length;for(r=0;r0&&"text"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(m.tokens,h),u+=this.renderer.listitem(v,y,g);x+=this.renderer.list(u,f,d);continue;case"html":x+=this.renderer.html(p.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;r+1An error occurred:

    "+le(e.message+"",!0)+"
    ";throw e}}return de.options=de.setOptions=function(e){return se(de.defaults,e),pe(de.defaults),de},de.getDefaults=ue,de.defaults=fe,de.use=function(e){var t=se({},e);if(e.renderer&&function(){var r=de.defaults.renderer||new te,n=function(t){var n=r[t];r[t]=function(){for(var o=arguments.length,i=new Array(o),a=0;aAn error occurred:

    "+le(e.message+"",!0)+"
    ";throw e}},de.Parser=ae,de.parser=ae.parse,de.Renderer=te,de.TextRenderer=re,de.Lexer=Q,de.lexer=Q.lex,de.Tokenizer=B,de.Slugger=ne,de.parse=de,de}()},function(e,t,r){e.exports=r(444)},function(e,t,r){e.exports=r(428)},function(e,t,r){e.exports=r(429)},function(e,t,r){"use strict";var n=r(16),o=r(69).f,i=r(193),a=r(12),s=r(85),c=r(37),l=r(29),u=function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,p,f,d,h,v,m,g,y=e.target,b=e.global,x=e.stat,w=e.proto,k=b?n:x?n[y]:(n[y]||{}).prototype,S=b?a:a[y]||(a[y]={}),O=S.prototype;for(f in t)r=!i(b?f:y+(x?".":"#")+f,e.forced)&&k&&l(k,f),h=S[f],r&&(v=e.noTargetGet?(g=o(k,f))&&g.value:k[f]),d=r&&v?v:t[f],r&&typeof h==typeof d||(m=e.bind&&r?s(d,n):e.wrap&&r?u(d):w&&"function"==typeof d?s(Function.call,d):d,(e.sham||d&&d.sham||h&&h.sham)&&c(m,"sham",!0),S[f]=m,w&&(l(a,p=y+"Prototype")||c(a,p,{}),a[p][f]=d,e.real&&O&&!O[f]&&c(O,f,d)))}},function(e,t,r){var n=r(136),o=r(325),i=r(329),a=r(334),s=r(206),c=r(348),l=r(209),u=r(211),p=r(172);function f(e,t){var r=u(e);if(l){var n=l(e);t&&(n=c(n).call(n,(function(t){return s(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t1){throw new o.n(t,"Each pair must have its own sequence indicator")}var s=a.items[0]||new i.e;a.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(a.commentBefore,"\n").concat(s.commentBefore):a.commentBefore),a.comment&&(s.comment=s.comment?"".concat(a.comment,"\n").concat(s.comment):a.comment),a=s}r.items[n]=a instanceof i.e?a:new i.e(a)}}return r}function c(e,t,r){var n=new i.g(e);n.tag="tag:yaml.org,2002:pairs";var a,s=Object(o.g)(t);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=void 0,u=void 0;if(Array.isArray(c)){if(2!==c.length)throw new TypeError("Expected [key, value] tuple: ".concat(c));l=c[0],u=c[1]}else if(c&&c instanceof Object){var p=Object.keys(c);if(1!==p.length)throw new TypeError("Expected { key: value } tuple: ".concat(c));u=c[l=p[0]]}else l=c;var f=e.createPair(l,u,r);n.items.push(f)}}catch(e){s.e(e)}finally{s.f()}return n}var l={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:c},u=function(e){Object(o.q)(r,e);var t=Object(o.r)(r);function r(){var e;return Object(o.j)(this,r),e=t.call(this),Object(o.l)(Object(o.w)(e),"add",i.k.prototype.add.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"delete",i.k.prototype.delete.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"get",i.k.prototype.get.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"has",i.k.prototype.has.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"set",i.k.prototype.set.bind(Object(o.w)(e))),e.tag=r.tag,e}return Object(o.i)(r,[{key:"toJSON",value:function(e,t){var r=new Map;t&&t.onCreate&&t.onCreate(r);var n,a=Object(o.g)(this.items);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=void 0,l=void 0;if(s instanceof i.e?(c=Object(i.w)(s.key,"",t),l=Object(i.w)(s.value,c,t)):c=Object(i.w)(s,"",t),r.has(c))throw new Error("Ordered maps must not include duplicate keys");r.set(c,l)}}catch(e){a.e(e)}finally{a.f()}return r}}]),r}(i.g);Object(o.l)(u,"tag","tag:yaml.org,2002:omap");var p={identify:function(e){return e instanceof Map},nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var r,n=s(e,t),a=[],c=Object(o.g)(n.items);try{for(c.s();!(r=c.n()).done;){var l=r.value.key;if(l instanceof i.f){if(a.includes(l.value)){throw new o.n(t,"Ordered maps must not include duplicate keys")}a.push(l.value)}}}catch(e){c.e(e)}finally{c.f()}return Object.assign(new u,n)},createNode:function(e,t,r){var n=c(e,t,r),o=new u;return o.items=n.items,o}},f=function(e){Object(o.q)(r,e);var t=Object(o.r)(r);function r(){var e;return Object(o.j)(this,r),(e=t.call(this)).tag=r.tag,e}return Object(o.i)(r,[{key:"add",value:function(e){var t=e instanceof i.e?e:new i.e(e);Object(i.s)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var r=Object(i.s)(this.items,e);return!t&&r instanceof i.e?r.key instanceof i.f?r.key.value:r.key:r}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Object(o.h)(t)));var r=Object(i.s)(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new i.e(e))}},{key:"toJSON",value:function(e,t){return Object(o.s)(Object(o.t)(r.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return Object(o.s)(Object(o.t)(r.prototype),"toString",this).call(this,e,t,n);throw new Error("Set items must all have null values")}}]),r}(i.k);Object(o.l)(f,"tag","tag:yaml.org,2002:set");var d={identify:function(e){return e instanceof Set},nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var r=Object(i.n)(e,t);if(!r.hasAllNullValues())throw new o.n(t,"Set items must all have null values");return Object.assign(new f,r)},createNode:function(e,t,r){var n,i=new f,a=Object(o.g)(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.items.push(e.createPair(s,null,r))}}catch(e){a.e(e)}finally{a.f()}return i}},h=function(e,t){var r=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-r:r},v=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(i.r)(t);var r="";t<0&&(r="-",t=Math.abs(t));var n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),r+n.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},m={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return h(t,r.replace(/_/g,""))},stringify:v},g={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,r){return h(t,r.replace(/_/g,""))},stringify:v},y={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,r,n,o,i,a,s,c){s&&(s=(s+"00").substr(1,3));var l=Date.UTC(t,r-1,n,o||0,i||0,a||0,s||0);if(c&&"Z"!==c){var u=h(c[0],c.slice(1));Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function b(e){var t=void 0!==n&&n.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function x(e,t){if(b(!1)){var r=void 0!==n&&n.emitWarning;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var w={};function k(e,t){if(!w[e]&&b(!0)){w[e]=!0;var r="The option '".concat(e,"' will be removed in a future release");x(r+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}}).call(this,r(32).Buffer,r(41))},function(e,t,r){var n=r(13);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){e.exports=r(562)},function(e,t,r){e.exports=r(440)},function(e,t,r){e.exports=r(572)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(12);e.exports=function(e){return n[e+"Prototype"]}},function(e,t,r){(function(t){var r=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,r=0,n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach);S+=k.value.length,k=k.next){var O=k.value;if(r.length>t.length)return;if(!(O instanceof o)){var A=1;if(g&&k!=r.tail.prev){if(w.lastIndex=S,!(C=w.exec(t)))break;var E=C.index+(m&&C[1]?C[1].length:0),j=C.index+C[0].length,_=S;for(_+=k.value.length;E>=_;)k=k.next,_+=k.value.length;if(_-=k.value.length,S=_,k.value instanceof o)continue;for(var T=k;T!==r.tail&&(_u.reach&&(u.reach=L);var N=k.prev;I&&(N=a(r,N,I),S+=I.length),s(r,N,A);var M=new o(p,v?n.tokenize(P,v):P,b,P);k=a(r,N,M),R&&a(r,k,R),A>1&&e(t,r,i,k.prev,S,{cause:p+","+d,reach:L})}}}}}}(e,l,t,l.head,0),function(e){var t=[],r=e.head.next;for(;r!==e.tail;)t.push(r.value),r=r.next;return t}(l)},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var o,i=0;o=r[i++];)o(t)}},Token:o};function o(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function a(e,t,r){var n=t.next,o={value:r,prev:t,next:n};return t.next=o,n.prev=o,e.length++,o}function s(e,t,r){for(var n=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),o=r.language,i=r.code,a=r.immediateClose;e.postMessage(n.highlight(i,n.languages[o],o)),a&&e.close()}),!1),n):n;var c=n.util.currentScript();function l(){n.manual||n.highlightAll()}if(c&&(n.filename=c.src,c.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var u=document.readyState;"loading"===u||"interactive"===u&&c&&c.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return n}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}); /** * Prism: Lightweight, robust, elegant syntax highlighting * @@ -18,7 +13,7 @@ * @author Feross Aboukhadijeh * @license MIT */ -var n=r(302),o=r(303),i=r(180);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function v(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 E(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return _(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,a=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;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){for(var p=!0,f=0;fo&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+p<=r)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<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),o+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r),p=0;po)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;on)&&(r=n);for(var o="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o>>8*(n?o:1-o)}function L(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o>>8*(n?o:3-o)&255}function N(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||N(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||N(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||I(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);I(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);I(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.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;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(26))},function(e,t,r){e.exports=r(383)},function(e,t,r){"use strict";var n=r(296),o=r(297);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(298);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?R+="x":R+=I[L];if(!R.match(d)){var M=C.slice(0,j),D=C.slice(j+1),B=I.match(h);B&&(M.push(B[1]),D.unshift(B[2])),D.length&&(b="/"+D.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+q,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[k])for(j=0,P=u.length;j0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=S.slice(-1)[0],E=(r.host||e.host||S.length>1)&&("."===A||".."===A)||""===A,j=0,_=S.length;_>=0;_--)"."===(A=S[_])?S.splice(_,1):".."===A?(S.splice(_,1),j++):j&&(S.splice(_,1),j--);if(!w&&!k)for(;j--;j)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var T,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(r.hostname=r.host=C?"":S.length?S.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n=r(448),o=r(449),i=r(158),a=r(452);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(22),o=r(38),i=r(70);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(22),o=r(192),i=r(30),a=r(111),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(22),o=r(13),i=r(29),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],l=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:c,p=i(t,1)?t[1]:void 0;return s[e]=!!r&&!o((function(){if(l&&!n)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:c}):e[1]=1,r.call(e,u,p)}))}},function(e,t,r){var n=r(563),o=r(564),i=r(158),a=r(565);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,l=[],u=!1,p=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p1)for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,f=!1;return{s:function(){r=n(e)},n:function(){var e=r.next();return p=e.done,e},e:function(e){f=!0,u=e},f:function(){try{p||null==r.return||r.return()}finally{if(f)throw u}}}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(85),o=r(109),i=r(44),a=r(54),s=r(148),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,p=6==e,f=5==e||p;return function(d,h,v,m){for(var g,y,b=i(d),x=o(b),w=n(h,v,3),k=a(x.length),S=0,O=m||s,A=t?O(d,k):r?O(d,0):void 0;k>S;S++)if((f||S in x)&&(y=w(g=x[S],S,b),e))if(t)A[S]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:c.call(A,g)}else if(u)return!1;return p?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(64),o=r(36);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){var n=r(162);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},function(e,t,r){e.exports=r(570)},function(e,t,r){var n=r(112),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){r(197);var n=r(340),o=r(16),i=r(72),a=r(37),s=r(61),c=r(14)("toStringTag");for(var l in n){var u=o[l],p=u&&u.prototype;p&&i(p)!==c&&a(p,c,l),s[l]=s.Array}},function(e,t,r){var n,o,i,a=r(198),s=r(16),c=r(17),l=r(37),u=r(29),p=r(113),f=r(87),d=s.WeakMap;if(a){var h=new d,v=h.get,m=h.has,g=h.set;n=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return m.call(h,e)}}else{var y=p("state");f[y]=!0,n=function(e,t){return l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){e.exports=null},function(e,t,r){e.exports=r(357)},function(e,t){"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}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,r){var n=r(146),o=r(38).f,i=r(37),a=r(29),s=r(338),c=r(14)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;a(u,c)||o(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",s)}}},function(e,t,r){var n=r(361),o=r(366);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){var n=r(73),o=r(362),i=r(363),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,r){var n=r(115),o=r(95),i=r(367),a=r(74),s=r(96),c=r(75),l=Object.prototype.hasOwnProperty,u=i((function(e,t){if(s(t)||a(t))o(t,c(t),e);else for(var r in t)l.call(t,r)&&n(e,r,t[r])}));e.exports=u},function(e,t,r){e.exports=r(437)},function(e,t,r){var n=r(136);function o(e,t){for(var r=0;r=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(30),o=r(233),i=r(54),a=r(85),s=r(121),c=r(232),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,u,p){var f,d,h,v,m,g,y,b=a(t,r,u?2:1);if(p)f=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,v=i(e.length);v>h;h++)if((m=u?b(n(y=e[h])[0],y[1]):b(e[h]))&&m instanceof l)return m;return new l(!1)}f=d.call(e)}for(g=f.next;!(y=g.call(f)).done;)if("object"==typeof(m=c(f,b,y.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,r){"use strict";function n(e){return null==e}e.exports.isNothing=n,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r"+e+"<\/script>"},h=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[p]=e):r=h(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(37);e.exports=function(e,t,r,o){o&&o.enumerable?e[t]=r:n(e,t,r)}},function(e,t,r){var n=r(60);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){var n=r(13),o=r(14),i=r(149),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(115),o=r(214);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s=0){let e=t.split("#");if(e[0])return!1;t=e[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let o=t.split("/");for(let t=0;t0?o[t-1]:"",-1!=a||e.hasOwnProperty(o[t]))if(a>=0)i&&(e[a]=r),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(r),r):void 0;i&&(e[o[t]]=r),e=e[o[t]]}else{if(void 0===r||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?r:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:n}},function(e,t,r){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},deepClone:function e(t){let r=Array.isArray(t)?[]:{};for(let n in t)(t.hasOwnProperty(n)||Array.isArray(t))&&(r[n]="object"==typeof t[n]?e(t[n]):t[n]);return r},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,r){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);try{var n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map(n=>({[n]:e(t[n],r)})))}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,o)}));default:for(i=new Array(s-1),a=0;a0?n:r)(e)}},function(e,t,r){var n=r(144),o=r(114),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(214),o=r(116),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&eu;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(112),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(195),o=r(140).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(71),o=r(200);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(13);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n={};n[r(14)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(30),o=r(339);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(17),o=r(92),i=r(14)("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n,o,i=r(16),a=r(208),s=i.process,c=s&&s.versions,l=c&&c.v8;l?o=(n=l.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){var n=r(14);t.f=n},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var n=r(377),o=r(154),i=r(155),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var n=r(216),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,r(103)(e))},function(e,t,r){e.exports=r(388)},function(e,t){},function(e,t,r){var n=r(230),o=r(417),i=r(236);e.exports=function(e,t){var r;if(e){if("string"==typeof e)return i(e,t);var a=o(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?n(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}}},function(e,t,r){var n=r(91);e.exports=function(e,t,r){for(var o in t)r&&r.unsafe&&e[o]?e[o]=t[o]:n(e,o,t[o],r);return e}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){"use strict";var n=r(79);e.exports=new n({explicit:[r(489),r(490),r(491)]})},function(e,t,r){var n=r(125),o=r(100);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r=48&&u<=57)r=u-48;else if(u>=65&&u<=70)r=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=u,s=0;break}r=u-97+10}s=2;break;case 2:if(s=0,u>=48&&u<=57)n=u-48;else if(u>=65&&u<=70)n=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=i,a[l++]=u;break}n=u-97+10}a[l++]=16*r+n}}return a.slice(0,l-1)},n.unescape=i;for(var a=new Array(256),s=0;s<256;++s)a[s]="%"+((s<16?"0":"")+s.toString(16)).toUpperCase();n.escape=function(e){"string"!=typeof e&&(e+="");for(var t="",r=0,n=0;n=39&&o<=42||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122))if(n-r>0&&(t+=e.slice(r,n)),o<128)r=n+1,t+=a[o];else if(o<2048)r=n+1,t+=a[192|o>>6]+a[128|63&o];else if(o<55296||o>=57344)r=n+1,t+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o];else{var i;if(!(++n>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o]}}return 0===r?e:r0&&(p=u);var f=n.unescape;o&&"function"==typeof o.decodeURIComponent&&(f=o.decodeURIComponent);for(var d=f!==i,h=[],v=0,m=0,g=0,y="",b="",x=d,w=d,k=0,S=0;S0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(w=!0):k=0),g0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(x=!0):k=0)}43===O&&(g0&&(y+=e.slice(v,S)),y+="%20",x=!0):(S-v>0&&(b+=e.slice(v,S)),b+="%20",w=!0),v=S+1)}else if(++m===c){var A,E=S-m+1;if(g0&&(v0)&&(v=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(o=!1,n=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(41))},function(e,t,r){e.exports=r(638).YAML},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){const n=r(306),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function r(e,t){return n.stringify(e)===n.stringify(Object.assign({},e,t))}return r(e,t)&&r(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:o,uniqueOnly:function(e,t,r){return r.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e){t.find((function(e,t,n){return i(e,r)}))||t.push(r)}return t}(e).length},firstDupe:function(e){return e.find((function(t,r,n){return e.indexOf(t)e._pos){var i=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(i.length),s=0;se._pos&&(e.push(new n(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(r)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(41),r(32).Buffer,r(26))},function(e,t,r){(t=e.exports=r(185)).Stream=t,t.Readable=t,t.Writable=r(189),t.Duplex=r(68),t.Transform=r(191),t.PassThrough=r(317)},function(e,t,r){"use strict";(function(t,n){var o=r(106);e.exports=b;var i,a=r(180);b.ReadableState=y;r(186).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(187),l=r(107).Buffer,u=t.Uint8Array||function(){};var p=r(84);p.inherits=r(59);var f=r(311),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,v=r(312),m=r(188);p.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(68));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(190).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(68),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function x(e,t,r,n,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(o||(i=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):A(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(O,e):O(e))}function O(e){d("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,o=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,a),0===(e-=a)){a===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++o}return t.length-=o,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:b;function l(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",p),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",v),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function u(){d("onend"),e.end()}i.endEmitted?o.nextTick(c):r.once("end",c),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",p);var f=!1;var h=!1;function v(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",v),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e},b.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function p(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,u=v(c,l);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){e.exports=r(186).EventEmitter},function(e,t,r){"use strict";var n=r(106);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),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.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";(function(t,n,o){var i=r(106);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;y.WritableState=g;var l=r(84);l.inherits=r(59);var u={deprecate:r(316)},p=r(187),f=r(107).Buffer,d=o.Uint8Array||function(){};var h,v=r(188);function m(){}function g(e,t){s=s||r(68),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,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(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?(i.nextTick(o,n),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),O(e,t))}(e,r,n,t,o);else{var a=k(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?c(x,e,r,a,o):x(e,r,a,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.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||r(68),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),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)),p.call(this)}function b(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,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(),O(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback;if(b(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 k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(y,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,f.isBuffer(n)||n instanceof d);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=m),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r));return t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"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||n.finished||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(41),r(314).setImmediate,r(26))},function(e,t,r){"use strict";var n=r(107).Buffer,o=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 i(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===o||!o(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 a(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.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(e.lastNeed=o-1),o;if(--n=0)return o>0&&(e.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.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}},function(e,t,r){"use strict";e.exports=a;var n=r(68),o=r(84);function i(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.lengthc;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(29),o=r(42),i=r(138).indexOf,a=r(87);e.exports=function(e,t){var r,s=o(e),c=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){r(55);var n=r(341),o=r(72),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===i||e instanceof Array&&t===i.forEach||a.hasOwnProperty(o(e))?n:t}},function(e,t,r){"use strict";var n=r(42),o=r(143),i=r(61),a=r(56),s=r(201),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,r){var n=r(16),o=r(199),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(200),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(16),o=r(336),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){"use strict";var n=r(7),o=r(337),i=r(89),a=r(147),s=r(62),c=r(37),l=r(91),u=r(14),p=r(71),f=r(61),d=r(202),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g=function(){return this};e.exports=function(e,t,r,u,d,y,b){o(r,t,u);var x,w,k,S=function(e){if(e===d&&_)return _;if(!v&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",A=!1,E=e.prototype,j=E[m]||E["@@iterator"]||d&&E[d],_=!v&&j||S(d),T="Array"==t&&E.entries||j;if(T&&(x=i(T.call(new e)),h!==Object.prototype&&x.next&&(p||i(x)===h||(a?a(x,h):"function"!=typeof x[m]&&c(x,m,g)),s(x,O,!0,!0),p&&(f[O]=g))),"values"==d&&j&&"values"!==j.name&&(A=!0,_=function(){return j.call(this)}),p&&!b||E[m]===_||c(E,m,_),f[t]=_,d)if(w={values:S("values"),keys:y?_:S("keys"),entries:S("entries")},b)for(k in w)(v||A||!(k in E))&&l(E,k,w[k]);else n({target:t,proto:!0,forced:v||A},w);return w}},function(e,t,r){"use strict";var n,o,i,a=r(89),s=r(37),c=r(29),l=r(14),u=r(71),p=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):f=!0),null==n&&(n={}),u||c(n,p)||s(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(e,t,r){var n=r(13);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(145);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(43);e.exports=n("document","documentElement")},function(e,t,r){e.exports=r(345)},function(e,t,r){var n=r(350),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?n:t}},function(e,t,r){var n=r(43);e.exports=n("navigator","userAgent")||""},function(e,t,r){e.exports=r(352)},function(e,t,r){"use strict";var n=r(7),o=r(16),i=r(43),a=r(71),s=r(22),c=r(145),l=r(204),u=r(13),p=r(29),f=r(92),d=r(17),h=r(30),v=r(44),m=r(42),g=r(111),y=r(70),b=r(90),x=r(86),w=r(141),k=r(354),S=r(142),O=r(69),A=r(38),E=r(108),j=r(37),_=r(91),T=r(144),C=r(113),P=r(87),I=r(114),R=r(14),L=r(150),N=r(18),M=r(62),D=r(56),B=r(49).forEach,q=C("hidden"),F=R("toPrimitive"),z=D.set,U=D.getterFor("Symbol"),$=Object.prototype,H=o.Symbol,W=i("JSON","stringify"),V=O.f,Y=A.f,K=k.f,G=E.f,J=T("symbols"),Q=T("op-symbols"),X=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry"),ee=T("wks"),te=o.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&u((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=V($,t);n&&delete $[t],Y(e,t,r),n&&e!==$&&Y($,t,n)}:Y,oe=function(e,t){var r=J[e]=b(H.prototype);return z(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},ie=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,r){e===$&&ae(Q,t,r),h(e);var n=g(t,!0);return h(r),p(J,n)?(r.enumerable?(p(e,q)&&e[q][n]&&(e[q][n]=!1),r=b(r,{enumerable:y(0,!1)})):(p(e,q)||Y(e,q,y(1,{})),e[q][n]=!0),ne(e,n,r)):Y(e,n,r)},se=function(e,t){h(e);var r=m(t),n=x(r).concat(pe(r));return B(n,(function(t){s&&!ce.call(r,t)||ae(e,t,r[t])})),e},ce=function(e){var t=g(e,!0),r=G.call(this,t);return!(this===$&&p(J,t)&&!p(Q,t))&&(!(r||!p(this,t)||!p(J,t)||p(this,q)&&this[q][t])||r)},le=function(e,t){var r=m(e),n=g(t,!0);if(r!==$||!p(J,n)||p(Q,n)){var o=V(r,n);return!o||!p(J,n)||p(r,q)&&r[q][n]||(o.enumerable=!0),o}},ue=function(e){var t=K(m(e)),r=[];return B(t,(function(e){p(J,e)||p(P,e)||r.push(e)})),r},pe=function(e){var t=e===$,r=K(t?Q:m(e)),n=[];return B(r,(function(e){!p(J,e)||t&&!p($,e)||n.push(J[e])})),n};(c||(_((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),r=function(e){this===$&&r.call(Q,e),p(this,q)&&p(this[q],t)&&(this[q][t]=!1),ne(this,t,y(1,e))};return s&&re&&ne($,t,{configurable:!0,set:r}),oe(t,e)}).prototype,"toString",(function(){return U(this).tag})),_(H,"withoutSetter",(function(e){return oe(I(e),e)})),E.f=ce,A.f=ae,O.f=le,w.f=k.f=ue,S.f=pe,L.f=function(e){return oe(R(e),e)},s&&(Y(H.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||_($,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),B(x(ee),(function(e){N(e)})),n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(p(X,t))return X[t];var r=H(t);return X[t]=r,Z[r]=t,r},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(p(Z,e))return Z[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:u((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),W)&&n({target:"JSON",stat:!0,forced:!c||u((function(){var e=H();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(d(t)||void 0!==e)&&!ie(e))return f(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ie(t))return t}),o[1]=t,W.apply(null,o)}});H.prototype[F]||j(H.prototype,F,H.prototype.valueOf),M(H,"Symbol"),P[q]=!0},function(e,t,r){e.exports=r(355)},function(e,t,r){r(356);var n=r(12);e.exports=n.Object.keys},function(e,t,r){"use strict";var n=r(48),o=r(17),i=[].slice,a={},s=function(e,t,r){if(!(t in a)){for(var n=[],o=0;o=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=p("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,forced:!v||!m},{concat:function(e){var t,r,n,o,i,a=s(this),p=u(a,0),f=0;for(t=-1,n=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(p,f++,i)}return p.length=f,p}})},function(e,t,r){r(18)("iterator")},function(e,t,r){e.exports=r(414)},function(e,t,r){r(76),r(415);var n=r(12);e.exports=n.Array.from},function(e,t,r){var n=r(30);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(14),o=r(61),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(14)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n=r(419),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?n:t}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rr;)t.push(arguments[r++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},v=function(e){delete x[e]},"process"==c(m)?n=function(e){m.nextTick(k(e))}:y&&y.now?n=function(e){y.now(k(e))}:g&&!f?(i=(o=new g).port2,o.port1.onmessage=S,n=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(O)||"file:"===d.protocol?n="onreadystatechange"in p("script")?function(e){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(k(e),0)}:(n=O,a.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},function(e,t,r){var n=r(208);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(30),o=r(17),i=r(97);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(7),o=r(48),i=r(97),a=r(123),s=r(77);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=o(t.resolve),i=[],a=0,c=1;s(e,(function(e){var o=a++,s=!1;i.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,i[o]={status:"fulfilled",value:e},--c||n(i))}),(function(e){s||(s=!0,i[o]={status:"rejected",reason:e},--c||n(i))}))})),--c||n(i)}));return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(79);e.exports=new n({include:[r(247)]})},function(e,t,r){"use strict";var n=r(79);e.exports=new n({include:[r(161)],implicit:[r(492),r(493),r(494),r(495)]})},function(e,t,r){var n=r(530),o=r(531);e.exports=function(e,t){return null!=e&&o(e,t,n)}},function(e,t,r){e.exports=r(549)},function(e,t,r){r(554);var n=r(12).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){e.exports=r(556)},function(e,t,r){var n=r(577),o=r(600),i=r(151),a=r(31),s=r(601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},function(e,t,r){var n=r(584),o=r(50);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},function(e,t,r){var n=r(585),o=r(588),i=r(589);e.exports=function(e,t,r,a,s,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var f=c.get(e);if(f&&c.get(t))return f==t;var d=-1,h=!0,v=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++de.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&k("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else w("(Patchable) schema type must not be an array",r);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(r.patches++,delete e.allowEmptyValue)}(e,r,t)}))}function O(e,t,r){let n=r.payload.options;if(u(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],r.parent[r.pkey]=p(n.openapi.consumes);else if("#/produces"===e[t])delete e[t],r.parent[r.pkey]=p(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let r=e[t].replace("#/definitions/","").split("/");const o=c.jpunescape(r[0]);let i=b.schemas[decodeURIComponent(o)];i?r[0]=i:k("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+m.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+m.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let r=p(c.jptr(n.openapi,e[t]));if(!1===r)k("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let a="schemas",s=i.lastIndexOf("/schema");if(a=i.indexOf("/headers/")>s?"headers":i.indexOf("/responses/")>s?"responses":i.indexOf("/example")>s?"examples":i.indexOf("/x-")>s?"extensions":i.indexOf("/parameters/")>s?"parameters":"schemas","schemas"===a&&S(r,n),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&r.name&&r.name===m.sanitise(r.name)&&(i=encodeURIComponent(r.name));let s=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(m.sanitise(o)),s="");c.jptr(n.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let l="#/components/"+a+"/"+i+s,u="";"examples"===a&&(r={value:r},u="/value"),c.jptr(n.openapi,l,r),n.refmap[e[t]]=l+u,e[t]=l+u}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=r.path.indexOf("/schema")>=0;"preserve"===n.refSiblings||(i&&"allOf"===n.refSiblings?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:o},e]}):r.parent[r.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let r=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=b.schemas[decodeURIComponent(r[0])];o?r[0]=o:k("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}}function A(e){for(let t in e)for(let r in e[t]){let n=m.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function E(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let r={},n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),void 0!==e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):w("(Patchable) oauth2 securitySchemes should not have name property",t))}}function j(e){return e&&!e["x-s2o-delete"]}function _(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&k("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?k("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?k("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(k("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):w("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of m.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function T(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+m.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&k("Definition used as parameter",e,t)}function C(e,t,r,n,o,i,a){let s,c={},u=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return w("(Patchable) operation.consumes must be an array",a);a.patches++,t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let f=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){T(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),r=!1,n=i.components.parameters[t];if(n&&!n["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,r=!0),r){let t=e.$ref,r=l(i,e.$ref);!r&&t.startsWith("#/")?k("Could not resolve reference "+t,e,a):r&&(e=r)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(a.patch?(a.patches++,e.type="string"):w("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=l(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=l(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(a.patch?(a.patches++,delete e.collectionFormat):w("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":k("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":k("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(k("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)k("parameter has array,items and schema",e,a);else{e.schema&&a.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,d(e.schema.items,null,(function(r,n,o){"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&k("Nested collectionFormats are not supported",e,a),delete r[n])})));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&S(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema,e.schema.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};let r=c.content[t].schema,n=c.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),c.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),P(e,n)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",P(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(c.description=e.description),e.required&&(c.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),f.length||f.push("application/json");for(let t of f)c.content[t]={},c.content[t].schema=p(e.schema||{}),S(c.content[t].schema,a);P(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0,k("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=r[n]=function(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=m.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of m.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?(a.patches++,e.required=!0):w("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function P(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function I(e,t,r,n,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?k("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(o.patches++,e.description=g[e]||""):w("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(S(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&"string"==typeof r.produces){if(!o.patch)return w("(Patchable) operation.produces must be an array",o);o.patches++,r.produces=[r.produces]}n.produces&&!Array.isArray(n.produces)&&delete n.produces;let t=((r?r.produces:null)||n.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let r of t){if(e.content[r]={},e.content[r].schema=p(e.schema),e.examples&&e.examples[r]){let t={};t.value=e.examples[r],e.content[r].examples={},e.content[r].examples.response=t,delete e.examples[r]}"file"===e.content[r].schema.type&&(e.content[r].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?(o.patches++,delete e.headers[t]):w('(Patchable) "Status Code" is not a valid header',o):_(e.headers[t],o)}}function R(e,t,r,n,i){for(let a in e){let s=e[a];s&&s["x-trace"]&&"object"==typeof s["x-trace"]&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&"string"==typeof s["x-summary"]&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&"string"==typeof s["x-description"]&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let e in s)if(m.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let u=s[e];if(u&&u.parameters&&Array.isArray(u.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(T(t,r),t=l(i,t.$ref)),u.parameters.find((function(e,r,n){return e.name===t.name&&e.in===t.in}))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(u=C(t,u,s,e,a,i,r),r.rbname&&""===u[r.rbname]&&delete u[r.rbname])}for(let t of u.parameters)u=C(t,u,s,e,e+":"+a,i,r);r.rbname&&""===u[r.rbname]&&delete u[r.rbname],r.debug||u.parameters&&(u.parameters=u.parameters.filter(j))}if(u&&u.security&&A(u.security),"object"==typeof u){if(!u.responses){let e={description:"Default response"};u.responses={default:e}}for(let e in u.responses){I(u.responses[e],0,u,i,r)}}if(u&&u["x-servers"]&&Array.isArray(u["x-servers"]))u.servers=u["x-servers"],delete u["x-servers"];else if(u&&u.schemes&&u.schemes.length)for(let e of u.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(u.servers||(u.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let r=p(t),n=o.parse(r.url);n.protocol=e,r.url=n.format(),u.servers.push(r)}if(r.debug&&(u["x-s2o-consumes"]=u.consumes||[],u["x-s2o-produces"]=u.produces||[]),u){if(delete u.consumes,delete u.produces,delete u.schemes,u["x-ms-examples"]){for(let e in u["x-ms-examples"]){let t=u["x-ms-examples"][e],r=m.sanitiseAll(e);if(t.parameters)for(let r in t.parameters){let n=t.parameters[r];for(let t of(u.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=c.jptr(i,t.$ref)),t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(let n in t.responses){if(t.responses[n].headers)for(let e in t.responses[n].headers){let r=t.responses[n].headers[e];for(let t in u.responses[n].headers)if(t===e){u.responses[n].headers[t].example=r}}if(t.responses[n].body&&(i.components.examples[r]={value:p(t.responses[n].body)},u.responses[n]&&u.responses[n].content))for(let t in u.responses[n].content){let o=u.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete u["x-ms-examples"]}if(u.parameters&&0===u.parameters.length&&delete u.parameters,u.requestBody){let r=u.operationId?m.sanitiseAll(u.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(u.requestBody["x-s2o-name"]||r||"");delete u.requestBody["x-s2o-name"];let i=JSON.stringify(u.requestBody),s=m.hash(i);if(!n[s]){let e={};e.name=o,e.body=u.requestBody,e.refs=[],n[s]=e}let l="#/"+t+"/"+encodeURIComponent(c.jpescape(a))+"/"+e+"/requestBody";n[s].refs.push(l)}}}if(s&&s.parameters){for(let e in s.parameters){C(s.parameters[e],null,s,null,a,i,r)}!r.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(j))}}}function L(e,t){let r={};b={schemas:{}},e.security&&A(e.security);for(let r in e.components.securitySchemes){let n=m.sanitise(r);r!==n&&(e.components.securitySchemes[n]&&w("Duplicate sanitised securityScheme name "+n,t),e.components.securitySchemes[n]=e.components.securitySchemes[r],delete e.components.securitySchemes[r]),E(e.components.securitySchemes[n],t)}for(let r in e.components.schemas){let n=m.sanitiseAll(r),o="";if(r!==n){for(;e.components.schemas[n+o];)o=o?++o:2;e.components.schemas[n+o]=e.components.schemas[r],delete e.components.schemas[r]}b.schemas[r]=n+o,S(e.components.schemas[n+o],t)}t.refmap={},d(e,{payload:{options:t}},O),function(e,t){for(let r in t.refmap)c.jptr(e,r,{$ref:t.refmap[r]})}(e,t);for(let r in e.components.parameters){let n=m.sanitise(r);r!==n&&(e.components.parameters[n]&&w("Duplicate sanitised parameter name "+n,t),e.components.parameters[n]=e.components.parameters[r],delete e.components.parameters[r]),C(e.components.parameters[n],null,null,null,n,e,t)}for(let r in e.components.responses){let n=m.sanitise(r);r!==n&&(e.components.responses[n]&&w("Duplicate sanitised response name "+n,t),e.components.responses[n]=e.components.responses[r],delete e.components.responses[r]);let o=e.components.responses[n];if(I(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete o.headers[e]):w('(Patchable) "Status Code" is not a valid header',t):_(o.headers[e],t)}for(let t in e.components.requestBodies){let n=e.components.requestBodies[t],o=JSON.stringify(n),i=m.hash(o),a={};a.name=t,a.body=n,a.refs=[],r[i]=a}if(R(e.paths,"paths",t,r,e),e["x-ms-paths"]&&R(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in r){let i=r[o];if(i.refs.length>1){let r="";for(i.name||(i.name="requestBody",r=t++);n.indexOf(i.name+r)>=0;)r=r?++r:2;i.name=i.name+r,n.push(i.name),e.components.requestBodies[i.name]=p(i.body);for(let t in i.refs){let r={};r.$ref="#/components/requestBodies/"+i.name,c.jptr(e,i.refs[t],r)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function N(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,(function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function M(e,t,r){if(void 0===e.info||null===e.info){if(!t.patch)return r(new x("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return r(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return r(new x("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return r(new x("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return r(new x("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return r(new x("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return r(new x("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(n){if(!t.patch)return r(new x("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function D(e,t,r){if(void 0===e.paths){if(!t.patch)return r(new x("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function B(e,t,r){return i(r,new Promise((function(r,n){if(e||(e={}),t.original=e,t.text||(t.text=s.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=r,t.promise.reject=n,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const r=new WeakSet;d(e,{identityDetection:!0},(function(e,n,o){"object"==typeof e[n]&&null!==e[n]&&(r.has(e[n])?t.anchors?e[n]=p(e[n]):w("YAML anchor or merge key at "+o.path,t):r.add(e[n]))}))}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=f(e),M(t.openapi,t,n),D(t.openapi,t,n),void h.optionalResolve(t).then((function(){return t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}));if(!e.swagger||"2.0"!=e.swagger)return n(new x("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:"3.0.0",t.origin){o["x-origin"]||(o["x-origin"]=[]);let r={};r.url=t.source||t.origin,r.format="swagger",r.version=e.swagger,r.converter={},r.converter.url="https://github.com/mermade/oas-kit",r.converter.version=y,o["x-origin"].push(r)}if(o=Object.assign(o,f(e)),delete o.swagger,d(o,{},(function(e,t,r){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let r={};r.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),N(r),o.servers||(o.servers=[]),o.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,N(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],r={};r.url=t.hostTemplate+(e.basePath?e.basePath:""),r.variables={};const n=r.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=p(l(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=n[e].replace("{","").replace("}","")),r.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(r):e.schemes.forEach(e=>{o.servers.push(Object.assign({},r,{url:e+"://"+r.url}))}),delete o["x-ms-parameterized-host"]}M(o,t,n),D(o,t,n),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,h.optionalResolve(t).then((function(){L(t.openapi,t),t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}))})))}function q(e,t,r){return i(r,new Promise((function(r,n){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(r){i=r;try{o=s.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?B(o,t).then(e=>r(e)).catch(e=>n(e)):n(new x(i?i.message:"Could not parse string"))})))}e.exports={S2OError:x,targetVersion:"3.0.0",convert:B,convertObj:B,convertUrl:function(e,t,r){return i(r,new Promise((function(r,n){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=a);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then((function(t){if(200!==t.status)throw new x(`Received status code ${t.status}: ${e}`);return t.text()})).then((function(e){q(e,t).then(e=>r(e)).catch(e=>n(e))})).catch((function(e){n(e)}))})))},convertStr:q,convertFile:function(e,t,r){return i(r,new Promise((function(r,o){n.readFile(e,t.encoding||"utf8",(function(n,i){n?o(n):(t.sourceFile=e,q(i,t).then(e=>r(e)).catch(e=>o(e)))}))})))},convertStream:function(e,t,r){return i(r,new Promise((function(r,n){let o="";e.on("data",(function(e){o+=e})).on("end",(function(){q(o,t).then(e=>r(e)).catch(e=>n(e))}))})))}}},function(e,t,r){e.exports=r(421)},function(e,t,r){e.exports=r(453)},function(e,t,r){e.exports=r(536)},function(e,t,r){var n=r(206),o=r(540),i=r(544);function a(t,r,s){return"undefined"!=typeof Reflect&&o?e.exports=a=o:e.exports=a=function(e,t,r){var o=i(e,t);if(o){var a=n(o,t);return a.get?a.get.call(r):a.value}},a(t,r,s||t)}e.exports=a},function(e,t,r){var n=r(552),o=r(555);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,r){var n=r(251),o=r(130),i=r(559),a=r(560);e.exports=function(e){var t=i();return function(){var r,i=o(e);if(t){var s=o(this).constructor;r=n(i,arguments,s)}else r=i.apply(this,arguments);return a(this,r)}}},function(e,t){e.exports=window.FormData},function(e,t,r){e.exports=r(566)},function(e,t,r){var n=r(576)(r(604));e.exports=n},function(e,t,r){"use strict";(function(t){ +var n=r(302),o=r(303),i=r(180);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function v(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 E(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return _(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,a=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;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){for(var p=!0,f=0;fo&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+p<=r)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<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),o+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r),p=0;po)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;on)&&(r=n);for(var o="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o>>8*(n?o:1-o)}function L(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o>>8*(n?o:3-o)&255}function N(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||N(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||N(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||I(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);I(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);I(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.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;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(26))},function(e,t,r){e.exports=r(383)},function(e,t,r){"use strict";var n=r(296),o=r(297);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(298);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?R+="x":R+=I[L];if(!R.match(d)){var M=C.slice(0,j),D=C.slice(j+1),B=I.match(h);B&&(M.push(B[1]),D.unshift(B[2])),D.length&&(b="/"+D.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+q,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[k])for(j=0,P=u.length;j0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=S.slice(-1)[0],E=(r.host||e.host||S.length>1)&&("."===A||".."===A)||""===A,j=0,_=S.length;_>=0;_--)"."===(A=S[_])?S.splice(_,1):".."===A?(S.splice(_,1),j++):j&&(S.splice(_,1),j--);if(!w&&!k)for(;j--;j)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var T,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(r.hostname=r.host=C?"":S.length?S.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n=r(448),o=r(449),i=r(158),a=r(452);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(22),o=r(38),i=r(70);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(22),o=r(192),i=r(30),a=r(111),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(22),o=r(13),i=r(29),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],l=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:c,p=i(t,1)?t[1]:void 0;return s[e]=!!r&&!o((function(){if(l&&!n)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:c}):e[1]=1,r.call(e,u,p)}))}},function(e,t,r){var n=r(563),o=r(564),i=r(158),a=r(565);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,l=[],u=!1,p=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p1)for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,f=!1;return{s:function(){r=n(e)},n:function(){var e=r.next();return p=e.done,e},e:function(e){f=!0,u=e},f:function(){try{p||null==r.return||r.return()}finally{if(f)throw u}}}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(85),o=r(109),i=r(44),a=r(54),s=r(148),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,p=6==e,f=5==e||p;return function(d,h,v,m){for(var g,y,b=i(d),x=o(b),w=n(h,v,3),k=a(x.length),S=0,O=m||s,A=t?O(d,k):r?O(d,0):void 0;k>S;S++)if((f||S in x)&&(y=w(g=x[S],S,b),e))if(t)A[S]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:c.call(A,g)}else if(u)return!1;return p?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(64),o=r(36);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){var n=r(162);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},function(e,t,r){e.exports=r(570)},function(e,t,r){var n=r(112),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){r(197);var n=r(340),o=r(16),i=r(72),a=r(37),s=r(61),c=r(14)("toStringTag");for(var l in n){var u=o[l],p=u&&u.prototype;p&&i(p)!==c&&a(p,c,l),s[l]=s.Array}},function(e,t,r){var n,o,i,a=r(198),s=r(16),c=r(17),l=r(37),u=r(29),p=r(113),f=r(87),d=s.WeakMap;if(a){var h=new d,v=h.get,m=h.has,g=h.set;n=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return m.call(h,e)}}else{var y=p("state");f[y]=!0,n=function(e,t){return l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){e.exports=null},function(e,t,r){e.exports=r(357)},function(e,t){"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}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,r){var n=r(146),o=r(38).f,i=r(37),a=r(29),s=r(338),c=r(14)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;a(u,c)||o(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",s)}}},function(e,t,r){var n=r(361),o=r(366);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){var n=r(73),o=r(362),i=r(363),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,r){var n=r(115),o=r(95),i=r(367),a=r(74),s=r(96),c=r(75),l=Object.prototype.hasOwnProperty,u=i((function(e,t){if(s(t)||a(t))o(t,c(t),e);else for(var r in t)l.call(t,r)&&n(e,r,t[r])}));e.exports=u},function(e,t,r){e.exports=r(437)},function(e,t,r){var n=r(136);function o(e,t){for(var r=0;r=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(30),o=r(233),i=r(54),a=r(85),s=r(121),c=r(232),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,u,p){var f,d,h,v,m,g,y,b=a(t,r,u?2:1);if(p)f=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,v=i(e.length);v>h;h++)if((m=u?b(n(y=e[h])[0],y[1]):b(e[h]))&&m instanceof l)return m;return new l(!1)}f=d.call(e)}for(g=f.next;!(y=g.call(f)).done;)if("object"==typeof(m=c(f,b,y.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,r){"use strict";function n(e){return null==e}e.exports.isNothing=n,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r"+e+"<\/script>"},h=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[p]=e):r=h(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(37);e.exports=function(e,t,r,o){o&&o.enumerable?e[t]=r:n(e,t,r)}},function(e,t,r){var n=r(60);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){var n=r(13),o=r(14),i=r(149),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(115),o=r(214);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s=0){let e=t.split("#");if(e[0])return!1;t=e[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let o=t.split("/");for(let t=0;t0?o[t-1]:"",-1!=a||e.hasOwnProperty(o[t]))if(a>=0)i&&(e[a]=r),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(r),r):void 0;i&&(e[o[t]]=r),e=e[o[t]]}else{if(void 0===r||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?r:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:n}},function(e,t,r){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},deepClone:function e(t){let r=Array.isArray(t)?[]:{};for(let n in t)(t.hasOwnProperty(n)||Array.isArray(t))&&(r[n]="object"==typeof t[n]?e(t[n]):t[n]);return r},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,r){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);try{var n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map(n=>({[n]:e(t[n],r)})))}}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,o)}));default:for(i=new Array(s-1),a=0;a0?n:r)(e)}},function(e,t,r){var n=r(144),o=r(114),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(214),o=r(116),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&eu;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(112),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(195),o=r(140).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(71),o=r(200);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(13);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n={};n[r(14)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(30),o=r(339);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(17),o=r(92),i=r(14)("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n,o,i=r(16),a=r(208),s=i.process,c=s&&s.versions,l=c&&c.v8;l?o=(n=l.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){var n=r(14);t.f=n},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var n=r(377),o=r(154),i=r(155),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var n=r(216),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,r(103)(e))},function(e,t,r){e.exports=r(388)},function(e,t){},function(e,t,r){var n=r(230),o=r(417),i=r(236);e.exports=function(e,t){var r;if(e){if("string"==typeof e)return i(e,t);var a=o(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?n(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}}},function(e,t,r){var n=r(91);e.exports=function(e,t,r){for(var o in t)r&&r.unsafe&&e[o]?e[o]=t[o]:n(e,o,t[o],r);return e}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){"use strict";var n=r(79);e.exports=new n({explicit:[r(489),r(490),r(491)]})},function(e,t,r){var n=r(125),o=r(100);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r=48&&u<=57)r=u-48;else if(u>=65&&u<=70)r=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=u,s=0;break}r=u-97+10}s=2;break;case 2:if(s=0,u>=48&&u<=57)n=u-48;else if(u>=65&&u<=70)n=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=i,a[l++]=u;break}n=u-97+10}a[l++]=16*r+n}}return a.slice(0,l-1)},n.unescape=i;for(var a=new Array(256),s=0;s<256;++s)a[s]="%"+((s<16?"0":"")+s.toString(16)).toUpperCase();n.escape=function(e){"string"!=typeof e&&(e+="");for(var t="",r=0,n=0;n=39&&o<=42||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122))if(n-r>0&&(t+=e.slice(r,n)),o<128)r=n+1,t+=a[o];else if(o<2048)r=n+1,t+=a[192|o>>6]+a[128|63&o];else if(o<55296||o>=57344)r=n+1,t+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o];else{var i;if(!(++n>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o]}}return 0===r?e:r0&&(p=u);var f=n.unescape;o&&"function"==typeof o.decodeURIComponent&&(f=o.decodeURIComponent);for(var d=f!==i,h=[],v=0,m=0,g=0,y="",b="",x=d,w=d,k=0,S=0;S0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(w=!0):k=0),g0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(x=!0):k=0)}43===O&&(g0&&(y+=e.slice(v,S)),y+="%20",x=!0):(S-v>0&&(b+=e.slice(v,S)),b+="%20",w=!0),v=S+1)}else if(++m===c){var A,E=S-m+1;if(g0&&(v0)&&(v=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(o=!1,n=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(41))},function(e,t,r){e.exports=r(638).YAML},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(t){const n=r(306),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function r(e,t){return n.stringify(e)===n.stringify(Object.assign({},e,t))}return r(e,t)&&r(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:o,uniqueOnly:function(e,t,r){return r.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e){t.find((function(e,t,n){return i(e,r)}))||t.push(r)}return t}(e).length},firstDupe:function(e){return e.find((function(t,r,n){return e.indexOf(t)e._pos){var i=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(i.length),s=0;se._pos&&(e.push(new n(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(r)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(41),r(32).Buffer,r(26))},function(e,t,r){(t=e.exports=r(185)).Stream=t,t.Readable=t,t.Writable=r(189),t.Duplex=r(68),t.Transform=r(191),t.PassThrough=r(317)},function(e,t,r){"use strict";(function(t,n){var o=r(106);e.exports=b;var i,a=r(180);b.ReadableState=y;r(186).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(187),l=r(107).Buffer,u=t.Uint8Array||function(){};var p=r(84);p.inherits=r(59);var f=r(311),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,v=r(312),m=r(188);p.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(68));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(190).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(68),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function x(e,t,r,n,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(o||(i=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):A(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(O,e):O(e))}function O(e){d("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,o=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,a),0===(e-=a)){a===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++o}return t.length-=o,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:b;function l(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",p),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",v),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function u(){d("onend"),e.end()}i.endEmitted?o.nextTick(c):r.once("end",c),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",p);var f=!1;var h=!1;function v(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",v),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e},b.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function p(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,u=v(c,l);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){e.exports=r(186).EventEmitter},function(e,t,r){"use strict";var n=r(106);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),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.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";(function(t,n,o){var i=r(106);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;y.WritableState=g;var l=r(84);l.inherits=r(59);var u={deprecate:r(316)},p=r(187),f=r(107).Buffer,d=o.Uint8Array||function(){};var h,v=r(188);function m(){}function g(e,t){s=s||r(68),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,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(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?(i.nextTick(o,n),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),O(e,t))}(e,r,n,t,o);else{var a=k(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?c(x,e,r,a,o):x(e,r,a,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.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||r(68),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),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)),p.call(this)}function b(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,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(),O(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback;if(b(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 k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(y,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,f.isBuffer(n)||n instanceof d);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=m),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r));return t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"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||n.finished||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(41),r(314).setImmediate,r(26))},function(e,t,r){"use strict";var n=r(107).Buffer,o=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 i(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===o||!o(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 a(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.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(e.lastNeed=o-1),o;if(--n=0)return o>0&&(e.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.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}},function(e,t,r){"use strict";e.exports=a;var n=r(68),o=r(84);function i(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.lengthc;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(29),o=r(42),i=r(138).indexOf,a=r(87);e.exports=function(e,t){var r,s=o(e),c=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){r(55);var n=r(341),o=r(72),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===i||e instanceof Array&&t===i.forEach||a.hasOwnProperty(o(e))?n:t}},function(e,t,r){"use strict";var n=r(42),o=r(143),i=r(61),a=r(56),s=r(201),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,r){var n=r(16),o=r(199),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(200),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(16),o=r(336),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){"use strict";var n=r(7),o=r(337),i=r(89),a=r(147),s=r(62),c=r(37),l=r(91),u=r(14),p=r(71),f=r(61),d=r(202),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g=function(){return this};e.exports=function(e,t,r,u,d,y,b){o(r,t,u);var x,w,k,S=function(e){if(e===d&&_)return _;if(!v&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",A=!1,E=e.prototype,j=E[m]||E["@@iterator"]||d&&E[d],_=!v&&j||S(d),T="Array"==t&&E.entries||j;if(T&&(x=i(T.call(new e)),h!==Object.prototype&&x.next&&(p||i(x)===h||(a?a(x,h):"function"!=typeof x[m]&&c(x,m,g)),s(x,O,!0,!0),p&&(f[O]=g))),"values"==d&&j&&"values"!==j.name&&(A=!0,_=function(){return j.call(this)}),p&&!b||E[m]===_||c(E,m,_),f[t]=_,d)if(w={values:S("values"),keys:y?_:S("keys"),entries:S("entries")},b)for(k in w)(v||A||!(k in E))&&l(E,k,w[k]);else n({target:t,proto:!0,forced:v||A},w);return w}},function(e,t,r){"use strict";var n,o,i,a=r(89),s=r(37),c=r(29),l=r(14),u=r(71),p=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):f=!0),null==n&&(n={}),u||c(n,p)||s(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(e,t,r){var n=r(13);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(145);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(43);e.exports=n("document","documentElement")},function(e,t,r){e.exports=r(345)},function(e,t,r){var n=r(350),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?n:t}},function(e,t,r){var n=r(43);e.exports=n("navigator","userAgent")||""},function(e,t,r){e.exports=r(352)},function(e,t,r){"use strict";var n=r(7),o=r(16),i=r(43),a=r(71),s=r(22),c=r(145),l=r(204),u=r(13),p=r(29),f=r(92),d=r(17),h=r(30),v=r(44),m=r(42),g=r(111),y=r(70),b=r(90),x=r(86),w=r(141),k=r(354),S=r(142),O=r(69),A=r(38),E=r(108),j=r(37),_=r(91),T=r(144),C=r(113),P=r(87),I=r(114),R=r(14),L=r(150),N=r(18),M=r(62),D=r(56),B=r(49).forEach,q=C("hidden"),F=R("toPrimitive"),z=D.set,U=D.getterFor("Symbol"),$=Object.prototype,H=o.Symbol,W=i("JSON","stringify"),V=O.f,Y=A.f,K=k.f,G=E.f,J=T("symbols"),Q=T("op-symbols"),X=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry"),ee=T("wks"),te=o.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&u((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=V($,t);n&&delete $[t],Y(e,t,r),n&&e!==$&&Y($,t,n)}:Y,oe=function(e,t){var r=J[e]=b(H.prototype);return z(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},ie=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ae=function(e,t,r){e===$&&ae(Q,t,r),h(e);var n=g(t,!0);return h(r),p(J,n)?(r.enumerable?(p(e,q)&&e[q][n]&&(e[q][n]=!1),r=b(r,{enumerable:y(0,!1)})):(p(e,q)||Y(e,q,y(1,{})),e[q][n]=!0),ne(e,n,r)):Y(e,n,r)},se=function(e,t){h(e);var r=m(t),n=x(r).concat(pe(r));return B(n,(function(t){s&&!ce.call(r,t)||ae(e,t,r[t])})),e},ce=function(e){var t=g(e,!0),r=G.call(this,t);return!(this===$&&p(J,t)&&!p(Q,t))&&(!(r||!p(this,t)||!p(J,t)||p(this,q)&&this[q][t])||r)},le=function(e,t){var r=m(e),n=g(t,!0);if(r!==$||!p(J,n)||p(Q,n)){var o=V(r,n);return!o||!p(J,n)||p(r,q)&&r[q][n]||(o.enumerable=!0),o}},ue=function(e){var t=K(m(e)),r=[];return B(t,(function(e){p(J,e)||p(P,e)||r.push(e)})),r},pe=function(e){var t=e===$,r=K(t?Q:m(e)),n=[];return B(r,(function(e){!p(J,e)||t&&!p($,e)||n.push(J[e])})),n};(c||(_((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),r=function(e){this===$&&r.call(Q,e),p(this,q)&&p(this[q],t)&&(this[q][t]=!1),ne(this,t,y(1,e))};return s&&re&&ne($,t,{configurable:!0,set:r}),oe(t,e)}).prototype,"toString",(function(){return U(this).tag})),_(H,"withoutSetter",(function(e){return oe(I(e),e)})),E.f=ce,A.f=ae,O.f=le,w.f=k.f=ue,S.f=pe,L.f=function(e){return oe(R(e),e)},s&&(Y(H.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||_($,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),B(x(ee),(function(e){N(e)})),n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(p(X,t))return X[t];var r=H(t);return X[t]=r,Z[r]=t,r},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(p(Z,e))return Z[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:u((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),W)&&n({target:"JSON",stat:!0,forced:!c||u((function(){var e=H();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(d(t)||void 0!==e)&&!ie(e))return f(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ie(t))return t}),o[1]=t,W.apply(null,o)}});H.prototype[F]||j(H.prototype,F,H.prototype.valueOf),M(H,"Symbol"),P[q]=!0},function(e,t,r){e.exports=r(355)},function(e,t,r){r(356);var n=r(12);e.exports=n.Object.keys},function(e,t,r){"use strict";var n=r(48),o=r(17),i=[].slice,a={},s=function(e,t,r){if(!(t in a)){for(var n=[],o=0;o=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=p("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,forced:!v||!m},{concat:function(e){var t,r,n,o,i,a=s(this),p=u(a,0),f=0;for(t=-1,n=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(p,f++,i)}return p.length=f,p}})},function(e,t,r){r(18)("iterator")},function(e,t,r){e.exports=r(414)},function(e,t,r){r(76),r(415);var n=r(12);e.exports=n.Array.from},function(e,t,r){var n=r(30);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(14),o=r(61),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(14)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n=r(419),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?n:t}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rr;)t.push(arguments[r++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},v=function(e){delete x[e]},"process"==c(m)?n=function(e){m.nextTick(k(e))}:y&&y.now?n=function(e){y.now(k(e))}:g&&!f?(i=(o=new g).port2,o.port1.onmessage=S,n=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(O)||"file:"===d.protocol?n="onreadystatechange"in p("script")?function(e){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(k(e),0)}:(n=O,a.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},function(e,t,r){var n=r(208);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(30),o=r(17),i=r(97);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(7),o=r(48),i=r(97),a=r(123),s=r(77);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=o(t.resolve),i=[],a=0,c=1;s(e,(function(e){var o=a++,s=!1;i.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,i[o]={status:"fulfilled",value:e},--c||n(i))}),(function(e){s||(s=!0,i[o]={status:"rejected",reason:e},--c||n(i))}))})),--c||n(i)}));return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(79);e.exports=new n({include:[r(247)]})},function(e,t,r){"use strict";var n=r(79);e.exports=new n({include:[r(161)],implicit:[r(492),r(493),r(494),r(495)]})},function(e,t,r){var n=r(530),o=r(531);e.exports=function(e,t){return null!=e&&o(e,t,n)}},function(e,t,r){e.exports=r(549)},function(e,t,r){r(554);var n=r(12).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){e.exports=r(556)},function(e,t,r){var n=r(577),o=r(600),i=r(151),a=r(31),s=r(601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},function(e,t,r){var n=r(584),o=r(50);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},function(e,t,r){var n=r(585),o=r(588),i=r(589);e.exports=function(e,t,r,a,s,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var f=c.get(e);if(f&&c.get(t))return f==t;var d=-1,h=!0,v=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++de.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&k("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else w("(Patchable) schema type must not be an array",r);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(r.patches++,delete e.allowEmptyValue)}(e,r,t)}))}function O(e,t,r){let n=r.payload.options;if(u(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],r.parent[r.pkey]=p(n.openapi.consumes);else if("#/produces"===e[t])delete e[t],r.parent[r.pkey]=p(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let r=e[t].replace("#/definitions/","").split("/");const o=c.jpunescape(r[0]);let i=b.schemas[decodeURIComponent(o)];i?r[0]=i:k("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+m.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+m.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let r=p(c.jptr(n.openapi,e[t]));if(!1===r)k("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let a="schemas",s=i.lastIndexOf("/schema");if(a=i.indexOf("/headers/")>s?"headers":i.indexOf("/responses/")>s?"responses":i.indexOf("/example")>s?"examples":i.indexOf("/x-")>s?"extensions":i.indexOf("/parameters/")>s?"parameters":"schemas","schemas"===a&&S(r,n),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&r.name&&r.name===m.sanitise(r.name)&&(i=encodeURIComponent(r.name));let s=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(m.sanitise(o)),s="");c.jptr(n.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let l="#/components/"+a+"/"+i+s,u="";"examples"===a&&(r={value:r},u="/value"),c.jptr(n.openapi,l,r),n.refmap[e[t]]=l+u,e[t]=l+u}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=r.path.indexOf("/schema")>=0;"preserve"===n.refSiblings||(i&&"allOf"===n.refSiblings?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:o},e]}):r.parent[r.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let r=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=b.schemas[decodeURIComponent(r[0])];o?r[0]=o:k("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}}function A(e){for(let t in e)for(let r in e[t]){let n=m.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function E(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let r={},n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),void 0!==e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):w("(Patchable) oauth2 securitySchemes should not have name property",t))}}function j(e){return e&&!e["x-s2o-delete"]}function _(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&k("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?k("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?k("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(k("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):w("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of m.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function T(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+m.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&k("Definition used as parameter",e,t)}function C(e,t,r,n,o,i,a){let s,c={},u=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return w("(Patchable) operation.consumes must be an array",a);a.patches++,t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let f=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){T(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),r=!1,n=i.components.parameters[t];if(n&&!n["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,r=!0),r){let t=e.$ref,r=l(i,e.$ref);!r&&t.startsWith("#/")?k("Could not resolve reference "+t,e,a):r&&(e=r)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(a.patch?(a.patches++,e.type="string"):w("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=l(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=l(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(a.patch?(a.patches++,delete e.collectionFormat):w("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":k("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":k("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(k("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)k("parameter has array,items and schema",e,a);else{e.schema&&a.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,d(e.schema.items,null,(function(r,n,o){"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&k("Nested collectionFormats are not supported",e,a),delete r[n])})));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&S(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema,e.schema.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};let r=c.content[t].schema,n=c.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),c.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),P(e,n)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",P(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(c.description=e.description),e.required&&(c.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),f.length||f.push("application/json");for(let t of f)c.content[t]={},c.content[t].schema=p(e.schema||{}),S(c.content[t].schema,a);P(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0,k("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=r[n]=function(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=m.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of m.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?(a.patches++,e.required=!0):w("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function P(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function I(e,t,r,n,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?k("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(o.patches++,e.description=g[e]||""):w("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(S(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&"string"==typeof r.produces){if(!o.patch)return w("(Patchable) operation.produces must be an array",o);o.patches++,r.produces=[r.produces]}n.produces&&!Array.isArray(n.produces)&&delete n.produces;let t=((r?r.produces:null)||n.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let r of t){if(e.content[r]={},e.content[r].schema=p(e.schema),e.examples&&e.examples[r]){let t={};t.value=e.examples[r],e.content[r].examples={},e.content[r].examples.response=t,delete e.examples[r]}"file"===e.content[r].schema.type&&(e.content[r].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?(o.patches++,delete e.headers[t]):w('(Patchable) "Status Code" is not a valid header',o):_(e.headers[t],o)}}function R(e,t,r,n,i){for(let a in e){let s=e[a];s&&s["x-trace"]&&"object"==typeof s["x-trace"]&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&"string"==typeof s["x-summary"]&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&"string"==typeof s["x-description"]&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let e in s)if(m.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let u=s[e];if(u&&u.parameters&&Array.isArray(u.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(T(t,r),t=l(i,t.$ref)),u.parameters.find((function(e,r,n){return e.name===t.name&&e.in===t.in}))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(u=C(t,u,s,e,a,i,r),r.rbname&&""===u[r.rbname]&&delete u[r.rbname])}for(let t of u.parameters)u=C(t,u,s,e,e+":"+a,i,r);r.rbname&&""===u[r.rbname]&&delete u[r.rbname],r.debug||u.parameters&&(u.parameters=u.parameters.filter(j))}if(u&&u.security&&A(u.security),"object"==typeof u){if(!u.responses){let e={description:"Default response"};u.responses={default:e}}for(let e in u.responses){I(u.responses[e],0,u,i,r)}}if(u&&u["x-servers"]&&Array.isArray(u["x-servers"]))u.servers=u["x-servers"],delete u["x-servers"];else if(u&&u.schemes&&u.schemes.length)for(let e of u.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(u.servers||(u.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let r=p(t),n=o.parse(r.url);n.protocol=e,r.url=n.format(),u.servers.push(r)}if(r.debug&&(u["x-s2o-consumes"]=u.consumes||[],u["x-s2o-produces"]=u.produces||[]),u){if(delete u.consumes,delete u.produces,delete u.schemes,u["x-ms-examples"]){for(let e in u["x-ms-examples"]){let t=u["x-ms-examples"][e],r=m.sanitiseAll(e);if(t.parameters)for(let r in t.parameters){let n=t.parameters[r];for(let t of(u.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=c.jptr(i,t.$ref)),t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(let n in t.responses){if(t.responses[n].headers)for(let e in t.responses[n].headers){let r=t.responses[n].headers[e];for(let t in u.responses[n].headers)if(t===e){u.responses[n].headers[t].example=r}}if(t.responses[n].body&&(i.components.examples[r]={value:p(t.responses[n].body)},u.responses[n]&&u.responses[n].content))for(let t in u.responses[n].content){let o=u.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete u["x-ms-examples"]}if(u.parameters&&0===u.parameters.length&&delete u.parameters,u.requestBody){let r=u.operationId?m.sanitiseAll(u.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(u.requestBody["x-s2o-name"]||r||"");delete u.requestBody["x-s2o-name"];let i=JSON.stringify(u.requestBody),s=m.hash(i);if(!n[s]){let e={};e.name=o,e.body=u.requestBody,e.refs=[],n[s]=e}let l="#/"+t+"/"+encodeURIComponent(c.jpescape(a))+"/"+e+"/requestBody";n[s].refs.push(l)}}}if(s&&s.parameters){for(let e in s.parameters){C(s.parameters[e],null,s,null,a,i,r)}!r.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(j))}}}function L(e,t){let r={};b={schemas:{}},e.security&&A(e.security);for(let r in e.components.securitySchemes){let n=m.sanitise(r);r!==n&&(e.components.securitySchemes[n]&&w("Duplicate sanitised securityScheme name "+n,t),e.components.securitySchemes[n]=e.components.securitySchemes[r],delete e.components.securitySchemes[r]),E(e.components.securitySchemes[n],t)}for(let r in e.components.schemas){let n=m.sanitiseAll(r),o="";if(r!==n){for(;e.components.schemas[n+o];)o=o?++o:2;e.components.schemas[n+o]=e.components.schemas[r],delete e.components.schemas[r]}b.schemas[r]=n+o,S(e.components.schemas[n+o],t)}t.refmap={},d(e,{payload:{options:t}},O),function(e,t){for(let r in t.refmap)c.jptr(e,r,{$ref:t.refmap[r]})}(e,t);for(let r in e.components.parameters){let n=m.sanitise(r);r!==n&&(e.components.parameters[n]&&w("Duplicate sanitised parameter name "+n,t),e.components.parameters[n]=e.components.parameters[r],delete e.components.parameters[r]),C(e.components.parameters[n],null,null,null,n,e,t)}for(let r in e.components.responses){let n=m.sanitise(r);r!==n&&(e.components.responses[n]&&w("Duplicate sanitised response name "+n,t),e.components.responses[n]=e.components.responses[r],delete e.components.responses[r]);let o=e.components.responses[n];if(I(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete o.headers[e]):w('(Patchable) "Status Code" is not a valid header',t):_(o.headers[e],t)}for(let t in e.components.requestBodies){let n=e.components.requestBodies[t],o=JSON.stringify(n),i=m.hash(o),a={};a.name=t,a.body=n,a.refs=[],r[i]=a}if(R(e.paths,"paths",t,r,e),e["x-ms-paths"]&&R(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in r){let i=r[o];if(i.refs.length>1){let r="";for(i.name||(i.name="requestBody",r=t++);n.indexOf(i.name+r)>=0;)r=r?++r:2;i.name=i.name+r,n.push(i.name),e.components.requestBodies[i.name]=p(i.body);for(let t in i.refs){let r={};r.$ref="#/components/requestBodies/"+i.name,c.jptr(e,i.refs[t],r)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function N(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,(function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function M(e,t,r){if(void 0===e.info||null===e.info){if(!t.patch)return r(new x("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return r(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return r(new x("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return r(new x("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return r(new x("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return r(new x("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return r(new x("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(n){if(!t.patch)return r(new x("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function D(e,t,r){if(void 0===e.paths){if(!t.patch)return r(new x("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function B(e,t,r){return i(r,new Promise((function(r,n){if(e||(e={}),t.original=e,t.text||(t.text=s.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=r,t.promise.reject=n,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const r=new WeakSet;d(e,{identityDetection:!0},(function(e,n,o){"object"==typeof e[n]&&null!==e[n]&&(r.has(e[n])?t.anchors?e[n]=p(e[n]):w("YAML anchor or merge key at "+o.path,t):r.add(e[n]))}))}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=f(e),M(t.openapi,t,n),D(t.openapi,t,n),void h.optionalResolve(t).then((function(){return t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}));if(!e.swagger||"2.0"!=e.swagger)return n(new x("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:"3.0.0",t.origin){o["x-origin"]||(o["x-origin"]=[]);let r={};r.url=t.source||t.origin,r.format="swagger",r.version=e.swagger,r.converter={},r.converter.url="https://github.com/mermade/oas-kit",r.converter.version=y,o["x-origin"].push(r)}if(o=Object.assign(o,f(e)),delete o.swagger,d(o,{},(function(e,t,r){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let r={};r.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),N(r),o.servers||(o.servers=[]),o.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,N(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],r={};r.url=t.hostTemplate+(e.basePath?e.basePath:""),r.variables={};const n=r.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=p(l(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=n[e].replace("{","").replace("}","")),r.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(r):e.schemes.forEach(e=>{o.servers.push(Object.assign({},r,{url:e+"://"+r.url}))}),delete o["x-ms-parameterized-host"]}M(o,t,n),D(o,t,n),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,h.optionalResolve(t).then((function(){L(t.openapi,t),t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}))})))}function q(e,t,r){return i(r,new Promise((function(r,n){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(r){i=r;try{o=s.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?B(o,t).then(e=>r(e)).catch(e=>n(e)):n(new x(i?i.message:"Could not parse string"))})))}e.exports={S2OError:x,targetVersion:"3.0.0",convert:B,convertObj:B,convertUrl:function(e,t,r){return i(r,new Promise((function(r,n){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=a);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then((function(t){if(200!==t.status)throw new x(`Received status code ${t.status}: ${e}`);return t.text()})).then((function(e){q(e,t).then(e=>r(e)).catch(e=>n(e))})).catch((function(e){n(e)}))})))},convertStr:q,convertFile:function(e,t,r){return i(r,new Promise((function(r,o){n.readFile(e,t.encoding||"utf8",(function(n,i){n?o(n):(t.sourceFile=e,q(i,t).then(e=>r(e)).catch(e=>o(e)))}))})))},convertStream:function(e,t,r){return i(r,new Promise((function(r,n){let o="";e.on("data",(function(e){o+=e})).on("end",(function(){q(o,t).then(e=>r(e)).catch(e=>n(e))}))})))}}},function(e,t,r){e.exports=r(421)},function(e,t,r){e.exports=r(453)},function(e,t,r){e.exports=r(536)},function(e,t,r){var n=r(206),o=r(540),i=r(544);function a(t,r,s){return"undefined"!=typeof Reflect&&o?e.exports=a=o:e.exports=a=function(e,t,r){var o=i(e,t);if(o){var a=n(o,t);return a.get?a.get.call(r):a.value}},a(t,r,s||t)}e.exports=a},function(e,t,r){var n=r(552),o=r(555);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,r){var n=r(251),o=r(130),i=r(559),a=r(560);e.exports=function(e){var t=i();return function(){var r,i=o(e);if(t){var s=o(this).constructor;r=n(i,arguments,s)}else r=i.apply(this,arguments);return a(this,r)}}},function(e,t){e.exports=window.FormData},function(e,t,r){e.exports=r(566)},function(e,t,r){var n=r(576)(r(604));e.exports=n},function(e,t,r){"use strict";(function(t){ /*! * @description Recursive object extending * @author Viacheslav Lotsmanov @@ -216,5 +211,5 @@ var dn=new WeakMap,hn=function(e){this.observers=new Map,this.obj=e},vn=function * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt - */const Pi=new WeakMap,Ii=(Ri=e=>t=>{if(!(t instanceof C))throw new Error("unsafeHTML can only be used in text bindings");const r=Pi.get(t);if(void 0!==r&&E(e)&&e===r.value&&t.value===r.fragment)return;const n=document.createElement("template");n.innerHTML=e;const o=document.importNode(n.content,!0);t.setValue(o),Pi.set(t,{value:e,fragment:o})},(...e)=>{const t=Ri(...e);return b.set(t,!0),t});var Ri;function Li(){var e=ba(["Requires"]);return Li=function(){return e},e}function Ni(){var e=ba(["",".  "]);return Ni=function(){return e},e}function Mi(){var e=ba(["
    "," Token in "," ","
    "]);return Mi=function(){return e},e}function Di(){var e=ba(["Requires"]);return Di=function(){return e},e}function Bi(){var e=ba(["",".  "]);return Bi=function(){return e},e}function qi(){var e=ba(["
    "," "," in Authorization header
    "]);return qi=function(){return e},e}function Fi(){var e=ba(["Requires"]);return Fi=function(){return e},e}function zi(){var e=ba(["",".  "]);return zi=function(){return e},e}function Ui(){var e=ba(["
    "," OAuth Token (",") in Authorization header
    "]);return Ui=function(){return e},e}function $i(){var e=ba([" "," "]);return $i=function(){return e},e}function Hi(){var e=ba(["
    Requires all of the following
    "]);return Hi=function(){return e},e}function Wi(){var e=ba(['
    OR
    ']);return Wi=function(){return e},e}function Vi(){var e=ba([" ",'
    ','
    ','
    ',"
    "]);return Vi=function(){return e},e}function Yi(){var e=ba(['
    ',"
    "]);return Yi=function(){return e},e}function Ki(){var e=ba([' '," "]);return Ki=function(){return e},e}function Gi(){var e=ba([' Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password.
    "]);return Gi=function(){return e},e}function Ji(){var e=ba([' "]);return Ji=function(){return e},e}function Qi(){var e=ba(["Send Authorization in header containing the word Bearer followed by a space and a Token String."]);return Qi=function(){return e},e}function Xi(){var e=ba(["Send "," in "," with the given value"]);return Xi=function(){return e},e}function Zi(){var e=ba([" ",'
    ',"
    "]);return Zi=function(){return e},e}function ea(){var e=ba(['
    ',"
    "]);return ea=function(){return e},e}function ta(){var e=ba([' ',' ']);return ta=function(){return e},e}function ra(){var e=ba(['
    '," ","
    "," "," "," "," "]);return ra=function(){return e},e}function na(){var e=ba([' ',"
    "]);return na=function(){return e},e}function oa(){var e=ba(['
    No API key applied
    ']);return oa=function(){return e},e}function ia(){var e=ba(['
    ',' API key applied
    ']);return ia=function(){return e},e}function aa(){var e=ba(['
    AUTHENTICATION
    ',"
    ","
    "]);return aa=function(){return e},e}function sa(){var e=ba(['
    ']);return sa=function(){return e},e}function ca(){var e=ba([' ']);return ca=function(){return e},e}function la(){var e=ba(['
    ']);return la=function(){return e},e}function ua(){var e=ba([' ']);return ua=function(){return e},e}function pa(){var e=ba([' ',""]);return pa=function(){return e},e}function fa(){var e=ba(['
    "]);return fa=function(){return e},e}function da(){var e=ba([' Scopes
    ',"
    "]);return da=function(){return e},e}function ha(){var e=ba([" ",'
    '," ","
    ",'
    ']);return ha=function(){return e},e}function va(){var e=ba(['
    Refresh URL ',"
    "]);return va=function(){return e},e}function ma(){var e=ba(['
    Token URL ',"
    "]);return ma=function(){return e},e}function ga(){var e=ba(['
    Auth URL ',"
    "]);return ga=function(){return e},e}function ya(){var e=ba(['
    ',"
    "," "," "," ","
    "]);return ya=function(){return e},e}function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xa(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function wa(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xa(i,n,o,a,s,"next",e)}function s(e){xa(i,n,o,a,s,"throw",e)}a(void 0)}))}}function ka(e,t){var r="",n=this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e);if(n){var o=t.target.closest("tr");if(n.type&&n.scheme&&"http"===n.type&&"basic"===n.scheme.toLowerCase()){var i=o.querySelector(".api-key-user").value.trim(),a=o.querySelector(".api-key-password").value.trim();i&&a&&(r="Basic ".concat(btoa("".concat(i,":").concat(a))))}else(r=o.querySelector(".api-key-input").value.trim())&&n.scheme&&"bearer"===n.scheme.toLowerCase()&&(r="Bearer ".concat(r));n.finalKeyValue=r}this.requestUpdate()}function Sa(){this.resolvedSpec.securitySchemes.forEach(e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""}),this.requestUpdate()}function Oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Bearer",r=arguments.length>2?arguments[2]:void 0,n=this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e);n.finalKeyValue="".concat("bearer"===t.toLowerCase()?"Bearer":"mac"===t.toLowerCase()?"MAC":t," ").concat(r),this.requestUpdate()}function Aa(e,t,r,n,o,i){return Ea.apply(this,arguments)}function Ea(){return(Ea=wa((function*(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"header",s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,u=c?c.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,f=new Headers;p.append("grant_type",o),"client_credentials"!==o&&p.append("redirect_uri",n),i&&p.append("code",i),"header"===a?f.set("Authorization","Basic ".concat(btoa("".concat(t,":").concat(r)))):(p.append("client_id",t),p.append("client_secret",r)),l&&p.append("scope",l);try{var d=yield fetch(e,{method:"POST",headers:f,body:p}),h=yield d.json();if(!d.ok)return u&&(u.innerHTML=''.concat(h.error_description||h.error_description||"Unable to get access token","")),!1;if(h.token_type&&h.access_token)return Oa.call(this,s,h.token_type,h.access_token),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}))).apply(this,arguments)}function ja(e,t,r,n,o,i,a,s,c,l){return _a.apply(this,arguments)}function _a(){return(_a=wa((function*(e,t,r,n,o,i,a,s,c,l){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||console.warn("RapiDoc: Received no data with authorization message"),e.data.error&&console.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?Aa.call(this,r,n,o,i,a,e.data.code,s,c,l):"token"===e.data.responseType&&Oa.call(this,c,e.data.token_type,e.data.access_token)))}))).apply(this,arguments)}function Ta(e,t,r,n,o){return Ca.apply(this,arguments)}function Ca(){return(Ca=wa((function*(e,t,r,n,o){var i,a=o.target.closest(".oauth-flow"),s=a.querySelector(".oauth-client-id")?a.querySelector(".oauth-client-id").value.trim():"",c=a.querySelector(".oauth-client-secret")?a.querySelector(".oauth-client-secret").value.trim():"",l=a.querySelector(".oauth-send-client-secret-in")?a.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...a.querySelectorAll('input[type="checkbox"]:checked')],p="".concat(Math.random().toString(36),"random").slice(2,9),f=new URL("".concat(window.location.origin).concat(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")),"/").concat(this.oauthReceiver)),d="",h="";if([...a.parentNode.querySelectorAll(".oauth-resp-display")].forEach(e=>{e.innerHTML=""}),"authorizationCode"===t||"implicit"===t){var v=new URL(r);"authorizationCode"===t?(d="authorization_code",h="code"):"implicit"===t&&(h="token");var m=new URLSearchParams(v.search),g=u.map(e=>e.value).join(" ");g&&m.set("scope",g),m.set("client_id",s),m.set("redirect_uri",f.toString()),m.set("response_type",h),m.set("state",p),m.set("show_dialog",!0),v.search=m.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout(()=>{(i=window.open(v.toString()))?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",t=>ja.call(this,t,i,n,s,c,f.toString(),d,l,e,a),{once:!0})):console.error("RapiDoc: Unable to open ".concat(v.toString()," in a new window"))},10)}else if("clientCredentials"===t){d="client_credentials";var y=u.map(e=>e.value).join(" ");Aa.call(this,n,s,c,f.toString(),d,"",l,e,a,y)}}))).apply(this,arguments)}function Pa(e,t,r,n,o){var i;return i="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,z(ya(),i,o.authorizationUrl?z(ga(),o.authorizationUrl):"",o.tokenUrl?z(ma(),o.tokenUrl):"",o.refreshUrl?z(va(),o.refreshUrl):"","authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?z(ha(),o.scopes?z(da(),Object.entries(o.scopes).map((t,r)=>z(fa(),e,r,t[0],e,r,t[0],t[0]!==t[1]?" - ".concat(t[1]||""):""))):"",t,"authorizationCode"===e||"clientCredentials"===e||"password"===e?z(pa(),r,"authorizationCode"===e||"clientCredentials"===e?z(ua()):""):z(la()),"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?z(ca(),t=>{Ta.call(this,n,e,o.authorizationUrl,o.tokenUrl,t)}):"","password"===e?z(sa()):""):"")}function Ia(){var e=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue);return z(aa(),"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap ",e.length>0?z(ia(),e.length,()=>{Sa.call(this)}):z(oa()),this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?z(na(),this.resolvedSpec.securitySchemes.map(e=>z(ra(),e.typeDisplay,e.finalKeyValue?z(ta(),e.finalKeyValue?"Key Applied":"",()=>{e.finalKeyValue="",this.requestUpdate()}):"",e.description?z(ea(),Ii(se()(e.description||""))):"","apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?z(Zi(),"apikey"===e.type.toLowerCase()?z(Xi(),e.name,e.in):z(Qi()),"cookie"!==e.in?z(Ji(),e.value,t=>{ka.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):""):"","http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?z(Gi(),e.user,e.password,t=>{ka.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):"","oauth2"===e.type.toLowerCase()?z(Ki(),Object.keys(e.flows).map(t=>Pa.call(this,t,e.clientId,e.clientSecret,e.apiKeyId,e.flows[t]))):""))):"")}function Ra(e){if(this.resolvedSpec.securitySchemes&&e){var t=[];return e.forEach(e=>{var r=[],n=[],o="";Object.keys(e).forEach(t=>{var i=this.resolvedSpec.securitySchemes.find(e=>e.apiKeyId===t);o||(o=e[t].join(", ")),i&&(n.push(i.typeDisplay),r.push(i))}),t.push({pathScopes:o,securityTypes:n.length>1?"".concat(n[0]," + ").concat(n.length-1," more"):n[0],securityDefs:r})}),z(Yi(),t.map((e,t)=>z(Vi(),0!==t?z(Wi()):"",e.securityTypes,e.securityDefs.length>1?z(Hi()):"",e.securityDefs.map((t,r)=>z($i(),"oauth2"===t.type?z(Ui(),e.securityDefs.length>1?z(zi(),r+1):z(Fi()),t.apiKeyId):"http"===t.type?z(qi(),e.securityDefs.length>1?z(Bi(),r+1):z(Di()),"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"):z(Mi(),e.securityDefs.length>1?z(Ni(),r+1):z(Li()),t.name,t.in))))))}return""}function La(){var e=Da(['
    ',"
    "]);return La=function(){return e},e}function Na(){var e=Da(['"]);return Na=function(){return e},e}function Ma(){var e=Da(['
    CODE SAMPLES
    ',"
    ","
    "]);return Ma=function(){return e},e}function Da(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ba(e){return z(Ma(),e=>{if(e.target.classList.contains("tab-btn")){var t=e.target.dataset.tab,r=[...e.currentTarget.querySelectorAll(".tab-btn")],n=[...e.currentTarget.querySelectorAll(".tab-content")];r.forEach(e=>e.classList[e.dataset.tab===t?"add":"remove"]("active")),n.forEach(e=>{e.style.display=e.dataset.tab===t?"block":"none"})}},e.map((e,t)=>z(Na(),0===t?"active":"",e.lang,t,e.label||e.lang)),e.map((e,t)=>z(La(),0===t?"block":"none",e.lang,t,t=>{Pe(e.source,t)},le.a.languages[e.lang.toLowerCase()]?Ii(le.a.highlight(e.source,le.a.languages[e.lang.toLowerCase()],e.lang.toLowerCase())):e.source)))}function qa(){var e=$a(['
    ','
    ','
    ']);return qa=function(){return e},e}function Fa(){var e=$a(['
    ',"
    "]);return Fa=function(){return e},e}function za(){var e=$a(['
    '," ","
    "]);return za=function(){return e},e}function Ua(){var e=$a(['
    CALLBACKS
    '," "]);return Ua=function(){return e},e}function $a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ha(e){return z(Ua(),Object.entries(e).map(e=>z(za(),e[0],Object.entries(e[1]).map(e=>z(Fa(),Object.entries(e[1]).map(t=>{var r,n,o;return z(qa(),t[0],t[0],e[0],t[0]||"",e[0]||"",(null===(r=t[1])||void 0===r?void 0:r.parameters)||"",(null===(n=t[1])||void 0===n?void 0:n.requestBody)||"",this.fillRequestFieldsWithExample,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,null===(o=t[1])||void 0===o?void 0:o.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded)}))))))}function Wa(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".border-top{border-top:1px solid var(--border-color)}.border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.pad-8-16{padding:8px 16px}.pad-top-8{padding-top:8px}.mar-top-8{margin-top:8px}"]);return Wa=function(){return e},e}var Va=ne(Wa());function Ya(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 Ka(e){for(var t=1;t{r+="".concat(e,", ")}),t.allowedValues=r.slice(0,-2)}if("array"===e.type&&e.items){var n=e.items;if(t.arrayType="".concat(e.type," of ").concat(n.type),t.default=0===n.default?"0 ":n.default?n.default:"",n.enum){var o="";n.enum.map(e=>{o+="".concat(e,", ")}),t.allowedValues=o.slice(0,-2)}}else"integer"===e.type||"number"===e.type?(void 0!==e.minimum&&void 0!==e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum," and ").concat(e.exclusiveMaximum?"<":"<="," ").concat(e.maximum):void 0!==e.minimum&&void 0===e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum):void 0===e.minimum&&void 0!==e.maximum&&(t.constrain="".concat(e.exclusiveMaximum?"<":"<=").concat(e.maximum)),void 0!==e.multipleOf&&(t.constrain="(multiple of ".concat(e.multipleOf,")"))):"string"===e.type&&(void 0!==e.minLength&&void 0!==e.maxLength?t.constrain="(".concat(e.minLength," to ").concat(e.maxLength," chars)"):void 0!==e.minLength&&void 0===e.maxLength?t.constrain="min ".concat(e.minLength," chars"):void 0===e.minLength&&void 0!==e.maxLength&&(t.constrain="max ".concat(e.maxLength," chars")));return t.html="".concat(t.type,"~|~").concat(t.readOrWriteOnly," ").concat(t.deprecated,"~|~").concat(t.constrain,"~|~").concat(t.default,"~|~").concat(t.allowedValues,"~|~").concat(t.pattern,"~|~").concat(t.description),t}}function Qa(e){if(""===e.example)return"";if(null===e.example)return null;if(0===e.example)return 0;if(e.example)return e.example;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;var t=e.format||e.type||(e.enum?"enum":"");switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t.toLowerCase()){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":case"decimal":return.5;case"string":return e.enum?e.enum[0]:e.pattern?e.pattern:"string";case"url":case"uri":return"http://example.com";case"byte":return btoa("string");case"binary":return"binary";case"boolean":return!1;case"date":return new Date(0).toISOString().split("T")[0];case"date-time":case"dateTime":return new Date(0).toISOString();case"password":return"password";case"enum":return e.enum[0];case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"email":return"user@example.com";case"hostname":return"example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";default:return e.nullable?null:e.$ref?"data of type ".concat(e.$ref):"?"}}function Xa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=" ".repeat(t),n="";if(1===t&&"object"!=typeof e)return"\n".concat(r).concat(e.toString());for(var o in e)n=Array.isArray(e[o])||"object"==typeof e[o]?"".concat(n,"\n").concat(r,"<").concat(o,"> ").concat(Xa(e[o],t+1),"\n").concat(r,""):"".concat(n,"\n").concat(r,"<").concat(o,"> ").concat(e[o].toString()," ");return n}function Za(e,t){e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description)}function es(e){if("object"==typeof e)for(var t in delete e["::TITLE"],delete e["::DESCRIPTION"],e)es(e[t])}function ts(e,t,r){for(var n in t)t[n][r]=e}function rs(e,t,r){var n=0,o={};for(var i in e)for(var a in r)o["example-".concat(n)]=Ka({},e[i]),o["example-".concat(n)][t]=r[a],n++;return o}function ns(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(e){if(e.allOf){var n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){var o=e.allOf[0];return Qa(o)}return}e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var r=ns(e,t);Object.assign(n,r)}else if("array"===e.type||e.items){var o=[ns(e,t)];Object.assign(n,o)}else{if(!e.type)return"";var i="prop".concat(Object.keys(n).length);n[i]=Qa(e)}}),r=n}else if(e.oneOf){if(e.oneOf.length>0){var i=0;for(var a in e.oneOf){var s=ns(e.oneOf[a],t);for(var c in s)r["example-".concat(i)]=s[c],Za(e.oneOf[a],r["example-".concat(i)]),i++}}}else if(e.anyOf){var l;if("object"===e.type||e.properties)for(var u in l={"example-0":{}},e.properties){if(e.example){l=e;break}e.properties[u].deprecated&&!t.includeDeprecated||(e.properties[u].readOnly&&!t.includeReadOnly||e.properties[u].writeOnly&&!t.includeWriteOnly||(l=rs(l,u,ns(e.properties[u],t))))}var p=0;for(var f in e.anyOf){var d=ns(e.anyOf[f],t);for(var h in d){if(void 0!==l)for(var v in l)r["example-".concat(p)]=Ka(Ka({},l[v]),d[h]);else r["example-".concat(p)]=d[h];Za(e.anyOf[f],r["example-".concat(p)]),p++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},Za(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(var m in e.properties){var g,y;if(!e.properties[m].deprecated||t.includeDeprecated)if(!e.properties[m].readOnly||t.includeReadOnly)if(!e.properties[m].writeOnly||t.includeWriteOnly)if("array"===e.properties[m].type||e.properties[m].items)if(e.properties[m].example)ts(e.properties[m].example,r,m);else if(null!==(g=e.properties[m])&&void 0!==g&&null!==(y=g.items)&&void 0!==y&&y.example)ts([e.properties[m].items.example],r,m);else{var b=ns(e.properties[m].items,t),x=[];for(var w in b)x[w]=[b[w]];r=rs(r,m,x)}else r=rs(r,m,ns(e.properties[m],t))}else{if("array"!==e.type&&!e.items)return{"example-0":Qa(e)};var k;if(e.example)r["example-0"]=e.example;else if(null!==(k=e.items)&&void 0!==k&&k.example)r["example-0"]=[e.items.example];else{var S=ns(e.items,t),O=0;for(var A in S)r["example-".concat(O)]=[S[A]],Za(e.items,r["example-".concat(O)]),O++}}return r}}function os(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e){if(e.allOf){var o={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){var i=e.allOf[0];return"".concat(Ja(i).html)}e.allOf.map((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var n=(e.anyOf||e.oneOf)&&t>0?t:"",i=os(e,{},r+1,n);Object.assign(o,i)}else if("array"===e.type||e.items){var a=os(e,{},r+1);Object.assign(o,a)}else{if(!e.type)return"";var s="prop".concat(Object.keys(o).length),c=Ja(e);o[s]="".concat(c.html)}}),t=o}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description?e.description:"","object"===e.type||e.properties)for(var a in t["::description"]=e.description?e.description:"",t["::type"]="object",e.properties)e.required&&e.required.includes(a)?t["".concat(a,"*")]=os(e.properties[a],{},r+1):t[a]=os(e.properties[a],{},r+1);var s={},c=e.anyOf?"anyOf":"oneOf";e[c].forEach((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var r=os(e,{});s["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=r,s["::type"]="xxx-of-option"}else if("array"===e.type||e.items){var n=[os(e,{})];s["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=n,s["::type"]="xxx-of-array"}else{var o="::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"");s[o]="".concat(Ja(e).html)}}),t[e.anyOf?"::ANY~OF ".concat(n):"::ONE~OF ".concat(n)]=s,t["::type"]="xxx-of"}else if("object"===e.type||e.properties){for(var l in t["::description"]=e.description?e.description:"",t["::type"]="object",e.properties)e.required&&e.required.includes(l)?t["".concat(l,"*")]=os(e.properties[l],{},r+1):t[l]=os(e.properties[l],{},r+1);e.additionalProperties&&(t[""]=os(e.additionalProperties,{}))}else{if(!e.items){var u=Ja(e);return u.html?"".concat(u.html):""}t["::description"]=e.description?e.description:e.items.description?"array<".concat(e.items.description,">"):"",t["::type"]="array",t["::props"]=os(e.items,{},r+1),t["::title"]=e.items.title?e.items.title:""}return t}}function is(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,a=[];if(e)for(var s in e){var c="",l="json";if(n.toLowerCase().includes("json")){if("text"===i)c="string"==typeof e[s].value?e[s].value:JSON.stringify(e[s].value,void 0,2),l="text";else if(c=e[s].value,"string"==typeof e[s].value)try{var u=e[s].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');c=JSON.parse(u),l="json"}catch(t){l="text",c=e[s].value}}else c=e[s].value,l="text";a.push({exampleId:s,exampleSummary:e[s].summary||s,exampleDescription:e[s].description||"",exampleType:n,exampleValue:c,exampleFormat:l})}else if(t){var p="",f="json";if(n.toLowerCase().includes("json")){if("text"===i)p="string"==typeof t?t:JSON.stringify(t,void 0,2),f="text";else if("object"==typeof t)p=t,f="json";else if("string"==typeof t)try{p=JSON.parse(t),f="json"}catch(e){f="text",p=t}}else p=t,f="text";a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:n,exampleValue:p,exampleFormat:f})}if(0===a.length)if(r)if(r.example)a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:n,exampleValue:r.example,exampleFormat:n.toLowerCase().includes("json")&&"object"==typeof r.example?"json":"text"});else if(n.toLowerCase().includes("json")||n.toLowerCase().includes("text")||n.toLowerCase().includes("*/*")||n.toLowerCase().includes("xml")){var d="",h="",v="",m="";n.toLowerCase().includes("xml")?(d=r.xml&&r.xml.name?"<".concat(r.xml.name,">"):"",h=r.xml&&r.xml.name?""):"",v="text"):v=i;var g=ns(r,{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0}),y=0;for(var b in g){var x=g[b]["::TITLE"]||"Example ".concat(++y),w=g[b]["::DESCRIPTION"]||"";es(g[b]),m=n.toLowerCase().includes("xml")?"".concat(d).concat(Xa(g[b]),"\n").concat(h):"text"===i?JSON.stringify(g[b],null,2):g[b],a.push({exampleId:b,exampleSummary:x,exampleDescription:w,exampleType:n,exampleFormat:v,exampleValue:m})}}else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:n,exampleValue:"",exampleFormat:"text"});else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:n,exampleValue:"",exampleFormat:"text"});return a}function as(){var e=vs(['',"",""]);return as=function(){return e},e}function ss(){var e=vs(['"','"',""]);return ss=function(){return e},e}function cs(){var e=vs(["",":"]);return cs=function(){return e},e}function ls(){var e=vs(['
    '," ","
    "]);return ls=function(){return e},e}function us(){var e=vs(['
    ','
    ','
    ',"","
    "]);return us=function(){return e},e}function ps(){var e=vs(["",""]);return ps=function(){return e},e}function fs(){var e=vs(['
    null
    ']);return fs=function(){return e},e}function ds(){var e=vs(['
    ',"
    "]);return ds=function(){return e},e}function hs(){var e=vs([":host{display:flex}.json-tree{font-family:var(--font-mono);font-size:var(--font-size-small);display:inline-block;overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket{padding-left:12px;border-left:1px dotted var(--border-color)}.open-bracket.collapsed+.inside-bracket,.open-bracket.collapsed+.inside-bracket+.close-bracket{display:none}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--purple)}.object{color:var(--fg)}.toolbar{display:flex;width:100%;padding:2px 0;color:var(--primary-color);font-family:var(--font-regular);margin-bottom:4px;align-items:center;font-size:calc(var(--font-size-small) - 1px)}"]);return hs=function(){return e},e}function vs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ms(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".tr{display:flex;flex:none;width:100%;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto;box-sizing:border-box}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.collapsed-descr .key{overflow:hidden}.key-descr{font-family:var(--font-regular);color:var(--light-fg);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none}.expanded-descr .key-descr{max-height:auto;overflow:hidden;display:none}.collapsed-descr .tr{max-height:20px}.tr.xxx-of{border-top:1px dotted var(--primary-color)}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-color-invert);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;margin-bottom:1px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);color:var(--primary-color);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.byte,.date,.emai,.host,.ipv4,.pass,.stri,.string,.uri,.url,.uuid{color:var(--green)}.deci .blue,.doub,.floa,.int3,.int6,.inte,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--purple)}.enum{color:var(--orange)}.recu{color:var(--brown)}.toolbar{display:flex;width:100%;padding:2px 0;color:var(--primary-color)}.toolbar-item{cursor:pointer;padding:5px 0;margin:0 2px}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:500px){.key-descr{display:block}.expanded-descr .key-descr{display:block}}"]);return ms=function(){return e},e}customElements.define("json-tree",class extends ie{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"},isLast:{type:Boolean}}}static get styles(){return[pe,Va,de,ne(hs()),je]}render(){return z(ds(),e=>{Pe(JSON.stringify(this.data,null,2),e)},this.generateTree(this.data,this.isLast))}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return z(fs());if("object"==typeof e&&e instanceof Date==!1){var r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?z(ps(),Array.isArray(e)?"[ ],":"{ },"):z(us(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{",Object.keys(e).map((t,n,o)=>z(ls(),"pure_object"===r?z(cs(),t):"",this.generateTree(e[t],n===o.length-1))),"array"===r?"]":"}",t?"":",")}return"string"==typeof e||e instanceof Date?z(ss(),typeof e,e,t?"":","):z(as(),typeof e,e,t?"":",")}toggleExpand(e){var t=e.target,r=t.nextSibling.nextSibling.innerHTML;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...".concat(r):"{...".concat(r)):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}});var gs=ne(ms());function ys(){var e=Xs(['',""]);return ys=function(){return e},e}function bs(){var e=Xs(['
    Pattern: ',"
    "]);return bs=function(){return e},e}function xs(){var e=Xs(['
    Allowed:   ',"
    "]);return xs=function(){return e},e}function ws(){var e=Xs(['
    Default: ',"
    "]);return ws=function(){return e},e}function ks(){var e=Xs(['
    ',"
    "]);return ks=function(){return e},e}function Ss(){var e=Xs(["",":"]);return Ss=function(){return e},e}function Os(){var e=Xs(['',""]);return Os=function(){return e},e}function As(){var e=Xs(["",'*:']);return As=function(){return e},e}function Es(){var e=Xs(['
    ',' '," ",'
    '," "," "," "," "," ","
    "]);return Es=function(){return e},e}function js(){var e=Xs(['
    ',"
    "]);return js=function(){return e},e}function _s(){var e=Xs(["",""]);return _s=function(){return e},e}function Ts(){var e=Xs(["",""]);return Ts=function(){return e},e}function Cs(){var e=Xs([" "," "]);return Cs=function(){return e},e}function Ps(){var e=Xs([" "," "]);return Ps=function(){return e},e}function Is(){var e=Xs(["",""]);return Is=function(){return e},e}function Rs(){var e=Xs(['ARRAY']);return Rs=function(){return e},e}function Ls(){var e=Xs(["",""]);return Ls=function(){return e},e}function Ns(){var e=Xs([""," ",' *']);return Ns=function(){return e},e}function Ms(){var e=Xs(['','',""]);return Ms=function(){return e},e}function Ds(){var e=Xs(['
    '," "," "," ",'
    ','
    ',"
    "," "]);return Ds=function(){return e},e}function Bs(){var e=Xs(['[...]']);return Bs=function(){return e},e}function qs(){var e=Xs(['[']);return qs=function(){return e},e}function Fs(){var e=Xs(['[[...]]']);return Fs=function(){return e},e}function zs(){var e=Xs(['[[']);return zs=function(){return e},e}function Us(){var e=Xs(['{...}']);return Us=function(){return e},e}function $s(){var e=Xs(['{']);return $s=function(){return e},e}function Hs(){var e=Xs(['[{...}]']);return Hs=function(){return e},e}function Ws(){var e=Xs(['[{']);return Ws=function(){return e},e}function Vs(){var e=Xs(['',":{ }"]);return Vs=function(){return e},e}function Ys(){var e=Xs(['
    null
    ']);return Ys=function(){return e},e}function Ks(){var e=Xs([' Schema not found ']);return Ks=function(){return e},e}function Gs(){var e=Xs([" ",""]);return Gs=function(){return e},e}function Js(){var e=Xs(['
    ','
    ','
    '," ","
    "]);return Js=function(){return e},e}function Qs(){var e=Xs([".tree{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.tree .tr:hover{background-color:var(--hover-color)}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + 8px)}.collapsed-descr .m-markdown-small p{line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.close-bracket{display:inline-block;font-family:var(--font-mono)}.tr.collapsed+.inside-bracket,.tr.collapsed+.inside-bracket+.close-bracket{display:none}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}"]);return Qs=function(){return e},e}function Xs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zs(){var e=nc([".tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,.tag{padding:3px;margin:2px}.tag{border:1px solid var(--border-color);background-color:var(--bg3);color:var(--fg3);border-radius:var(--border-radius);word-break:break-all;font-size:var(--font-size-small)}.tag:hover~#cursor{display:block}.editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}.editor::placeholder{color:var(--placeholder-color);opacity:1}"]);return Zs=function(){return e},e}function ec(){var e=nc([' '," "]);return ec=function(){return e},e}function tc(){var e=nc(["",""]);return tc=function(){return e},e}function rc(){var e=nc(['
    ','
    ']);return rc=function(){return e},e}function nc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ie{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,gs,Va,ne(Qs()),je]}render(){return z(Js(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",this.data?this.data["::type"]:"",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",this.data?Ii(se()(this.data["::description"]||"")):"",this.data?z(Gs(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],"","")):z(Ks()))}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(delete e["::title"],!e)return z(Ys());if(0===Object.keys(e).length)return z(Vs(),r);var i="",a="";if(r.startsWith("::ONE~OF")||r.startsWith("::ANY~OF"))i=r.replace("::","").replace("~"," ");else if(r.startsWith("::OPTION")){var s=r.split("~");i=s[1],a=s[2]}else i=r;var c=300-12*o,l="",u="";if("object"===e["::type"]?"array"===t?(l=o0&&!(r.startsWith("::props")||r.startsWith("::ONE~")||r.startsWith("::ANY~")||r.startsWith("::OPTION~")||r.startsWith("::ARRAY~OF"))?":":"","xxx-of"===e["::type"]&&"array"===t?z(Rs()):"",l,Ii(se()(n||"")),e["::type"]||"no-type-info","xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:12,Array.isArray(e)&&e[0]?z(Is(),this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",o)):z(Ps(),Object.keys(e).map(t=>z(Cs(),["::description","::type","::props"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?z(Ts(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1)):"":z(_s(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1))))),e["::type"]&&e["::type"].includes("xxx-of")?"":z(js(),u));var p=e.split("~|~"),f=p[0].replace("{","").substring(0,4).toLowerCase();return z(Es(),c,i.endsWith("*")?z(As(),i.substring(0,i.length-1)):r.startsWith("::OPTION")?z(Os(),i):z(Ss(),i),f,"array"===t?"[".concat(p[0],"]"):"".concat(p[0]),p[1],"array"===t?n:"",p[2]?z(ks(),p[2]):"",p[3]?z(ws(),p[3]):"",p[4]?z(xs(),p[4]):"",p[5]?z(bs(),p[5]):"",p[6]?z(ys(),Ii(se()(p[6]))):"")}toggleObjectExpand(e){var t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}});function oc(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function ic(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){oc(i,n,o,a,s,"next",e)}function s(e){oc(i,n,o,a,s,"throw",e)}a(void 0)}))}}function ac(){var e=El([' ']);return ac=function(){return e},e}function sc(){var e=El(['
    No API key applied
    ']);return sc=function(){return e},e}function cc(){var e=El(['
    ',"
    "]);return cc=function(){return e},e}function lc(){var e=El(['
    ','
    Authentication
    ',"
    ",'
    '," "]);return lc=function(){return e},e}function uc(){var e=El(['
    API Server
    ',"
    "]);return uc=function(){return e},e}function pc(){var e=El(['
    '," ","
    "]);return pc=function(){return e},e}function fc(){var e=El(['"]);return fc=function(){return e},e}function dc(){var e=El([' "]);return dc=function(){return e},e}function hc(){var e=El(["",""]);return hc=function(){return e},e}function vc(){var e=El(['
    ',"\n              
    "]);return vc=function(){return e},e}function mc(){var e=El(['']);return mc=function(){return e},e}function gc(){var e=El(['
    ',"
    "]);return gc=function(){return e},e}function yc(){var e=El(['
    Response Status: ','
    ','
    ','
    ',"
    "]);return yc=function(){return e},e}function bc(){var e=El(['',""]);return bc=function(){return e},e}function xc(){var e=El([' "," "]);return xc=function(){return e},e}function wc(){var e=El([' Example: ','
    '," "," "]);return wc=function(){return e},e}function kc(){var e=El([' '," "," "]);return kc=function(){return e},e}function Sc(){var e=El([' '," "]);return Sc=function(){return e},e}function Oc(){var e=El([' Allowed: ']);return Oc=function(){return e},e}function Ac(){var e=El([" "," ",""]);return Ac=function(){return e},e}function Ec(){var e=El(["","
    "]);return Ec=function(){return e},e}function jc(){var e=El(['Default: ',"
    "]);return jc=function(){return e},e}function _c(){var e=El(['
    '," "," ","
    "]);return _c=function(){return e},e}function Tc(){var e=El([" "," "]);return Tc=function(){return e},e}function Cc(){var e=El(['']);return Cc=function(){return e},e}function Pc(){var e=El([" "," "]);return Pc=function(){return e},e}function Ic(){var e=El(['
    "]);return Ic=function(){return e},e}function Rc(){var e=El(['
    ']);return Rc=function(){return e},e}function Lc(){var e=El(['
    '," ","
    "]);return Lc=function(){return e},e}function Nc(){var e=El([" ",""]);return Nc=function(){return e},e}function Mc(){var e=El([' ']);return Mc=function(){return e},e}function Dc(){var e=El(['
    ']);return Dc=function(){return e},e}function Bc(){var e=El(["",""]);return Bc=function(){return e},e}function qc(){var e=El(['*',""]);return qc=function(){return e},e}function Fc(){var e=El(['
    ','
    ','
    '," "," ",""]);return Fc=function(){return e},e}function zc(){var e=El([' ',"
    "]);return zc=function(){return e},e}function Uc(){var e=El([" "," ",""]);return Uc=function(){return e},e}function $c(){var e=El(['
    ',"
    "]);return $c=function(){return e},e}function Hc(){var e=El(['
    ',"
    "]);return Hc=function(){return e},e}function Wc(){var e=El(['
    '," ","
    "]);return Wc=function(){return e},e}function Vc(){var e=El(['
    ',"
    "]);return Vc=function(){return e},e}function Yc(){var e=El(['*']);return Yc=function(){return e},e}function Kc(){var e=El(['
    REQUEST BODY ',' ',' ',"
    "," ","
    "]);return Kc=function(){return e},e}function Gc(){var e=El([" ",' ']);return Gc=function(){return e},e}function Jc(){var e=El([" ",' ']);return Jc=function(){return e},e}function Qc(){var e=El(['
    ']);return Qc=function(){return e},e}function Xc(){var e=El(['
    ',"
    "]);return Xc=function(){return e},e}function Zc(){var e=El(['
    ',"
    "]);return Zc=function(){return e},e}function el(){var e=El(['
    '," ",'
    "]);return el=function(){return e},e}function tl(){var e=El(['"]);return tl=function(){return e},e}function rl(){var e=El([' "]);return rl=function(){return e},e}function nl(){var e=El([" ",'
    '," ","
    "]);return nl=function(){return e},e}function ol(){var e=El([' "]);return ol=function(){return e},e}function il(){var e=El([' "]);return il=function(){return e},e}function al(){var e=El([" ◇"]);return al=function(){return e},e}function sl(){var e=El([" "," ",' '," "," "]);return sl=function(){return e},e}function cl(){var e=El([' Example: '," "]);return cl=function(){return e},e}function ll(){var e=El([' ']);return ll=function(){return e},e}function ul(){var e=El([' '," "]);return ul=function(){return e},e}function pl(){var e=El([' Allowed: ']);return pl=function(){return e},e}function fl(){var e=El([" "," ",""]);return fl=function(){return e},e}function dl(){var e=El(["","
    "]);return dl=function(){return e},e}function hl(){var e=El(['Default: ',"
    "]);return hl=function(){return e},e}function vl(){var e=El(['
    '," "," ","
    "]);return vl=function(){return e},e}function ml(){var e=El([' ']);return ml=function(){return e},e}function gl(){var e=El([' "]);return gl=function(){return e},e}function yl(){var e=El([' ']);return yl=function(){return e},e}function bl(){var e=El([' '," "]);return bl=function(){return e},e}function xl(){var e=El(['*']);return xl=function(){return e},e}function wl(){var e=El(['
    ',"",'
    ',"
    ",' '," ",' '," "," "]);return wl=function(){return e},e}function kl(){var e=El(['
    ','
    ',"
    "]);return kl=function(){return e},e}function Sl(){var e=El(["",""]);return Sl=function(){return e},e}function Ol(){var e=El(['
    ',"
    "," "," "," "," "," ","
    "]);return Ol=function(){return e},e}function Al(){var e=El([".read-mode{margin-top:24px}.param-name,.param-type{margin:1px 0;text-align:right;line-height:var(--font-size-small)}.param-name{color:var(--fg);font-family:var(--font-mono)}.param-type{color:var(--light-fg);font-family:var(--font-regular)}.param-constraint{min-width:100px}.param-constraint:empty{display:none}.top-gap{margin-top:24px}.textarea{min-height:220px;padding:5px;resize:vertical}.example:first-child{margin-top:-9px}.response-message{font-weight:700;text-overflow:ellipsis}.response-message.error{color:var(--red)}.response-message.success{color:var(--blue)}.file-input-container{align-items:flex-end}.file-input-container .input-set:first-child .file-input-remove-btn{visibility:hidden}.file-input-remove-btn{font-size:16px;color:var(--red);outline:0;border:none;background:0 0;cursor:pointer}.v-tab-btn{font-size:var(--smal-font-size);height:24px;border:none;background:0 0;opacity:.3;cursor:pointer;padding:4px 8px}.v-tab-btn.active{font-weight:700;background:var(--bg);opacity:1}@media only screen and (min-width:768px){.textarea{padding:8px}}"]);return Al=function(){return e},e}function El(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ie{render(){return z(rc(),Array.isArray(this.value)&&this.value.length>0?z(tc(),this.value.map(e=>z(ec(),e))):"",this.afterPaste,this.afterKeyDown,this.placeholder||"")}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}attributeChangedCallback(e,t,r){if("value"===e&&r&&t!==r){var n=r.split(",").filter(e=>""!==e.trim());this.value=n||""}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),e.target.value&&(Array.isArray(this.value)?this.value=[...this.value,e.target.value]:this.value=[e.target.value],e.target.value="")):8===e.keyCode&&0===e.target.value.length&&Array.isArray(this.value)&&this.value.length>0&&(this.value.splice(-1),this.value=[...this.value])}static get styles(){return[ne(Zs())]}});function jl(){var e=Gl(['',""]);return jl=function(){return e},e}function _l(){var e=Gl(['
    Pattern:   ',"
    "]);return _l=function(){return e},e}function Tl(){var e=Gl(['
    Allowed:   ',"
    "]);return Tl=function(){return e},e}function Cl(){var e=Gl(['
    Default: ',"
    "]);return Cl=function(){return e},e}function Pl(){var e=Gl(['
    ',"
    "]);return Pl=function(){return e},e}function Il(){var e=Gl(["",""]);return Il=function(){return e},e}function Rl(){var e=Gl(['',""]);return Rl=function(){return e},e}function Ll(){var e=Gl(["",'*']);return Ll=function(){return e},e}function Nl(){var e=Gl(['
    ','
    ',' ','
    '," "," "," "," "," ","
    "]);return Nl=function(){return e},e}function Ml(){var e=Gl(["",""]);return Ml=function(){return e},e}function Dl(){var e=Gl([" "," "]);return Dl=function(){return e},e}function Bl(){var e=Gl(['',""]);return Bl=function(){return e},e}function ql(){var e=Gl([' ','*']);return ql=function(){return e},e}function Fl(){var e=Gl(['','',""]);return Fl=function(){return e},e}function zl(){var e=Gl([' '," "]);return zl=function(){return e},e}function Ul(){var e=Gl(['
    '," ",'
    ','
    ',"
    "]);return Ul=function(){return e},e}function $l(){var e=Gl([" ",'
    ',"
    "]);return $l=function(){return e},e}function Hl(){var e=Gl(['',""]);return Hl=function(){return e},e}function Wl(){var e=Gl(['
    null
    ']);return Wl=function(){return e},e}function Vl(){var e=Gl([" ",""]);return Vl=function(){return e},e}function Yl(){var e=Gl(['
    ','
    ',' ','
    Field
    Type
    Description
    ',"
    "]);return Yl=function(){return e},e}function Kl(){var e=Gl([".table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.table .key{width:240px}.table .key-type{white-space:normal;width:70px}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + var(--font-size-small) + 4px)}.obj-toggle{padding:0 2px;border-radius:2px;border:1px solid transparent;display:inline-block;margin-left:-16px;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.obj-toggle:hover{border-color:var(--primary-color)}.tr.expanded+.object-body{display:block}.tr.collapsed+.object-body{display:none}"]);return Kl=function(){return e},e}function Gl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ie{constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},allowTry:{type:String,attribute:"allow-try"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"},renderedOnce:{type:Boolean}}}static get styles(){return[ge,de,pe,ve,Va,Se,we,ne(Al()),je]}render(){return z(Ol(),"read focused".includes(this.renderStyle)||"true"===this.callback?"read-mode":"view-mode","true"===this.callback?"tiny-title":"req-res-title","true"===this.callback?"CALLBACK REQUEST":"REQUEST",this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":z(Sl(),this.apiCallTemplate()))}updated(e){"focused"===this.renderStyle&&(1===e.size&&e.has("activeSchemaTab")||[...this.shadowRoot.querySelectorAll('textarea[data-ptype="form-data"]')].forEach(e=>{var t=this.shadowRoot.querySelector("textarea[data-pname='hidden-".concat(e.dataset.pname,"']"));t&&(e.value=t.value)}))}inputParametersTemplate(e){var t=this,r="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===n.length)return"";"path"===e?r="PATH PARAMETERS":"query"===e?r="QUERY-STRING PARAMETERS":"header"===e?r="REQUEST HEADERS":"cookie"===e&&(r="COOKIES");var o=[],i=function(r){if(!r.schema)return"continue";var n=Ja(r.schema),i="",a=[],s="form",c=!0;if("query"===e&&(r.style&&"form spaceDelimited pipeDelimited".includes(r.style)&&(s=r.style),"boolean"==typeof r.explode&&(c=r.explode)),r.example=void 0===r.example?"":Array.isArray(r.example)?r.example:"".concat(r.example),r.example)i="array"===n.type?r.example:"".concat(r.example),a=[{value:r.example,description:"".concat(r.example)}];else if(n.example)i="array"===n.type?n.example:"".concat(n.example),a=[{value:n.example,description:"".concat(n.example)}];else if(r.examples&&Object.values(r.examples).length>0)if(Array.isArray(r.examples)){var l=Object.values(r.examples)[0]||"";i="array"===n.type?[l]:l,a=Object.values(r.examples).map(e=>({value:e,description:e}))}else{var u;i=null===(u=Object.values(r.examples)[0])||void 0===u?void 0:u.value,a=Object.values(r.examples).map(e=>({value:e.value,description:e.description||e.summary||e.value}))}o.push(z(wl(),"true"===t.allowTry?"1":"2",r.required?z(xl()):"",r.name,"array"===n.type?"".concat(n.arrayType):"".concat(n.format?n.format:n.type),"true"===t.allowTry?z(bl(),"array"===n.type||"object"===n.type?"read focused".includes(t.renderStyle)?"300px":"220px":"160px","array"===n.type?z(yl(),e,r.name,Array.isArray(i)?i.join("~|~"):i,s,c,Array.isArray(i)?i.join(","):i):"object"===n.type?z(gl(),e,r.name,i,s,c,"read focused".includes(t.renderStyle)?"180px":"120px","true"===t.fillRequestFieldsWithExample?i:""):z(ml(),"password"===n.format?"password":"text",e,r.name,Array.isArray(i)?i.join("~|~"):i,"true"===t.fillRequestFieldsWithExample?i:"")):"","true"===t.allowTry?"1":"2",n.default||n.constrain||n.allowedValues?z(vl(),n.default?z(hl(),n.default):"",n.constrain?z(dl(),n.constrain):"",n.allowedValues&&n.allowedValues.split(",").map((e,o)=>z(fl(),o>0?" | ":z(pl()),z(ul(),"true"===t.allowTry?"":"inactive-link","array"===n.type?n.type:"string",e.trim(),e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(r.name,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):"","true"===t.allowTry?z(ll()):"",Ii(se()(r.description||"")),Array.isArray(a)&&a.length>0?z(cl(),a.map((e,o)=>{var i;return z(sl(),0===o?"":z(al()),"array"===n.type?"[":"","true"===t.allowTry?"":"inactive-link","array"===n.type?n.type:"string","array"===n.type?(null===(i=e.value)||void 0===i?void 0:i.join("~|~"))||"":e.value||"",e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(r.name,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},e.description||"","array"===n.type?"] ":"")})):""))};for(var a of n)i(a);return z(kl(),r,o)}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;var t=e.target;window.setTimeout(e=>{var t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value},0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;var t=e.target;this.selectedRequestBodyExample="",window.setTimeout(e=>{var t=e.closest(".request-body-container").querySelector(".request-body-param");t&&(e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value)},0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";var e,t="",r="",n="",o="",i=[],a=this.request_body.content;for(var s in a)i.push({mimeType:s,schema:a[s].schema,example:a[s].example,examples:a[s].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=s);return e=1===i.length?"":z(il(),e=>this.onMimeTypeChange(e),i.map(e=>z(ol(),e.mimeType,e.mimeType===this.selectedRequestBodyType,e.mimeType))),i.forEach(e=>{var i,a=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(a=is(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text"),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=a.length>0?a[0].exampleId:""),o=z(nl(),o,1===a.length?"":z(rl(),e=>this.onSelectExample(e),a.map(e=>z(tl(),e.exampleId,e.exampleId===this.selectedRequestBodyExample,e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId))),a.filter(e=>e.exampleId===this.selectedRequestBodyExample).map(t=>z(el(),t.exampleId===this.selectedRequestBodyExample?"example-selected":"",t.exampleId,t.exampleSummary&&t.exampleSummary.length>80?z(Zc(),t.exampleSummary):"",t.exampleDescription?z(Xc(),Ii(se()(t.exampleDescription||""))):"",e.mimeType,t.exampleValue,t.exampleFormat,"true"===this.fillRequestFieldsWithExample?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2):"",e.mimeType.substring(e.mimeType.indexOf("/")+1),e.mimeType,"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2)))));else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){var s=is(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text");e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,s[0]?s[0].exampleValue:""))}}else RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=z(Qc(),e.mimeType));(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text"))&&(i=os(e.schema,{}),"table"===this.schemaStyle?n=z(Jc(),n,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded):"tree"===this.schemaStyle&&(n=z(Gc(),n,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded)))}),z(Kc(),this.selectedRequestBodyType,this.request_body.required?z(Yc()):"",this.selectedRequestBodyType,e,this.request_body.description?z(Vc(),Ii(se()(this.request_body.description))):"",this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?z(Wc(),e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",z(Hc(),"model"===this.activeSchemaTab?"block":"none",n),z($c(),"model"===this.activeSchemaTab?"none":"block",o)):z(Uc(),t,r))}formDataTemplate(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=[];if(e.properties){var i=function(n){var i,a,s,c=e.properties[n],l=c.type,u=os(c,{}),p=Ja(c),f=is("",c.example?c.example:"",c,"json",!1,"text");o.push(z(Fc(),c.required?z(qc(),n):z(Bc(),n),p.type,"object"===l?"width:100%; padding:0;":"true"===r.allowTry?"width:160px;":"display:none;","object"===l?2:1,"array"===l?"binary"===(null===(i=c.items)||void 0===i?void 0:i.format)?z(Dc(),e=>r.onAddRemoveFileInput(e,n,t),n,t.includes("form-urlencode")?"form-urlencode":"form-data"):z(Mc(),t.includes("form-urlencode")?"form-urlencode":"form-data",n,Array.isArray(c.example)?c.example.join("~|~"):c.example||"",Array.isArray(c.example)?c.example.join(","):c.example):z(Nc(),"object"===l?z(Lc(),e=>{if(e.target.classList.contains("v-tab-btn")){var t=e.target.dataset.tab;if(t){var n=e.target.closest(".tab-panel"),o=n.querySelector('.v-tab-btn[data-tab="'.concat(t,'"]')),i=[...n.querySelectorAll('.v-tab-btn:not([data-tab="'.concat(t,'"])'))],a=n.querySelector('.tab-content[data-tab="'.concat(t,'"]')),s=[...n.querySelectorAll('.tab-content:not([data-tab="'.concat(t,'"])'))];o.classList.add("active"),a.style.display="block",i.forEach(e=>{e.classList.remove("active")}),s.forEach(e=>{e.style.display="none"})}}"button"===e.target.tagName.toLowerCase()&&(r.activeSchemaTab=e.target.dataset.tab)},"model"===r.activeSchemaTab?"active":"","example"===r.activeSchemaTab?"active":"",z(Rc(),"model"===r.activeSchemaTab?"block":"none",u,r.schemaExpandLevel,r.schemaDescriptionExpanded),z(Ic(),"example"===r.activeSchemaTab?"block":"none",t.includes("form-urlencode")?"form-urlencode":"form-data",n,(null===(a=f[0])||void 0===a?void 0:a.exampleValue)||"","true"===r.fillRequestFieldsWithExample?f[0].exampleValue:"",n,t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data",f[0].exampleValue)):z(Pc(),"true"===r.allowTry?z(Cc(),"true"===r.fillRequestFieldsWithExample&&c.example||"","binary"===c.format?"file":"password"===c.format?"password":"text",t.includes("form-urlencode")?"form-urlencode":"form-data",n,c.example||""):"")),"object"===l?"":z(Tc(),p.default||p.constrain||p.allowedValues?z(_c(),p.default?z(jc(),p.default):"",p.constrain?z(Ec(),p.constrain):"",p.allowedValues&&p.allowedValues.split(",").map((e,t)=>z(Ac(),t>0?" | ":z(Oc()),z(Sc(),"true"===r.allowTry?"":"inactive-link","array"===p.type?p.type:"string",e.trim(),e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(n,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):""),"object"===l?"":z(kc(),Ii(se()(c.description||"")),p.example?z(wc(),"array"===p.type?"[ ":"","true"===r.allowTry?"":"inactive-link","array"===p.type?p.type:"string","array"===p.type?(null===(s=p.example)||void 0===s?void 0:s.join("~|~"))||"":p.example,e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(n,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},"array"===p.type?p.example.join(", "):p.example,"array"===p.type?"] ":""):"")))};for(var a in e.properties)i(a);return z(zc(),o)}return z(xc(),t,t,n,e.description?z(bc(),Ii(se()(e.description))):"")}apiResponseTabTemplate(){var e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return z(yc(),this.responseStatus,this.responseMessage,this.clearResponseData,e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)},"response"===this.activeResponseTab?"active":"","headers"===this.activeResponseTab?"active":"","curl"===this.activeResponseTab?"active":"",this.responseIsBlob?z(gc(),"response"===this.activeResponseTab?"flex":"none",this.downloadResponseBlob,"view"===this.responseBlobType?z(mc(),this.viewResponseBlob):""):z(vc(),"response"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseText,e)},e?z(hc(),Ii(le.a.highlight(this.responseText,le.a.languages[e],e))):"".concat(this.responseText)),"headers"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseHeaders,e)},Ii(le.a.highlight(this.responseHeaders,le.a.languages.css,"css")),"curl"===this.activeResponseTab?"flex":"none",e=>{Pe(this.curlSyntax.replace(/\\$/,""),e)},Ii(le.a.highlight(this.curlSyntax.trim().replace(/\\$/,""),le.a.languages.shell,"shell")))}apiCallTemplate(){var e="";this.servers&&this.servers.length>0&&(e=z(dc(),e=>{this.serverUrl=e.target.value},this.servers.map(e=>z(fc(),e.url,e.url,e.description))));var t=z(pc(),e,this.serverUrl?z(uc(),this.serverUrl):"");return z(lc(),t,this.api_keys.length>0?z(cc(),1===this.api_keys.length?"".concat(this.api_keys[0].typeDisplay,"' in ").concat(this.api_keys[0].in):"".concat(this.api_keys.length," API keys applied")):z(sc()),this.parameters.length>0||this.request_body?z(ac(),this.onFillRequestData,this.onClearRequestData):"",this.onTryClick,""===this.responseMessage?"":this.apiResponseTabTemplate())}onFillRequestData(e){return ic((function*(){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)})}))()}onClearRequestData(e){return ic((function*(){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.value=""})}))()}onTryClick(e){var t=this;return ic((function*(){var r,n,o,i=t,a=e.target,s="",c="",l="",u=e.target.closest(".request-panel"),p=[...u.querySelectorAll("[data-ptype='path']")],f=[...u.querySelectorAll("[data-ptype='query']")],d=[...u.querySelectorAll("[data-ptype='query-object']")],h=[...u.querySelectorAll("[data-ptype='header']")],v=u.querySelector(".request-body-container");r=i.path;var m={method:t.method.toUpperCase(),headers:{}};if(p.map(e=>{r=r.replace("{".concat(e.dataset.pname,"}"),encodeURIComponent(e.value))}),f.length>0){var g=new URLSearchParams;f.forEach(e=>{if("false"===e.dataset.array)""!==e.value&&g.append(e.dataset.pname,e.value);else{var t=e.dataset.paramSerializeStyle,r=e.dataset.paramSerializeExplode,n=e.value&&Array.isArray(e.value)?e.value:[];"spaceDelimited"===t?g.append(e.dataset.pname,n.join(" ")):"pipeDelimited"===t?g.append(e.dataset.pname,n.join("|")):"true"===r?n.forEach(t=>{g.append(e.dataset.pname,t)}):g.append(e.dataset.pname,n.join(","))}}),r="".concat(r).concat(g.toString()?"?":"").concat(g.toString())}if(d.length>0){var y=new URLSearchParams;d.map(e=>{try{var t={},n=e.dataset.paramSerializeStyle,o=e.dataset.paramSerializeExplode;t=Object.assign(t,JSON.parse(e.value.replace(/\s+/g," ")));var i=function(e){"object"==typeof t[e]?Array.isArray(t[e])&&("spaceDelimited"===n?y.append(e,t[e].join(" ")):"pipeDelimited"===n?y.append(e,t[e].join("|")):"true"===o?t[e].forEach(t=>{y.append(e,t)}):y.append(e,t[e])):y.append(e,t[e])};for(var a in t)i(a);r="".concat(r).concat(y.toString()?"?":"").concat(y.toString())}catch(t){console.log("RapiDoc: unable to parse %s into object",e.value)}})}(t.api_keys.filter(e=>"query"===e.in).forEach(e=>{r="".concat(r).concat(r.includes("?")?"&":"?").concat(e.name,"=").concat(encodeURIComponent(e.finalKeyValue))}),!1===(r="".concat(t.serverUrl.replace(/\/$/,"")).concat(r)).startsWith("http"))?n=new URL(r,window.location.href).href:n=r;if(o="curl -X ".concat(t.method.toUpperCase(),' "').concat(n,'" \\\n'),t.accept&&(m.headers.Accept=t.accept,s+=' -H "Accept: '.concat(t.accept,'" \\\n')),t.api_keys.filter(e=>"header"===e.in).forEach(e=>{m.headers[e.name]=e.finalKeyValue,s+=' -H "'.concat(e.name,": ").concat(e.finalKeyValue,'" \\\n')}),h.map(e=>{e.value&&(m.headers[e.dataset.pname]=e.value,s+=' -H "'.concat(e.dataset.pname,": ").concat(e.value,'" \\\n'))}),v){var b=v.dataset.selectedRequestBodyType;if(b.includes("form-urlencoded")){var x=u.querySelector("[data-ptype='dynamic-form']");if(x){var w,k=x.value,S=new URLSearchParams,O=!0;if(k)try{w=JSON.parse(k)}catch(e){O=!1,console.warn("RapiDoc: Invalid JSON provided",e)}else O=!1;if(O){for(var A in w)S.append(A,JSON.stringify(w[A]));m.body=S,c=" -d ".concat(S.toString()," \\\n")}}else{var E=[...u.querySelectorAll("[data-ptype='form-urlencode']")],j=new URLSearchParams;E.filter(e=>"file"!==e.type).forEach(e=>{if("false"===e.dataset.array)e.value&&j.append(e.dataset.pname,e.value);else{var t=e.value&&Array.isArray(e.value)?e.value.join(","):"";j.append(e.dataset.pname,t)}}),m.body=j,c=" -d ".concat(j.toString()," \\\n")}}else if(b.includes("form-data")){var _=new FormData;[...u.querySelectorAll("[data-ptype='form-data']")].forEach(e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(_.append(e.dataset.pname,e.files[0],e.files[0].name),l+=' -F "'.concat(e.dataset.pname,"=@").concat(e.files[0].name,'" \\\n')):e.value&&(_.append(e.dataset.pname,e.value),l+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'" \\\n')):e.value&&Array.isArray(e.value)&&(e.value.forEach(t=>{l="".concat(l,' -F "').concat(e.dataset.pname,"[]=").concat(t,'" \\\n')}),_.append(e.dataset.pname,e.value.join(",")))}),m.body=_}else if(RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(b)){var T=u.querySelector(".request-body-param-file");T&&T.files[0]&&(m.body=T.files[0],c=" --data-binary @".concat(T.files[0].name," \\\n"))}else if(b.includes("json")||b.includes("xml")||b.includes("text")){var C=u.querySelector(".request-body-param-user-input");if(C&&C.value){m.body=C.value;try{c=" -d '".concat(JSON.stringify(JSON.parse(C.value)),"' \\\n")}catch(e){c=" -d '".concat(C.value.replace(/(\r\n|\n|\r)/gm,""),"' \\\n")}}}b.includes("form-data")||(m.headers["Content-Type"]=b),s+=' -H "Content-Type: '.concat(b,'" \\\n')}i.responseUrl="",i.responseHeaders="",i.curlSyntax="",i.responseStatus="success",i.responseIsBlob=!1,i.respContentDisposition="",i.responseBlobUrl&&(URL.revokeObjectURL(i.responseBlobUrl),i.responseBlobUrl=""),i.curlSyntax="".concat(o).concat(s).concat(c).concat(l);try{a.disabled=!0;var P=yield fetch(r,m);a.disabled=!1,i.responseStatus=P.ok?"success":"error",i.responseMessage="".concat(P.statusText,":").concat(P.status),i.responseUrl=P.url,P.headers.forEach((e,t)=>{i.responseHeaders="".concat(i.responseHeaders).concat(t.trim(),": ").concat(e,"\n")});var I=P.headers.get("content-type");if(I){if(I.includes("json")?P.json().then(e=>{i.responseText=JSON.stringify(e,null,2)}):RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(I)?(i.responseIsBlob=!0,i.responseBlobType="download"):RegExp("^audio|^image|^video").test(I)?(i.responseIsBlob=!0,i.responseBlobType="view"):P.text().then(e=>{i.responseText=e}),i.responseIsBlob){var R=P.headers.get("content-disposition");i.respContentDisposition=R?R.split("filename=")[1]:"filename",P.blob().then(e=>{i.responseBlobUrl=URL.createObjectURL(e)})}}else P.text().then(e=>{i.responseText=e})}catch(e){a.disabled=!1,i.responseMessage="".concat(e.message," (CORS or Network Issue)")}}))()}onAddRemoveFileInput(e,t,r){if("button"===e.target.tagName.toLowerCase())if(e.target.classList.contains("file-input-remove-btn")){e.target.closest(".input-set").remove()}else{var n=e.target.closest(".file-input-container"),o=document.createElement("div");o.setAttribute("class","input-set row");var i=document.createElement("input");i.type="file",i.style="width:200px; margin-top:2px;",i.setAttribute("data-pname",t),i.setAttribute("data-ptype",r.includes("form-urlencode")?"form-urlencode":"form-data"),i.setAttribute("data-array","false"),i.setAttribute("data-file-array","true");var a=document.createElement("button");a.setAttribute("class","file-input-remove-btn"),a.innerHTML="✕",o.appendChild(i),o.appendChild(a),n.insertBefore(o,e.target)}}downloadResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}viewResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.target="_blank",e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});function Jl(){var e=Ru([' ']);return Jl=function(){return e},e}function Ql(){var e=Ru([' ']);return Ql=function(){return e},e}function Xl(){var e=Ru([" ",""]);return Xl=function(){return e},e}function Zl(){var e=Ru(['
     Schema not found
    ']);return Zl=function(){return e},e}function eu(){var e=Ru(["
    ","
    "]);return eu=function(){return e},e}function tu(){var e=Ru([' ']);return tu=function(){return e},e}function ru(){var e=Ru(['
    ',"
    "]);return ru=function(){return e},e}function nu(){var e=Ru(['
    ',"
    "]);return nu=function(){return e},e}function ou(){var e=Ru(['
    '," "," ","
    "]);return ou=function(){return e},e}function iu(){var e=Ru(['"]);return iu=function(){return e},e}function au(){var e=Ru([' "," "]);return au=function(){return e},e}function su(){var e=Ru(['
    ',"
    "]);return su=function(){return e},e}function cu(){var e=Ru([' ']);return cu=function(){return e},e}function lu(){var e=Ru([" ",""]);return lu=function(){return e},e}function uu(){var e=Ru([" "," "]);return uu=function(){return e},e}function pu(){var e=Ru(['
     No example provided 
    ']);return pu=function(){return e},e}function fu(){var e=Ru(['"]);return fu=function(){return e},e}function du(){var e=Ru([' "]);return du=function(){return e},e}function hu(){var e=Ru([' ',' ','
    ','
    '," "]);return hu=function(){return e},e}function vu(){var e=Ru(['
    Response Headers:
    ',"
    "]);return vu=function(){return e},e}function mu(){var e=Ru(['
    ',"
    "]);return mu=function(){return e},e}function gu(){var e=Ru(['
    ',"
    "]);return gu=function(){return e},e}function yu(){var e=Ru(["",""]);return yu=function(){return e},e}function bu(){var e=Ru([' '," "]);return bu=function(){return e},e}function xu(){var e=Ru(['
    ',"
    ","
    "]);return xu=function(){return e},e}function wu(){var e=Ru(["",""]);return wu=function(){return e},e}function ku(){var e=Ru(['
    '," ","
    ","
    "]);return ku=function(){return e},e}function Su(){var e=Ru(["",""]);return Su=function(){return e},e}function Ou(){var e=Ru([' "]);return Ou=function(){return e},e}function Au(){var e=Ru([" ",""]);return Au=function(){return e},e}function Eu(){var e=Ru(['
    ',"
    "]);return Eu=function(){return e},e}function ju(){var e=Ru([" "," "," "]);return ju=function(){return e},e}function _u(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 Tu(e){for(var t=1;t
    ',"
    ","
    "]);return Pu=function(){return e},e}function Iu(){var e=Ru([".resp-head{vertical-align:middle;padding:16px 0 8px}.resp-head.divider{border-top:1px solid var(--border-color);margin-top:10px}.resp-status{font-weight:700;font-size:calc(var(--font-size-small) + 1px)}.resp-descr{font-size:calc(var(--font-size-small) + 1px);color:var(--light-fg)}.top-gap{margin-top:16px}.example-panel{font-size:var(--font-size-small);margin:0}.focused-mode,.read-mode{padding-top:24px;margin-top:12px;border-top:1px dashed var(--border-color)}"]);return Iu=function(){return e},e}function Ru(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-table",class extends ie{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,gs,ne(Kl()),je]}render(){return z(Yl(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",this.data?this.data["::type"]:"",this.data?Ii(se()(this.data["::description"]||"")):"",this.data?z(Vl(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])):"")}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=16*o;if(!e)return z(Wl());if(0===Object.keys(e).length)return z(Hl(),i,r);var a="",s="";if(r.startsWith("::ONE~OF")||r.startsWith("::ANY~OF"))a=r.replace("::","").replace("~"," ");else if(r.startsWith("::OPTION")){var c=r.split("~");a=c[1],s=c[2]}else a=r;if("object"==typeof e)return z($l(),o>0?z(Ul(),othis.toggleObjectExpand(e,a),oz(Dl(),["::description","::type","::props"].includes(t)?"":z(Ml(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::title"]&&!Number.isNaN(t)?e[t]["::title"]:t,e[t]["::description"],o+1)))));var l=e.split("~|~"),u=l[0].replace("{","").substring(0,4).toLowerCase();return z(Nl(),i,a.endsWith("*")?z(Ll(),a.substring(0,a.length-1)):r.startsWith("::OPTION")?z(Rl(),a):z(Il(),a),u,"array"===t?"[".concat(l[0],"]"):l[0],l[1],"array"===t?n:"",l[2]?z(Pl(),l[2]):"",l[3]?z(Cl(),l[3]):"",l[4]?z(Tl(),l[4]):"",l[5]?z(_l(),l[5]):"",l[6]?z(jl(),Ii(se()(l[6]))):"")}toggleObjectExpand(e){var t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.add("collapsed"),t.classList.remove("expanded"),e.target.innerText="+"):(t.classList.remove("collapsed"),t.classList.add("expanded"),e.target.innerText="-")}});function Lu(){var e=$u(['
    ','
    ','
    ',"
    "]);return Lu=function(){return e},e}function Nu(){var e=$u([" "," "]);return Nu=function(){return e},e}function Mu(){var e=$u(['
    ',"
    "]);return Mu=function(){return e},e}function Du(){var e=$u(['
    ',' ',"
    "]);return Du=function(){return e},e}function Bu(){var e=$u([' '," ",""]);return Bu=function(){return e},e}function qu(){var e=$u(['

    ',"

    ",""]);return qu=function(){return e},e}function Fu(){var e=$u(['
    DEPRECATED
    ']);return Fu=function(){return e},e}function zu(){var e=$u(['
    ']);return zu=function(){return e},e}function Uu(){var e=$u([" ",'
    '," "," "," "," ",'
    ','
    ']);return Uu=function(){return e},e}function $u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Hu(e){var t,r,n=new Set;for(var o in e.responses)for(var i in null===(a=e.responses[o])||void 0===a?void 0:a.content){var a;n.add(i.trim())}var s=[...n].join(", "),c=this.resolvedSpec.securitySchemes.filter(t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some(e=>t.apiKeyId in e))})||[],l=this.resolvedSpec.securitySchemes.find(e=>e.apiKeyId===Te&&"-"!==e.value);l&&c.push(l);var u=e.xCodeSamples?Ba.call(this,e.xCodeSamples):"";return z(Uu(),"read"===this.renderStyle?z(zu()):"",e.method,e.deprecated?"deprecated":"",e.method,e.path.replace(_e,"-"),e.deprecated?z(Fu()):"",z(qu(),e.deprecated?"gray-text":"",e.summary||z(Bu(),e.deprecated?" method-fg gray-text":e.method,e.method,e.path),e.summary?z(Du(),e.deprecated?" gray-text":" bold-text ".concat(e.method),e.method,e.deprecated?"gray-text":"",e.path):""),e.description?z(Mu(),Ii(se()(e.description||""))):"",Ra.call(this,e.security),u,e.method,e.path,e.parameters,e.requestBody,c,e.servers,(null===(t=e.servers)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.url)||this.selectedServer.computedUrl,this.fillRequestFieldsWithExample,this.allowTry,s,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Ha.call(this,e.callbacks):"",e.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function Wu(){return z(Nu(),this.resolvedSpec.tags.map(e=>z(Lu(),e.name.replace(_e,"-"),e.name,Ii("
    ".concat(se()(e.description?e.description:""),"
    ")),e.paths.map(e=>Hu.call(this,e)))))}function Vu(){var e=Xu(['
    ',"
    "]);return Vu=function(){return e},e}function Yu(){var e=Xu(['
    ',"
    "]);return Yu=function(){return e},e}function Ku(){var e=Xu([""]);return Ku=function(){return e},e}function Gu(){var e=Xu([" "," "]);return Gu=function(){return e},e}function Ju(){var e=Xu(['
    ',"
    "]);return Ju=function(){return e},e}function Qu(){var e=Xu(['

    ',"

    "," "]);return Qu=function(){return e},e}function Xu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zu(e){return z(Qu(),e.name,e.name,e.description?z(Ju(),Ii(se()(e.description||""))):"")}function ep(){var e="",t={},r={},n=0;if("overview"===(e=this.selectedContentId?this.selectedContentId:"overview")||"authentication"===e||"api-servers"===e)t={},r={};else if(e.startsWith("tag--")){var o=e.replace("tag--","");r=this.resolvedSpec.tags.find(e=>e.name===o)}else{for(n=0;n"".concat(t.method,"-").concat(t.path)===e)));n+=1);var i;if(!t)r=this.resolvedSpec.tags[0],t=null===(i=this.resolvedSpec.tags[0])||void 0===i?void 0:i.paths[0]}return z(Gu(),"overview"===e||"authentication"===e||"api-servers"===e?z(Ku()):e.startsWith("tag--")?z(Yu(),Zu.call(this,r)):z(Vu(),Hu.call(this,t)))}function tp(){var e=lp(['
    '," ","
    "]);return tp=function(){return e},e}function rp(){var e=lp([' "]);return rp=function(){return e},e}function np(){var e=lp([" ",""]);return np=function(){return e},e}function op(){var e=lp(['
    ',"
    "]);return op=function(){return e},e}function ip(){var e=lp(['
    ',"
    "]);return ip=function(){return e},e}function ap(){var e=lp(['
    '," "," "," ",'
    ','
    ']);return ap=function(){return e},e}function sp(){var e=lp([' deprecated ']);return sp=function(){return e},e}function cp(){var e=lp(['
    ','
    ',"
    ",'
    ',"
    "]);return cp=function(){return e},e}function lp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function up(e){if(e.expanded)e.expanded=!1,window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0]));else{e.expanded=!0;var t="#".concat(e.method,"-").concat(e.path.replace(_e,"-"));window.location.hash!==t&&window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0]).concat(t))}this.requestUpdate()}function pp(e){return z(cp(),t=>{up.call(this,e,t)},e.method,e.deprecated?"deprecated":"",e.expanded?"expanded":"collapsed",e.method,e.deprecated?"deprecated":"",e.method,e.deprecated?"deprecated":"",e.path,e.deprecated?z(sp()):"",Ii(se()(e.summary||"")))}function fp(e){var t=new Set;for(var r in e.responses)for(var n in null===(o=e.responses[r])||void 0===o?void 0:o.content){var o;t.add(n.trim())}var i=[...t].join(", "),a=this.resolvedSpec.securitySchemes.filter(t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some(e=>t.apiKeyId in e))})||[],s=this.resolvedSpec.securitySchemes.find(e=>e.apiKeyId===Te&&"-"!==e.value);s&&a.push(s);var c=e.xCodeSamples?Ba(e.xCodeSamples):"";return z(ap(),e.method,e.deprecated?"deprecated":"",e.summary&&e.summary!==e.description?z(ip(),e.summary):"",e.description?z(op(),Ii(se()(e.description))):"",Ra.call(this,e.security),c,e.method,e.path,e.parameters,e.requestBody,a,e.servers,e.servers&&e.servers.length>0?e.servers[0].url:this.selectedServer.computedUrl,this.defaultSchemaTab,this.fillRequestFieldsWithExample,this.allowTry,i,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Ha.call(this,e.callbacks):"",e.responses,this.defaultSchemaTab,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function dp(){return z(np(),this.resolvedSpec.tags.map(e=>z(rp(),e.expanded?"expanded":"collapsed",()=>{e.expanded=!e.expanded,this.requestUpdate()},e.name.replace(_e,"-"),e.name,Ii(se()(e.description||"")),e.paths.filter(e=>!this.matchPaths||Ie(this.matchPaths,e)).map(e=>z(tp(),e.method,e.path.replace(_e,"-"),e.method,e.expanded?"expanded":"collapsed",pp.call(this,e),e.expanded?fp.call(this,e):"")))))}function hp(){var e=Ap(['- '," "]);return hp=function(){return e},e}function vp(){var e=Ap(['
    "]);return vp=function(){return e},e}function mp(){var e=Ap([" "," "]);return mp=function(){return e},e}function gp(){var e=Ap(['
    API SERVER:
    ','
    SELECTED: ',"
    ","
    "]);return gp=function(){return e},e}function yp(){var e=Ap([' '," "]);return yp=function(){return e},e}function bp(){var e=Ap([' ']);return bp=function(){return e},e}function xp(){var e=Ap(['